PageSourceSearch

https://app.fatfinger.io/8801.08f478680db4e507.js

js fatfinger.io collected 2026-10-01 14:42:10 UTC 54,315 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkccweb=self.webpackChunkccweb||[]).push([[8801],{8801:(ot,D,r)=>{r.r(D),r.d(D,{TasksPageModule:()=>st});var h=r(6814),Z=r(3571),I=r(183),u=r(1086),M=r(283),P=r(7879),p=r(6223),J=r(5907),K=r(6322),W=r(9933),Q=r(4586),R=r(3883),j=r(9720),E=r(1094),k=r(9858),A=r(655),c=r(1791),Y=r(3678),_=r(3537),d=r(9397),g=r(4716),v=r(4664),O=r(3951),q=r(8622),e=r(5879),N=r(3845),$=r(3035);function H(s,i){1&s&&(e.TgZ(0,"ul",7)(1,"li",8)(2,"div",9)(3,"span",10),e._uU(4,"Loading..."),e.qZA()()()())}function G(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"li",20)(1,"button",21)(2,"span",22),e._uU(3),e.ALo(4,"translate"),e._UZ(5,"i",23),e.qZA(),e._UZ(6,"i",24),e.qZA(),e.TgZ(7,"div",25)(8,"button",26),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onAddCommentToTasks())}),e._UZ(9,"i",27),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",28),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onCloseTasks())}),e._UZ(13,"i",29),e._uU(14),e.ALo(15,"translate"),e.qZA()()()}2&s&&(e.xp6(3),e.hij(" ",e.lcZ(4,3,"TASKS.Bulk Actions")," "),e.xp6(7),e.hij(" ",e.lcZ(11,5,"TASKS.Update Task Comments")," "),e.xp6(4),e.hij(" ",e.lcZ(15,7,"TASKS.Close Tasks")," "))}function B(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"li",11)(1,"button",30),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.navigateTo("schedules"))}),e.TgZ(2,"span",31),e._uU(3),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"i",32),e.qZA()()}2&s&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"TASKS.New Schedule")))}function V(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"ul",7)(1,"li",11)(2,"button",12),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.resetFilter())}),e._UZ(3,"i",13),e.qZA()(),e.YNc(4,G,16,9,"li",14),e.TgZ(5,"li",11)(6,"ff-filters-dropdown",15),e.NdJ("filterApply",function(a){e.CHM(t);const o=e.oxw();return e.KtG(o.applyFilter(a))})("filterDelete",function(a){e.CHM(t);const o=e.oxw();return e.KtG(o.deleteFilter(a))})("filterReset",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.resetFilter())})("openFilterDialog",function(a){e.CHM(t);const o=e.oxw();return e.KtG(o.onOpenFilterDialog(a))}),e.qZA()(),e.YNc(7,B,6,3,"li",16),e.TgZ(8,"li",11)(9,"button",17),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.navigateTo("tasks/create-task"))}),e.TgZ(10,"span",18),e._uU(11),e.ALo(12,"translate"),e.qZA(),e._UZ(13,"i",19),e.qZA()()()}if(2&s){const t=e.oxw();e.xp6(4),e.Q6J("ngIf","Reporter"!==t.currentUser.value.role),e.xp6(2),e.Q6J("activeFilter",t.activeFilter)("filters",t.filters),e.xp6(1),e.Q6J("ngIf","Reporter"!==t.currentUser.value.role),e.xp6(4),e.Oqu(e.lcZ(12,5,"TASKS.New Task"))}}let C=class S{constructor(i,t){this.router=i,this.userService=t,this.closeTasks=new e.vpe,this.addCommentToTasks=new e.vpe,this.filterDelete=new e.vpe,this.filterReset=new e.vpe,this.filterApply=new e.vpe,this.openFilterDialog=new e.vpe,this.currentUser=this.userService.user$,this.activeFilter=""}ngOnChanges(i){i.currentFilter&&(this.activeFilter=this.currentFilter?.name||"")}resetFilter(){this.activeFilter="",this.filterReset.emit()}onCloseTasks(){this.closeTasks.emit()}onAddCommentToTasks(){this.addCommentToTasks.emit()}applyFilter(i){i.name&&(this.activeFilter=i.name),this.filterApply.emit(i)}deleteFilter(i){this.filters=this.filters.filter(t=>t.id!==i),this.filterDelete.emit(i)}navigateTo(i){this.router.navigate([i])}onOpenFilterDialog(i){this.openFilterDialog.emit(i)}static#e=this.\u0275fac=function(t){return new(t||S)(e.Y36(Z.F0),e.Y36(N.K))};static#t=this.\u0275cmp=e.Xpm({type:S,selectors:[["ff-tasks-header"]],inputs:{filters:"filters",tasksLoading:"tasksLoading",currentFilter:"currentFilter"},outputs:{closeTasks:"closeTasks",addCommentToTasks:"addCommentToTasks",filterDelete:"filterDelete",filterReset:"filterReset",filterApply:"filterApply",openFilterDialog:"openFilterDialog"},features:[e.TTD],decls:10,vars:5,consts:[[1,"fixed-top"],[1,"d-flex","flex-wrap","justify-content-between","ps-3","pe-2"],[1,"d-flex","align-items-center","me-md-auto","name"],[1,"lh-base","d-none","d-md-inline-block","fa","fa-briefcase","fa-lg"],[1,"fs-4","m-0"],[1,"d-flex"],["class","nav",4,"ngIf"],[1,"nav"],[1,"me-1","loading"],["role","status",1,"spinner-border","text-light","position-relative"],[1,"visually-hidden"],[1,"ms-2"],["type","button",1,"btn","btn-outline-light","btn-icon","px-1",3,"click"],[1,"fas","fa-sync-alt"],["ngbDropdown","","class","ms-2",4,"ngIf"],[3,"activeFilter","filters","filterApply","filterDelete","filterReset","openFilterDialog"],["class","ms-2",4,"ngIf"],["type","button",1,"btn","btn-primary","d-flex","gap-2",3,"click"],[1,"d-none","d-md-inline-block"],[1,"fa","fa-briefcase","lh-base","d-block","d-md-none","d-lg-inline-block"],["ngbDropdown","",1,"ms-2"],["ngbDropdownToggle","","type","button",1,"btn","btn-outline-light","hide-arrow"],[1,"d-none","d-lg-inline-block","ps-1"],[1,"fa-solid","fa-caret-down"],[1,"fa-solid","fa-ellipsis-v","fa-lg","px-1","d-lg-none"],["ngbDropdownMenu","",1,"shadow"],["ngbDropdownItem","","type","button","data-cy","updateTaskCommentsBtn",3,"click"],[1,"fa","fa-comment"],["ngbDropdownItem","","type","button","data-cy","closeTasksBtn",3,"click"],[1,"fa","fa-check"],["type","button",1,"btn","btn-outline-light","d-flex","gap-2",3,"click"],[1,"pe-1","d-none","d-md-inline-block"],[1,"fas","fa-calendar-plus","lh-base","d-block","d-md-none","d-lg-inline-block"]],template:function(t,n){1&t&&(e.TgZ(0,"header",0)(1,"div",1)(2,"div",2),e._UZ(3,"i",3),e.TgZ(4,"h1",4),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e.TgZ(7,"div",5),e.YNc(8,H,5,0,"ul",6),e.YNc(9,V,14,7,"ul",6),e.qZA()()()),2&t&&(e.xp6(5),e.hij(" ",e.lcZ(6,3,"TASKS.Tasks"),""),e.xp6(3),e.Q6J("ngIf",n.tasksLoading),e.xp6(1),e.Q6J("ngIf",!n.tasksLoading))},dependencies:[h.O5,u.jt,u.iD,u.Vi,u.TH,$.m,k.X$],encapsulation:2})};C=(0,A.gn)([(0,c.c)()],C);var b=r(4944),f=function(s){return s.Team="Team",s.Activity="Activity",s.Priority="Priority",s.AssignedTo="AssignedTo",s.DueDate="DueDate",s.Comments="Comments",s.Status="Status",s.Created="Created",s.Updated="Updated",s.Actions="Actions",s}(f||{}),X=r(3600),z=r(1545),ee=r(6580);function te(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();
1return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",13),e._uU(2),e.qZA()()}if(2&s){const t=i.$implicit;e.Q6J("ngbTooltip",t.teamName),e.xp6(2),e.Oqu(t.teamName||"-")}}function ie(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",14),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",15),e._uU(2),e.qZA(),e.TgZ(3,"div",16),e._uU(4),e.qZA()()}if(2&s){const t=i.$implicit;e.xp6(1),e.Q6J("ngbTooltip",t.parentReportTitle),e.xp6(1),e.Oqu(t.parentReportTitle||"-"),e.xp6(1),e.Q6J("ngbTooltip",t.formName),e.xp6(1),e.Oqu(t.formName||"-")}}const ne=function(s,i,t){return{"text-warning":s,"text-orange":i,"text-danger":t}};function se(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",14),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",17),e._UZ(2,"i",18),e.qZA(),e.TgZ(3,"div",19),e._uU(4),e.qZA()()}if(2&s){const t=i.$implicit;e.xp6(2),e.Q6J("ngClass",e.kEZ(2,ne,"Low"===t.priority,"Medium"===t.priority,"Critical"===t.priority)),e.xp6(2),e.Oqu(t.priority)}}function ae(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",13),e._uU(2),e.qZA()()}if(2&s){const t=i.$implicit;e.Q6J("ngbTooltip",t.assignedToName),e.xp6(2),e.Oqu(t.assignedToName)}}function oe(s,i){1&s&&(e.TgZ(0,"div",23)(1,"span",24),e._uU(2,"OVERDUE!"),e.qZA()())}const re=function(s){return{unique:s}};function le(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",20),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",21),e._uU(2),e.ALo(3,"isCurrentYear"),e.qZA(),e.YNc(4,oe,3,0,"div",22),e.qZA()}if(2&s){const t=i.$implicit;e.ekj("flex-column",t.overDue>1),e.xp6(1),e.Q6J("ngClass",e.VKq(7,re,!t.overDue||t.overDue<=1)),e.xp6(1),e.hij(" ",e.lcZ(3,5,t.dueDate)||"-"," "),e.xp6(2),e.Q6J("ngIf",t.overDue>1)}}function ce(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",25),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",26),e._uU(2),e.qZA()()}if(2&s){const t=i.$implicit;e.Q6J("ngbTooltip",t.comments),e.xp6(2),e.Oqu(t.comments)}}function pe(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",20),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",19),e._uU(2),e.qZA()()}if(2&s){const t=i.$implicit;e.xp6(2),e.Oqu(t.status)}}function de(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",14),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",27),e._uU(2),e.ALo(3,"isCurrentYear"),e.qZA(),e.TgZ(4,"div",28),e._uU(5),e.ALo(6,"date"),e.qZA()()}if(2&s){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,2,t.createdOn)),e.xp6(3),e.Oqu(e.xi3(6,4,t.createdOn,"shortTime"))}}function me(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",14),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onOpenPreviewPanel(o))}),e.TgZ(1,"div",27),e._uU(2),e.ALo(3,"isCurrentYear"),e.qZA(),e.TgZ(4,"div",28),e._uU(5),e.ALo(6,"date"),e.qZA()()}if(2&s){const t=i.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,2,t.modifiedOn)),e.xp6(3),e.Oqu(e.xi3(6,4,t.modifiedOn,"shortTime"))}}function ue(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"button",40),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,o=e.oxw();return e.KtG(o.startTask(a))}),e._UZ(1,"i",41),e._uU(2," Start Task "),e.qZA()}}function fe(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"button",42),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,o=e.oxw();return e.KtG(o.viewActivity(a))}),e._UZ(1,"i",43),e._uU(2," View Activity "),e.qZA()}}function ge(s,i){if(1&s){const t=e.EpF();e.TgZ(0,"div",29)(1,"button",30),e._UZ(2,"i",31),e.qZA(),e.TgZ(3,"div",32)(4,"button",33),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.onMarkClosed(o.id))}),e._UZ(5,"i",34),e._uU(6," Mark Closed "),e.qZA(),e.TgZ(7,"button",35),e.NdJ("click",function(){const o=e.CHM(t).$implicit,l=e.oxw();return e.KtG(l.navigateTo("/tasks/edit-task/"+o.id))}),e._UZ(8,"i",36),e._uU(9," View / Edit "),e.qZA(),e._UZ(10,"div",37),e.YNc(11,ue,3,0,"button",38),e.YNc(12,fe,3,0,"button",39),e.qZA()()}if(2&s){const t=i.$implicit;e.xp6(11),e.Q6J("ngIf",!t.formId||!t.parentReportId),e.xp6(1),e.Q6J("ngIf",t.parentReportId)}}const he=function(s){return[s]},Te=function(s,i){return{rowIdPath:"id",highlightedRowsId:s,pagination:i}};let x=class y{constructor(i){this.router=i,this.currentPreviewTask=null,this.markClosed=new e.vpe,this.tableReadyEvent=new e.vpe,this.sortingChanged=new e.vpe,this.pageChangedEvent=new e.vpe,this.openPreviewPanel=new e.vpe,this.loadMoreRows=new e.vpe,this.PaginationType=b.Pr,this.SortingDirection=b.X_,this.tableHeadings={[f.Team]:"Team",[f.Activity]:"Activity / Workflow",[f.Priority]:"Priority",[f.AssignedTo]:"Assigned To",[f.DueDate]:"Due Date",[f.Comments]:"Comments",[f.Status]:"Status",[f.Created]:"Created",[f.Upd
1ated]:"Updated",[f.Actions]:"Actions"}}onTableReady(i){this.tableReadyEvent.emit(i)}onOpenPreviewPanel(i){this.openPreviewPanel.emit(i)}navigateTo(i){this.router.navigate([i])}trackBy(i,t){return t}onMarkClosed(i){this.markClosed.emit(i)}viewActivity(i){this.router.navigate([`reports/detail/${i.parentReportId}/readonly/${i.id}`])}startTask(i){this.router.navigate([`reports/new/${i.formId}/team/${i.teamId}/from-task/${i.id}${i.originationParentId?"/is-child-of/"+i.originationParentId:""}`],{state:{task:{...i,parentReportItemId:i.parentReportItemId}}})}onTableEvent(i){switch(i.eventName){case b.Q$.PageChanged:this.pageChangedEvent.emit();break;case b.Q$.SortingChanged:this.sortingChanged.emit();break;case b.Q$.LoadMoreRows:this.loadMoreRows.emit()}}static#e=this.\u0275fac=function(t){return new(t||y)(e.Y36(Z.F0))};static#t=this.\u0275cmp=e.Xpm({type:y,selectors:[["ff-tasks-table"]],inputs:{currentPreviewTask:"currentPreviewTask"},outputs:{markClosed:"markClosed",tableReadyEvent:"tableReadyEvent",sortingChanged:"sortingChanged",pageChangedEvent:"pageChangedEvent",openPreviewPanel:"openPreviewPanel",loadMoreRows:"loadMoreRows"},decls:42,vars:46,consts:[[3,"options","tableReady","eventBus"],["headerName","","colId","id",3,"rowSelection"],["colId","teamName",3,"headerName","sortable"],["cell",""],["colId","id",3,"headerName"],["colId","priority",3,"headerName","sortable"],["colId","assignedToName",3,"headerName","sortable"],["colId","dueDate",3,"headerName","sortable"],["colId","comments",3,"headerName","sortable"],["colId","status",3,"headerName","sortable"],["colId","createdOn",3,"headerName","sortable"],["colId","modifiedOn",3,"sort","headerName","sortable"],["placement","bottom",1,"d-flex","align-items-center","justify-content-start",3,"ngbTooltip","click"],[1,"main","unique","w-100"],[1,"d-flex","flex-column","align-items-center","justify-content-start",3,"click"],["placement","bottom",1,"main","w-100",3,"ngbTooltip"],["placement","bottom",1,"secondary","w-100",3,"ngbTooltip"],[1,"main","text-center","w-100"],[1,"fa","fa-briefcase",3,"ngClass"],[1,"secondary","text-center","w-100"],[1,"d-flex","align-items-center","justify-content-start",3,"click"],[1,"main","w-100",3,"ngClass"],["class","secondary w-100 h-auto m-0",4,"ngIf"],[1,"secondary","w-100","h-auto","m-0"],[1,"bg-danger","text-light","badge","bg-secondary","lh-1"],["placement","left",1,"h-100",3,"ngbTooltip","click"],[1,"commentsWrap"],[1,"main","w-100"],[1,"secondary","w-100"],["ngbDropdown","",1,"menu","h-100"],["type","button","ngbDropdownToggle","","data-cy","taskActionsBtn",1,"form-control","p-0","bg-transparent"],[1,"fa","fa-chevron-down","opacity-75","fs-14"],["ngbDropdownMenu","",1,"shadow","border"],["ngbDropdownItem","","type","button","data-cy","markClosedBtn",1,"px-2",3,"click"],[1,"fa","fa-check","text-center"],["ngbDropdownItem","","type","button","data-cy","editTaskBtn",1,"px-2",3,"click"],[1,"fas","fa-briefcase","text-center"],[1,"dropdown-divider"],["ngbDropdownItem","","class","px-2","type","button","data-cy","startTaskBtn",3,"click",4,"ngIf"],["ngbDropdownItem","","class","px-2",3,"click",4,"ngIf"],["ngbDropdownItem","","type","button","data-cy","startTaskBtn",1,"px-2",3,"click"],[1,"fa","fa-pencil-alt","text-center"],["ngbDropdownItem","",1,"px-2",3,"click"],[1,"far","fa-file-alt","text-center"]],template:function(t,n){1&t&&(e.TgZ(0,"ff-smart-table",0),e.NdJ("tableReady",function(o){return n.onTableReady(o)})("eventBus",function(o){return n.onTableEvent(o)}),e._UZ(1,"ff-smart-table-column",1),e.TgZ(2,"ff-smart-table-column",2),e.ALo(3,"translate"),e.YNc(4,te,3,2,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(6,"ff-smart-table-column",4),e.ALo(7,"translate"),e.YNc(8,ie,5,4,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(10,"ff-smart-table-column",5),e.ALo(11,"translate"),e.YNc(12,se,5,6,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(14,"ff-smart-table-column",6),e.ALo(15,"translate"),e.YNc(16,ae,3,2,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(18,"ff-smart-table-column",7),e.ALo(19,"translate"),e.YNc(20,le,5,9,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(22,"ff-smart-table-column",8),e.ALo(23,"translate"),e.YNc(24,ce,3,2,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(26,"ff-smart-table-column",9),e.ALo(27,"translate"),e.YNc(28,pe,3,1,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(30,"ff-smart-table-column",10),e.ALo(31,"translate"),e.YNc(32,de,7,7,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(34,"ff-smart-table-column",11),e.ALo(35,"translate"),e.YNc(36,me,7,7,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(38,"ff-smart-table-column",4),e.ALo(39,"translate"),e.YNc(40,ge,13,2,"ng-template",null,3,e.W1O),e.qZA()()),2&t&&(e.Q6J("options",e.WLB(43,Te,e.VKq(41,he,(null==n.currentPreviewTask?null:n.currentPreviewTask.id)||""),n.PaginationType.Scroll)),e.xp6(1),e.Q6J("rowSelection",!0),e.xp6(1),e.Q6J("headerName",e.lcZ(3,21,"TASKS."+n.tableHeadings.Team))("sortable",!0),e.xp6(4),e.Q6J("headerName",e.lcZ(7,23,"TASKS."+n.tableHeadings.Activity)),e.xp6(4),e.Q6J("headerName",e.lcZ(11,25,"TASKS."+n.tableHeadings.Priority))("sortable",!0),e.xp6(4),e.Q6J("headerName",e.lcZ(15,27,"TASKS."+n.tableHeadings.AssignedTo))("sortable",!0),e.xp6(4),e.Q6J("headerName",e.lcZ(19,29,"TASKS."+n.tableHeadings.DueDate))("sortable",!0),e.xp6(4),e.Q6J("headerName",e.lcZ(23,31,"TASKS."+n.tableHeadings.Comments))("sortable",!0),e.xp6(4),e.Q6J("headerName",e.lcZ(27,33,"TASKS."+n.tableHeadings.Status))("sortable",!0),e.xp6(4),e.Q6J("headerName",e.lcZ(31,35,"TASKS."+n.tableHeadings.Created))("sortable",!0),e.xp6(4),e.Q6J("sort",n.SortingDirection.Desc)("headerName",e.lcZ(35,37,"TASKS."+n.tableHeadings.Updated))("sortable",!0),e.xp6(4),e.Q6J("headerName",e.lcZ(39,39,"TASKS."+n.tableHeadings.Actions)))}
1,dependencies:[h.mk,h.O5,u.jt,u.iD,u.Vi,u.TH,X.L,z.V,u._L,h.uU,ee.i,k.X$],encapsulation:2})};x=(0,A.gn)([(0,c.c)()],x);var m=r(9026),T=r(3375),_e=r(3205),ve=r(9315),ke=r(6920),be=r(5752),Ze=r(1677),Ae=r(5628),Ce=r(3069);function xe(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Activities submitted today")," "))}function we(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Activities submitted from Sunday to today")," "))}function Fe(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Activities submitted from Sunday to Saturday of last week")," "))}function Se(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Activities submitted from the first day of the current month to today")," "))}function ye(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Activities submitted from the 1st to the last day of the previous month")," "))}function Ue(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Activities submitted from Jan 1 to today")," "))}function Le(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Activities submitted from Jan 1 to Dec 31 of the previous year")," "))}function De(s,i){if(1&s&&(e.ynx(0),e.YNc(1,xe,4,3,"p",61),e.YNc(2,we,4,3,"p",61),e.YNc(3,Fe,4,3,"p",61),e.YNc(4,Se,4,3,"p",61),e.YNc(5,ye,4,3,"p",61),e.YNc(6,Ue,4,3,"p",61),e.YNc(7,Le,4,3,"p",61),e.BQk()),2&s){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.createdWithin===t.CreatedWithinOptions.Today),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.createdWithin===t.CreatedWithinOptions.Thisweek),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.createdWithin===t.CreatedWithinOptions.Lastweek),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.createdWithin===t.CreatedWithinOptions.Thismonth),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.createdWithin===t.CreatedWithinOptions.Lastmonth),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.createdWithin===t.CreatedWithinOptions.Thisyear),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.createdWithin===t.CreatedWithinOptions.Lastyear)}}function Oe(s,i){1&s&&(e.TgZ(0,"div",64)(1,"div",65)(2,"div",66),e._UZ(3,"ff-date-picker",67),e.qZA(),e.TgZ(4,"div",66),e._UZ(5,"ff-date-picker",68),e.qZA()()())}function qe(s,i){if(1&s&&(e.TgZ(0,"div",69),e._UZ(1,"i",70),e.TgZ(2,"div",71)(3,"span",72),e._uU(4),e.qZA(),e.TgZ(5,"small",73),e._uU(6),e.qZA()()()),2&s){const t=i.$implicit;e.xp6(4),e.Oqu(t.fullName),e.xp6(2),e.Oqu(t.email)}}function Ne(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Show overdue tasks")," "))}function Ie(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Show tasks due today")," "))}function Me(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Show tasks due this week")," "))}function Pe(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Show tasks due this month")," "))}function Je(s,i){1&s&&(e.TgZ(0,"p",62),e._UZ(1,"i",63),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&s&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"TASKS.Show tasks due this year")," "))}function Ke(s,i){if(1&s&&(e.ynx(0),e.YNc(1,Ne,4,3,"p",61),e.YNc(2,Ie,4,3,"p",61),e.YNc(3,Me,4,3,"p",61),e.YNc(4,Pe,4,3,"p",61),e.YNc(5,Je,4,3,"p",61),e.BQk()),2&s){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.dueWithin===t.DueWithinOptions.OverDue),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.dueWithin===t.CreatedWithinOptions.Today),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.dueWithin===t.CreatedWithinOptions.Thisweek),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.dueWithin===t.CreatedWithinOptions.Thismonth),e.xp6(1),e.Q6J("ngIf",t.createFilterForm.value.dueWithin===t.CreatedWithinOptions.Lastmonth)}}function We(s,i){1&s&&(e.TgZ(0,"div",64)(1,"div",74)(2,"div",66),e._UZ(3,"ff-date-picker",67),e.qZA(),e.TgZ(4,"div",66),e._UZ(5,"ff-date-picker",68),e.qZA()()())}function Qe(s,i){if(1&s&&(e.TgZ(0,"div",75),e._UZ(1,"i",76),e.TgZ(2,"div",77)(3,"span",72),e._uU(4),e.qZA(),e.TgZ(5,"small",78),e._uU(6),e.qZA()()()),2&s){const t=i.$implicit;e.xp6(4),e.Oqu(t.formName),e.xp6(2),e.hij(" ",t.isDeleted?"Deleted":t.isPublished?"Published":"Draft"," ")}}function Re(s,i){if(1&s&&(e.TgZ(0,"div",69),e._UZ(1,"i",79),e.TgZ(2,"div",77)(3,"span",72),e._uU(4),e.qZA(),e.TgZ(5,"small",78),e._uU(6),e.qZA()()()),2&s){const t=i.$implicit;e.xp6(4),e.Oqu(t.teamName),e.xp6(2),e.hij(" ",t.description||"-"," ")}}let w=class U{constructor(i,t,n,a,o){this.activeModal=i,this.formBuilder=t,this.userService=n,this.formService=a,this.teamService=o,this.formGroupSubmit=new e.vpe,this.saveFilter=new e.vpe,this.updateFilter=new e.vpe,this.CreatedWithinOptions=m.M,this.DueWithinOptions=m.q,this.users=[],this.teams=[],this.forms=[],this.preloadedUsers=[],this.preloadedTeams=[],this.preloadedForms=[],this.dateCriteriaInfoMessages=[m.M.All,m.M.Today,m.M.Thisweek,m.M.Lastweek,m.M.Thismonth,m.M.Lastmonth,m.M.Thisyear,m.M.Lastyear],this.dueDateCriteriaInfoMessages=[m.q.All,m.q.OverDue,m.q.Today,m.q.Thisweek,m.q.Thismonth,m.q.Thisyear]}ngOnInit(){this.setLoadingStates(),this.createFilterForm=this.formBuilder.group({status:this.formBuilder.group({open:this.currentFilter?.status.open,closed:this.currentFilter?.status.closed,new:this.currentFilter?.status.new}),priority:this.formBuilder.group({default:this.currentFilter?.priority.default,low:this.currentFilter?.priority.low,medium:this.currentFilter?.priority.medium,critical:this.currentFilter?.priority.critical}),createdWithin:this.currentFilter?.createdIn||"",createdWithinRange:this.formBuilder.group({fromDate:T.E.getDateObject(this.currentFilter?.createdFrom||""),toDate:T.E.getDateObject(this.currentFilter?.createdTo||"")}),dueWithin:this.currentFilter?.dueIn||"",dueWithinRange:this.formBuilder.group({fromDate:T.E.getDateObject(this.currentFilter?.dueFrom||""),toDate:T.E.getDateObject(this.currentFilter?.dueTo||"")}),assignedTo:this.currentFilter?.assignedTo,formType:this.currentFilter?.formType,teamId:this.currentFilter?.teamId,name:this.currentFilter?.name||""}),this.getPreSelectedItems()}getPreSelectedItems(){this.preselectedLoaded=!1,(0,ve.D)([this.userService.getUsersById$(this.createFilterForm.value.assignedTo||null),this.teamService.getTeamsById$(this.createFilterForm.value.teamId||null),this.formService.getFormsById$(this.createFilterForm.value.formType||null)]).pipe((0,d.b)(([i,t,n])=>{this.preloadedUsers=i,this.preloadedTeams=t,this.preloadedForms=n,this.preselectedLoaded=!0}),(0,c.t)(this)).subscribe()}setLoadingStates(){this.usersLoading=!0,this.formsLoading=!0,this.teamsLoading=!0}onUserSelect(){this.userService.getUsers$().pipe((0,d.b)(i=>this.users=i.filter(t=>t.id)),(0,g.x)(()=>this.usersLoading=!1),(0,c.t)(this)).subscribe()}onTeamSelect(){this.teamService.getTeams$().pipe((0,d.b)(i=>this.teams=i),(0,g.x)(()=>this.teamsLoading=!1),(0,c.t)(this)).subscribe()}onWorkflowSelect(){this.formService.getForms$().pipe((0,d.b)(i=>this.forms=i.filter(t=>!t.isDeleted)),(0,g.x)(()=>this.formsLoading=!1),(0,c.t)(this)).subscribe()}onSaveFilter(i){this.currentFilter?this.updateFilter.emit({id:this.currentFilter.id,...this.getFilter(),name:i}):this.saveFilter.emit({...this.getFilter(),name:i}),this.activeModal.close()}onCreateFilterFormSubmit(i){i||(i=" "),this.formGroupSubmit.emit({...this.getFilter(),name:i}),this.activeModal.close()}getCheckboxes(i){if(!i)return;let n=Object.keys(i).filter(a=>
1i[a]);return n=n.map(a=>a.charAt(0).toUpperCase()+a.slice(1)),n.join()}resetFilter(i,t){i.reset(),this.createFilterForm.patchValue({dueWithin:m.q.All,createdWithin:m.M.All}),t.value=""}getFilter(){const i=this.createFilterForm.value;return{assignedTo:this.getMultiSelectItems(i.assignedTo),dueFrom:this.getValueAsString(T.E.changeDateFormat(i.dueWithinRange?.fromDate||"")),dueIn:this.getValueAsString(i.dueWithin),dueTo:this.getValueAsString(T.E.changeDateFormat(i.dueWithinRange?.toDate||"")),formType:this.getMultiSelectItems(i.formType),priority:this.getValueAsString(this.getCheckboxes(i.priority)),reportedFrom:this.getValueAsString(T.E.changeDateFormat(i.createdWithinRange?.fromDate||"")),reportedIn:this.getValueAsString(i.createdWithin),reportedTo:this.getValueAsString(T.E.changeDateFormat(i.createdWithinRange?.toDate||"")),status:this.getValueAsString(this.getCheckboxes(i.status)),teamId:this.getMultiSelectItems(i.teamId)}}getMultiSelectItems(i){return i?"string"==typeof i?i:i.filter(t=>t.id).map(t=>t.id).join(","):""}getValueAsString(i){return!i||i.includes("NaN")?"":i}static#e=this.\u0275fac=function(t){return new(t||U)(e.Y36(u.Kz),e.Y36(p.qu),e.Y36(N.K),e.Y36(ke.s),e.Y36(be.U))};static#t=this.\u0275cmp=e.Xpm({type:U,selectors:[["ff-filter-modal"]],inputs:{currentFilter:"currentFilter"},outputs:{formGroupSubmit:"formGroupSubmit",saveFilter:"saveFilter",updateFilter:"updateFilter"},features:[e._Bn([{provide:u.NG,useClass:_e.z}])],decls:189,vars:151,consts:[[1,"modal-content"],[1,"d-flex","flex-row","justify-content-between","p-3","border-bottom","rounded-top","bg-light"],[1,"m-0","lh-1","text-grey-darker"],[1,"fa","fa-filter","text-primary-hover","fs-5"],[1,"fw-500"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"p-5"],[1,"d-flex","flex-column","gap-3",3,"formGroup"],["filterForm",""],[1,"row"],[1,"col-xl-3","col-12","text-xl-end","pe-0"],[1,"p-1","fw-bold","fs-14"],[1,"ps-2","fa","fa-exclamation-circle","text-grey"],[1,"col-xl-9","col-12"],["formGroupName","priority","data-cy","priority",1,"d-flex","flex-row"],["for","default","role","button",1,"d-flex","flex-row","justify-content-between","align-items-center","py-1","px-2","w-25","border","border-1","rounded-start","lh-base"],[1,"px-1","fs-13","lh-base"],[1,"fa","fa-exclamation-circle","text-light"],["formControlName","default","type","checkbox","id","default",1,"form-check-input","m-0"],["for","low","role","button",1,"d-flex","flex-row","justify-content-between","align-items-center","py-1","px-2","w-25","border","border-1","lh-base"],[1,"fa","fa-exclamation-circle","text-warning"],["formControlName","low","type","checkbox","id","low",1,"form-check-input","m-0"],["for","medium","role","button",1,"d-flex","flex-row","justify-content-between","align-items-center","py-1","px-2","w-25","border","border-1","lh-base"],[1,"fa","fa-exclamation-circle","text-orange"],["formControlName","medium","type","checkbox","id","medium",1,"form-check-input","m-0"],["for","critical","role","button",1,"d-flex","flex-row","justify-content-between","align-items-center","py-1","px-2","w-25","border","border-1","rounded-end","lh-base"],[1,"fa","fa-exclamation-circle","text-danger"],["formControlName","critical","type","checkbox","id","critical",1,"form-check-input","m-0"],[1,"row","pt-4"],[1,"ps-2","fa","fa-check","text-grey"],["formGroupName","status","data-cy","status",1,"d-flex","flex-row"],["for","open","role","button",1,"d-flex","flex-row","justify-content-between","align-items-center","py-1","px-2","border","border-1","rounded-start","lh-base","flex-grow-1"],["formControlName","open","type","checkbox","id","open",1,"form-check-input","m-0"],["for","closed","role","button",1,"d-flex","flex-row","justify-content-between","align-items-center","py-1","px-2","border","border-1","lh-base","flex-grow-1"],["formControlName","closed","type","checkbox","id","closed",1,"form-check-input","m-0"],["for","new","role","button",1,"d-flex","flex-row","justify-content-between","align-items-center","py-1","px-2","border","border-1","rounded-end","lh-base","flex-grow-1"],["formControlName","new","type","checkbox","id","new",1,"form-check-input","m-0"],[1,"ps-2","fa","fa-calendar-alt","text-grey"],[1,"w-100"],["formControlName","createdWithin",1,"form-select","lh-sm","fs-13"],[3,"value"],[4,"ngIf"],["class","pt-2",4,"ngIf"],[1,"ps-2","fa","fa-user","text-grey"],["searchTitle","User","searchName","fullName","formControlName","assignedTo",3,"items","preloadedSelectedItems","preselectedLoaded","itemsLoading","selectedFilterItems","dropdownClick"],["element",""],["formControlName","dueWithin",1,"form-select","lh-sm","fs-13"],[1,"ps-2","fa","fa-file","text-grey"],["searchTitle","Workflow","searchName","formName","formControlName","formType",3,"items","preloadedSelectedItems","preselectedLoaded","itemsLoading","selectedFilterItems","dropdownClick"],[1,"ps-2","fa","fa-users","text-grey"],["searchTitle","Team","searchName","teamName","formControlName","teamId",3,"items","preloadedSelectedItems","preselectedLoaded","itemsLoading","selectedFilterItems","dropdownClick"],[1,"d-flex","flex-row","justify-content-between","p-3","border-top","bg-light","rounded-bottom",3,"formGroup"],[1,"input-group","input-group-sm"],["type","text","placeholder","Enter filter name","formControlName","name",1,"form-control","mw-250","border-white","shadow-sm"],["filterName",""],["type","button","data-cy","saveFilterBtn",1,"btn","btn-primary","shadow-sm",3,"disabled","click"],[1,"fa","fa-save","d-inline-block"],[1,"d-none","d-lg-inline-block","px-1"],[1,"d-flex","flex-row","gap-2"],[1,"btn","btn-link","btn-sm",3,"click"],["data-cy","applyFilterBtn",1,"btn","btn-light","btn-sm","border",3,"click"],["class","m-0 py-2 fs-12 text-grey-dark",4,"ngIf"],[1,"m-0","py-2","fs-12","text-grey-dark"],[1,"fa","fa-info-circle","text-info"],[1,"pt-2"],["formGroupName","createdWithinRange",1,"d-flex","flex-row","gap-3"],[1,"d-flex","flex-row","align-items-center","justify-content-center","flex-grow-1"],["formControlName","fromDate","preLabel","From",1,"w-100","bg-light"],["formControlName","toDate","preLabel","To",1,"w-100","bg-light"],[1,"d-flex","flex-row","gap-2","align-items-center","justify-content-start"],[1,"fa","fa-user","text-primary-hover"],[1,"d-flex","flex-column"],[1,"d-block","text-truncate","fs-13","lh-sm","text-grey-dark"],[1,"text-secondary","fs-11","lh-sm","text-grey"],["formGroupName","dueWithinRange",1,"d-flex","flex-row","gap-3"],[1,"d-flex","flex-row","align-items-center","gap-3"],[1,"far","fa-file","text-primary-hover"],[1,"d-flex","flex-column","mw-250"],[1,"text-secondary","d-block","text-truncate","fs-11","lh-sm","text-grey"],[1,"fa","fa-users","text-primary-hover"]],template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"h4",2),e._UZ(3,"i",3),e.TgZ(4,"span",4),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e.TgZ(7,"button",5),e.NdJ("click",function(){return n.activeModal.close()}),e.qZA()(),e.TgZ(8,"div",6)(9,"form",7,8)(11,"div",9)(12,"div",10)(13,"label",11),e._uU(14),e.ALo(15,"translate"),e._UZ(16,"i",12),e.qZA()(),e.TgZ(17,"div",13)(18,"div",14)(19,"label",15)(20,"span",16),e._UZ(21,"i",17),e._uU(22),e.ALo(23,"translate"),e.qZA(),e._UZ(24,"input",18),e.qZA(),e.TgZ(25,"label",19)(26,"span",16),e._UZ(27,"i",20),e._uU(28),e.ALo(29,"translate"),e.qZA(),e._UZ(30,"input",21),e.qZA(),e.TgZ(31,"label",22)(32,"span",16),e._UZ(33,"i",23),e._uU(34),e.ALo(35,"translate"),e.qZA(),e._UZ(36,"input",24),e.qZA(),e.TgZ(37,"label",25)(38,"span",16),e._UZ(39,"i",26),e._uU(40),e.ALo(4
11,"translate"),e.qZA(),e._UZ(42,"input",27),e.qZA()()()(),e.TgZ(43,"div",28)(44,"div",10)(45,"label",11),e._uU(46),e.ALo(47,"translate"),e._UZ(48,"i",29),e.qZA()(),e.TgZ(49,"div",13)(50,"div",30)(51,"label",31)(52,"span",16),e._uU(53),e.ALo(54,"translate"),e.qZA(),e._UZ(55,"input",32),e.qZA(),e.TgZ(56,"label",33)(57,"span",16),e._uU(58),e.ALo(59,"translate"),e.qZA(),e._UZ(60,"input",34),e.qZA(),e.TgZ(61,"label",35)(62,"span",16),e._uU(63),e.ALo(64,"translate"),e.qZA(),e._UZ(65,"input",36),e.qZA()()()(),e.TgZ(66,"div",28)(67,"div",10)(68,"label",11),e._uU(69),e.ALo(70,"translate"),e._UZ(71,"i",37),e.qZA()(),e.TgZ(72,"div",13)(73,"div",38)(74,"select",39)(75,"option",40),e._uU(76),e.ALo(77,"translate"),e.qZA(),e.TgZ(78,"option",40),e._uU(79),e.ALo(80,"translate"),e.qZA(),e.TgZ(81,"option",40),e._uU(82),e.ALo(83,"translate"),e.qZA(),e.TgZ(84,"option",40),e._uU(85),e.ALo(86,"translate"),e.qZA(),e.TgZ(87,"option",40),e._uU(88),e.ALo(89,"translate"),e.qZA(),e.TgZ(90,"option",40),e._uU(91),e.ALo(92,"translate"),e.qZA(),e.TgZ(93,"option",40),e._uU(94),e.ALo(95,"translate"),e.qZA(),e.TgZ(96,"option",40),e._uU(97),e.ALo(98,"translate"),e.qZA(),e.TgZ(99,"option",40),e._uU(100),e.ALo(101,"translate"),e.qZA(),e.TgZ(102,"option",40),e._uU(103),e.ALo(104,"translate"),e.qZA(),e.TgZ(105,"option",40),e._uU(106),e.ALo(107,"translate"),e.qZA()(),e.YNc(108,De,8,7,"ng-container",41),e.ALo(109,"includes"),e.YNc(110,Oe,6,0,"div",42),e.qZA()()(),e.TgZ(111,"div",28)(112,"div",10)(113,"label",11),e._uU(114),e.ALo(115,"translate"),e._UZ(116,"i",43),e.qZA()(),e.TgZ(117,"div",13)(118,"ff-select-multiple-items",44),e.NdJ("dropdownClick",function(){return n.onUserSelect()}),e.YNc(119,qe,7,2,"ng-template",null,45,e.W1O),e.qZA()()(),e.TgZ(121,"div",28)(122,"div",10)(123,"label",11),e._uU(124),e.ALo(125,"translate"),e._UZ(126,"i",37),e.qZA()(),e.TgZ(127,"div",13)(128,"div",38)(129,"select",46)(130,"option",40),e._uU(131),e.ALo(132,"translate"),e.qZA(),e.TgZ(133,"option",40),e._uU(134),e.ALo(135,"translate"),e.qZA(),e.TgZ(136,"option",40),e._uU(137),e.ALo(138,"translate"),e.qZA(),e.TgZ(139,"option",40),e._uU(140),e.ALo(141,"translate"),e.qZA(),e.TgZ(142,"option",40),e._uU(143),e.ALo(144,"translate"),e.qZA(),e.TgZ(145,"option",40),e._uU(146),e.ALo(147,"translate"),e.qZA(),e.TgZ(148,"option",40),e._uU(149),e.ALo(150,"translate"),e.qZA()(),e.YNc(151,Ke,6,5,"ng-container",41),e.ALo(152,"includes"),e.YNc(153,We,6,0,"div",42),e.qZA()()(),e.TgZ(154,"div",28)(155,"div",10)(156,"label",11),e._uU(157,"Workflow "),e._UZ(158,"i",47),e.qZA()(),e.TgZ(159,"div",13)(160,"ff-select-multiple-items",48),e.NdJ("dropdownClick",function(){return n.onWorkflowSelect()}),e.YNc(161,Qe,7,2,"ng-template",null,45,e.W1O),e.qZA()()(),e.TgZ(163,"div",28)(164,"div",10)(165,"label",11),e._uU(166),e.ALo(167,"translate"),e._UZ(168,"i",49),e.qZA()(),e.TgZ(169,"div",13)(170,"ff-select-multiple-items",50),e.NdJ("dropdownClick",function(){return n.onTeamSelect()}),e.YNc(171,Re,7,2,"ng-template",null,45,e.W1O),e.qZA()()()()(),e.TgZ(173,"div",51)(174,"div",52),e._UZ(175,"input",53,54),e.TgZ(177,"button",55),e.NdJ("click",function(){e.CHM(a);const l=e.MAs(176);return e.KtG(n.onSaveFilter(l.value))}),e._UZ(178,"i",56),e.TgZ(179,"span",57),e._uU(180),e.ALo(181,"translate"),e.qZA()()(),e.TgZ(182,"div",58)(183,"button",59),e.NdJ("click",function(){e.CHM(a);const l=e.MAs(10),at=e.MAs(176);return e.KtG(n.resetFilter(l,at))}),e._uU(184),e.ALo(185,"translate"),e.qZA(),e.TgZ(186,"button",60),e.NdJ("click",function(){e.CHM(a);const l=e.MAs(176);return e.KtG(n.onCreateFilterFormSubmit(l.value))}),e._uU(187),e.ALo(188,"translate"),e.qZA()()()()}if(2&t){const a=e.MAs(176);e.xp6(5),e.hij(" ",e.lcZ(6,75,"TASKS.Filter"),""),e.xp6(4),e.Q6J("formGroup",n.createFilterForm),e.xp6(5),e.hij("",e.lcZ(15,77,"TASKS.Priority")," "),e.xp6(8),e.hij(" ",e.lcZ(23,79,"TASKS.Default"),""),e.xp6(6),e.hij(" ",e.lcZ(29,81,"TASKS.Low"),""),e.xp6(6),e.hij(" ",e.lcZ(35,83,"TASKS.Medium"),""),e.xp6(6),e.hij(" ",e.lcZ(41,85,"TASKS.Critical"),""),e.xp6(6),e.hij("",e.lcZ(47,87,"TASKS.Status")," "),e.xp6(7),e.Oqu(e.l
1cZ(54,89,"TASKS.Open")),e.xp6(5),e.Oqu(e.lcZ(59,91,"TASKS.Closed")),e.xp6(5),e.Oqu(e.lcZ(64,93,"TASKS.New")),e.xp6(6),e.hij("",e.lcZ(70,95,"TASKS.Created Within")," "),e.xp6(6),e.Q6J("value",n.CreatedWithinOptions.All),e.xp6(1),e.Oqu(e.lcZ(77,97,"TASKS.All")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Today),e.xp6(1),e.Oqu(e.lcZ(80,99,"TASKS.Today")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Last6m),e.xp6(1),e.Oqu(e.lcZ(83,101,"TASKS.Last 6 Months")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.last12m),e.xp6(1),e.Oqu(e.lcZ(86,103,"TASKS.Last 12 Months")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Thisweek),e.xp6(1),e.Oqu(e.lcZ(89,105,"TASKS.This Week")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Lastweek),e.xp6(1),e.Oqu(e.lcZ(92,107,"TASKS.Last Week")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Thismonth),e.xp6(1),e.Oqu(e.lcZ(95,109,"TASKS.This Month")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Lastmonth),e.xp6(1),e.Oqu(e.lcZ(98,111,"TASKS.Last Month")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Thisyear),e.xp6(1),e.Oqu(e.lcZ(101,113,"TASKS.This Year")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Lastyear),e.xp6(1),e.Oqu(e.lcZ(104,115,"TASKS.Last Year")),e.xp6(2),e.Q6J("value",n.CreatedWithinOptions.Range),e.xp6(1),e.Oqu(e.lcZ(107,117,"TASKS.Custom Range")),e.xp6(2),e.Q6J("ngIf",e.xi3(109,119,n.dateCriteriaInfoMessages,n.createFilterForm.value.createdWithin)),e.xp6(2),e.Q6J("ngIf",n.createFilterForm.value.createdWithin===n.CreatedWithinOptions.Range),e.xp6(4),e.hij("",e.lcZ(115,122,"TASKS.Assigned To")," "),e.xp6(4),e.Q6J("items",n.users)("preloadedSelectedItems",n.preloadedUsers)("preselectedLoaded",null==n.createFilterForm.value.assignedTo||!n.createFilterForm.value.assignedTo.length||n.preselectedLoaded)("itemsLoading",n.usersLoading)("selectedFilterItems",(null==n.currentFilter?null:n.currentFilter.assignedTo)||""),e.xp6(6),e.hij("",e.lcZ(125,124,"TASKS.Due Within")," "),e.xp6(6),e.Q6J("value",n.DueWithinOptions.All),e.xp6(1),e.Oqu(e.lcZ(132,126,"TASKS.All")),e.xp6(2),e.Q6J("value",n.DueWithinOptions.OverDue),e.xp6(1),e.Oqu(e.lcZ(135,128,"TASKS.Overdue Tasks")),e.xp6(2),e.Q6J("value",n.DueWithinOptions.Today),e.xp6(1),e.Oqu(e.lcZ(138,130,"TASKS.Today")),e.xp6(2),e.Q6J("value",n.DueWithinOptions.Thisweek),e.xp6(1),e.Oqu(e.lcZ(141,132,"TASKS.This Week")),e.xp6(2),e.Q6J("value",n.DueWithinOptions.Thismonth),e.xp6(1),e.Oqu(e.lcZ(144,134,"TASKS.This Month")),e.xp6(2),e.Q6J("value",n.DueWithinOptions.Thisyear),e.xp6(1),e.Oqu(e.lcZ(147,136,"TASKS.This Year")),e.xp6(2),e.Q6J("value",n.DueWithinOptions.Range),e.xp6(1),e.Oqu(e.lcZ(150,138,"TASKS.Custom Range")),e.xp6(2),e.Q6J("ngIf",e.xi3(152,140,n.dueDateCriteriaInfoMessages,n.createFilterForm.value.dueWithin)),e.xp6(2),e.Q6J("ngIf",n.createFilterForm.value.dueWithin===n.DueWithinOptions.Range),e.xp6(7),e.Q6J("items",n.forms)("preloadedSelectedItems",n.preloadedForms)("preselectedLoaded",null==n.createFilterForm.value.formType||!n.createFilterForm.value.formType.length||n.preselectedLoaded)("itemsLoading",n.formsLoading)("selectedFilterItems",(null==n.currentFilter?null:n.currentFilter.formType)||""),e.xp6(6),e.hij("",e.lcZ(167,143,"TASKS.Team")," "),e.xp6(4),e.Q6J("items",n.teams)("preloadedSelectedItems",n.preloadedTeams)("preselectedLoaded",null==n.createFilterForm.value.teamId||!n.createFilterForm.value.teamId.length||n.preselectedLoaded)("itemsLoading",n.teamsLoading)("selectedFilterItems",(null==n.currentFilter?null:n.currentFilter.teamId)||""),e.xp6(3),e.Q6J("formGroup",n.createFilterForm),e.xp6(4),e.Q6J("disabled",!a.value.length),e.xp6(3),e.Oqu(e.lcZ(181,145,"TASKS.Save & Apply")),e.xp6(4),e.Oqu(e.lcZ(185,147,"TASKS.Reset")),e.xp6(3),e.Oqu(e.lcZ(188,149,"TASKS.Apply"))}},dependencies:[h.O5,p._Y,p.YN,p.Kr,p.Fj,p.Wl,p.EJ,p.JJ,p.JL,p.sg,p.u,p.x0,Ze.P,Ae.L,Ce.Z,k.X$],encapsulation:2})};function je(s,i){1&s&&(e.TgZ(0,"span",15),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"TASKS.Comment field is required")))}w=(0,A.gn)([(0,c.c)()],w);let Ee=(()=>{class s{constructor(t,n){this.activeModal=t,this.formBuilder=n,this.addComment=new e.vpe}ngOnInit(){this.commentForm=this.formBuilder.group({comment:["",[p.kI.required]]})}onAddComment(){this.addComment.emit(this.commentForm.value.comment),this.activeModal.close()}cancel(){this.activeModal.close()}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(u.Kz),e.Y36(p.qu))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["ff-tasks-update-comment"]],outputs:{addComment:"addComment"},decls:23,vars:15,consts:[[1,"modal-content",3,"formGroup"],[1,"d-flex","flex-row","justify-content-between","p-3","border-bottom","rounded-top","bg-light"],[1,"m-0","lh-1","text-grey-darker"],[1,"fa","fa-comment","text-primary-hover","fs-5"],[1,"fw-500"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"p-3"],[1,"mb-1","fs-14","fw-bold"],["formControlName","comment","rows","3","placeholder","Enter comments","data-cy","taskCommentInput",1,"form-control"],["class","text-danger",4,"ngIf"],[1,"d-flex","flex-row","justify-content-between","p-3","border-top","bg-light","rounded-bottom"],[1,"btn","btn-outline-danger",3,"click"],[1,"fa","fa-times"],["data-cy","addTaskCommentBtn",1,"btn","btn-primary","ms-2",3,"disabled","click"],[1,"fa","fa-check","text-info"],[1,"text-danger"]],template:function(n,a){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h4",2),e._UZ(3,"i",3),e.TgZ(4,"span",4),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e.TgZ(7,"button",5),e.NdJ("click",function(){return a.activeModal.close()}),e.qZA()(),e.TgZ(8,"div",6)(9,"label",7),e._uU(10),e.ALo(11,"translate"),e.qZA(),e._UZ(12,"textarea",8),e.YNc(13,je,3,3,"span",9),e.qZA(),e.TgZ(14,"div",10)(15,"button",11),e.NdJ("click",function(){return a.cancel()}),e._uU(16),e.ALo(17,"translate"),e._UZ(18,"i",12),e.qZA(),e.TgZ(19,"button",13),e.NdJ("click",function(){return a.onAddComment()}),e._uU(20),e.ALo(21,"translate"),e._UZ(22,"i",14),e.qZA()()()),2&n&&(e.Q6J("formGroup",a.commentForm),e.xp6(5),e.hij(" ",e.lcZ(6,7,"TASKS.Add comments"),""),e.xp6(5),e.Oqu(e.l
1cZ(11,9,"TASKS.Comment")),e.xp6(3),e.Q6J("ngIf",(null==a.commentForm.controls.comment.errors?null:a.commentForm.controls.comment.errors.required)&&a.commentForm.dirty),e.xp6(3),e.hij(" ",e.lcZ(17,11,"TASKS.Cancel")," "),e.xp6(3),e.Q6J("disabled",!(a.commentForm.valid&&a.commentForm.dirty)),e.xp6(1),e.hij(" ",e.lcZ(21,13,"TASKS.Add Comment")," "))},dependencies:[h.O5,p.Fj,p.JJ,p.JL,p.sg,p.u,k.X$],encapsulation:2})}return s})();var Ye=r(2376),$e=r(31);let He=(()=>{class s{constructor(){this.previewTask=null,this.previewDismiss=new e.vpe,this.previewDismissed=new e.vpe,this.inEditMode=new e.vpe,this.taskUpdate=new e.vpe}static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["app-preview-panel"]],inputs:{panelDirection:"panelDirection",previewTask:"previewTask"},outputs:{previewDismiss:"previewDismiss",previewDismissed:"previewDismissed",inEditMode:"inEditMode",taskUpdate:"taskUpdate"},decls:2,vars:2,consts:[["panelClass","preview-panel","routeForDismissing","tasks",3,"direction","previewDismissed"],[3,"previewTask","previewDismiss","taskUpdate","inEditMode"]],template:function(n,a){1&n&&(e.TgZ(0,"ff-resizable-panel",0),e.NdJ("previewDismissed",function(){return a.previewDismissed.emit()}),e.TgZ(1,"ff-task-edit",1),e.NdJ("previewDismiss",function(){return a.previewDismiss.emit()})("taskUpdate",function(l){return a.taskUpdate.emit(l)})("inEditMode",function(l){return a.inEditMode.emit(l)}),e.qZA()()),2&n&&(e.Q6J("direction",a.panelDirection),e.xp6(1),e.Q6J("previewTask",a.previewTask))},dependencies:[Ye.m,$e.F],encapsulation:2})}return s})();var Ge=r(3768),Be=r(8275),Ve=r(2455),Xe=r(1213),ze=r(7140);const et=function(){return["/tasks/create-task"]};let tt=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["ff-tasks-empty-table-state"]],decls:13,vars:5,consts:[[1,"text-center"],[1,"d-flex","justify-content-center","align-items-center"],[1,"fa","fa-file-alt","fa-lg","text-primary-dark","lh-base"],[1,"fa","fa-plus","text-info","lh-base","px-3"],[1,"fa","fa-user","fa-lg","text-primary-dark","lh-base"],[1,"fas","fa-equals","text-info","lh-base","px-3"],[1,"fa","fa-briefcase","fa-lg","text-primary-dark","lh-base"],[1,"text-grey","text-center","mb-3"],[1,"btn","btn-primary","d-block-inline",3,"routerLink"],[1,"fa","fa-briefcase","ps-1"]],template:function(n,a){1&n&&(e.TgZ(0,"div",0)(1,"h1",1),e._UZ(2,"i",2)(3,"i",3)(4,"i",4)(5,"i",5)(6,"i",6),e.qZA(),e.TgZ(7,"h4",7),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"a",8),e._uU(11," New Task "),e._UZ(12,"i",9),e.qZA()()),2&n&&(e.xp6(8),e.Oqu(e.lcZ(9,2,"TASKS.Empty Msg")),e.xp6(2),e.Q6J("routerLink",e.DdM(4,et)))},dependencies:[Z.rH,k.X$],encapsulation:2})}return s})();function it(s,i){1&s&&e._UZ(0,"ff-tasks-empty-table-state")}function nt(s,i){1&s&&e._UZ(0,"ff-loading-state")}let F=class L{constructor(i,t,n,a,o){this.tasksService=i,this.ngbModalService=t,this.modalService=n,this.filtersService=a,this.offcanvasService=o,this.pageFrom="task",this.canUpdateTasks=!1,this.currentPreviewTask=null,this.previewIsEditing=!1,this.tasks=[]}ngOnInit(){this.tasksLoading=!0,this.filtersService.getFilters$(this.pageFrom).pipe((0,d.b)(i=>{this.filters=i;const t=sessionStorage.getItem("taskFilter");if(t&&""!==t){const n=this.filters.find(a=>a.id===t);n&&(this.currentFilter=n)}this.getTasks()}),(0,g.x)(()=>this.canUpdateTasks=!0),(0,c.t)(this)).subscribe()}ngOnDestroy(){this.offcanvasService.dismiss()}onTableReady(i){this.tableApi=i}openPreviewPanel(i){this.currentPreviewTask=i;const t=()=>{this.currentPreviewTask=null,this.previewIsEditing=!1,this.offcanvasService.dismiss()};if(this.offcanvasService.hasOpenOffcanvas())this.previewIsEditing?this.modalService.showSaveChangesModal(()=>t()):t();else{const n=this.offcanvasService.open(He,{backdrop:!1,position:q.O.End,panelClass:"preview-panel",scroll:!0});n.componentInstance.panelDirection=q.O.End,n.componentInstance.previewTask=i,n.componentInstance.previewDismiss.pipe((0,d.b)(()=>this.previewIsEditing?this.modalService.showSaveChangesModal(()=>t()):t()),(0,c.t)(this)).subscribe(),n.componentInstance.previewDismissed.pipe((0,d.b)(()=>this.currentPreviewTask=null),(0,c.t)(this)).subscribe(),n.componentInstance.taskUpdate.pipe((0,d.b)(a=>this.tableApi.updateRow(this.getTasksWithOverDueDays([a])[0])),(0,c.t)(this)).subscribe(),n.componentInstance.inEditMode.pipe((0,d.b)(a=>this.previewIsEditing=a),(0,c.t)(this)).subscribe()}}onApplyFilter(i){this.tasksLoading=!0,this.currentFilter=i,sessionStorage.setItem("taskFilter",i.id??""),this.tableApi.setCurrentPage(1),this.tasksService.getTasks$({...i,...this.getTableSortingAndPagination()}).pipe((0,d.b)(t=>this.updateTasks(this.getTasksWithOverDueDays(t.listTasks),t.count)),(0,g.x)(()=>this.tasksLoading=!1),(0,c.t)(this)).subscribe()}onAddComment(i){this.tasksLoading=!0;
1const t=this.tableApi.getSelectedRows().map(n=>n.id);this.tasksService.addCommentToTasks$(t,i).pipe((0,v.w)(()=>this.tasksService.getTasks$({...this.getTableSortingAndPagination(),...this.currentFilter})),(0,d.b)(n=>this.updateTasks(this.getTasksWithOverDueDays(n.listTasks),n.count)),(0,g.x)(()=>{this.tasksLoading=!1}),(0,c.t)(this)).subscribe()}getTasksWithOverDueDays(i){return i.map(t=>{const n=(new Date).toString(),a=Math.ceil((Date.parse(n)-Date.parse(t.dueDate))/864e5);return{...t,overDue:a}})}onMarkClosed(i){this.tasksLoading=!0,this.tasksService.changeTasksStatus([i],O.D.Complete).pipe((0,v.w)(()=>this.tasksService.getTasks$({...this.getTableSortingAndPagination(),...this.currentFilter})),(0,d.b)(t=>{this.updateTasks(this.getTasksWithOverDueDays(t.listTasks),t.count)}),(0,g.x)(()=>{this.tasksLoading=!1}),(0,c.t)(this)).subscribe()}getTableSortingAndPagination(){return{...this.tableApi.getSortingDto(),...this.tableApi.getPaginationDto()}}onDeleteFilter(i){sessionStorage.removeItem("taskFilter"),this.filtersService.deleteFilter$(i).pipe((0,d.b)(()=>this.filters=this.filters.filter(t=>t.id!==i)),(0,c.t)(this)).subscribe()}notSelectedRowsModal(){return!this.tableApi.getSelectedRows().length&&(this.ngbModalService.open(Y._8).componentInstance.options={modalHeader:"Please select at least one task.",confirmationLabel:"Ok"},!0)}onAddCommentToTasks(){this.notSelectedRowsModal()||this.ngbModalService.open(Ee).componentInstance.addComment.pipe((0,d.b)(t=>this.onAddComment(t)),(0,c.t)(this)).subscribe()}onCloseTasks(){if(this.notSelectedRowsModal())return;this.tasksLoading=!0;const i=this.tableApi.getSelectedRows().map(t=>t.id);this.tasksService.changeTasksStatus(i,O.D.Complete).pipe((0,v.w)(()=>this.tasksService.getTasks$({...this.getTableSortingAndPagination(),...this.currentFilter})),(0,d.b)(t=>{this.updateTasks(this.getTasksWithOverDueDays(t.listTasks),t.count)}),(0,g.x)(()=>{this.tasksLoading=!1}),(0,c.t)(this)).subscribe()}updateTasks(i,t,n=!1){this.tasks=n?[...this.tasks,...i]:i,this.tableApi.setPaginationSize(t),this.tableApi.setRows(i,n),this.emptyState=t<6}onSortingOrPageChange(){this.currentFilter&&(this.currentFilter={...this.currentFilter,...this.getTableSortingAndPagination()}),this.canUpdateTasks&&this.getTasks()}loadMoreRows(){this.getTasks(!0)}getTasks(i=!1){this.tasksLoading=!i,this.tasksService.getTasks$({...this.getTableSortingAndPagination(),...this.currentFilter}).pipe((0,d.b)(t=>this.updateTasks(this.getTasksWithOverDueDays(t?.listTasks||[]),t?.count,i)),(0,g.x)(()=>this.tasksLoading=!1),(0,c.t)(this)).subscribe()}onResetFilter(){this.currentFilter=null,sessionStorage.removeItem("taskFilter"),this.tableApi.setCurrentPage(1),this.getTasks()}onOpenFilterDialog(i){const t=this.ngbModalService.open(w,{size:"lg"});i&&(t.componentInstance.currentFilter=this.getCurrentFilterFormat(i)),t.componentInstance.updateFilter.pipe((0,d.b)(n=>{this.filters=this.filters.map(a=>a.id===n.id?n:a),this.filtersService.updateFilter$(n,this.pageFrom).pipe((0,v.w)(()=>(this.tasksLoading=!0,this.currentFilter=n,sessionStorage.setItem("taskFilter",n.id??""),this.tableApi.setCurrentPage(1),this.tasksService.getTasks$({...n,...this.getTableSortingAndPagination()}))),(0,d.b)(a=>{this.updateTasks(this.getTasksWithOverDueDays(a.listTasks),a.count),this.tasksLoading=!1}),(0,c.t)(this)).subscribe()}),(0,c.t)(this)).subscribe(),t.componentInstance.saveFilter.pipe((0,v.w)(n=>this.filtersService.saveFilter$(n,this.pageFrom)),(0,d.b)(n=>this.filters=[...this.filters,n]),(0,v.w)(n=>(this.tasksLoading=!0,this.currentFilter=n,sessionStorage.setItem("taskFilter",n.id??""),this.tableApi.setCurrentPage(1),this.tasksService.getTasks$({...n,...this.getTableSortingAndPagination()}))),(0,d.b)(n=>{this.updateTasks(this.getTasksWithOverDueDays(n.listTasks),n.count),this.tasksLoading=!1}),(0,c.t)(this)).subscribe(),t.componentInstance.formGroupSubmit.pipe((0,v.w)(n=>(this.tasksLoading=!0,this.currentFilter=n,this.tableApi.setCurrentPage(1),this.tasksService.getTasks$({...n,...this.getTableSortingAndPagination()}))),(0,d.b)(n=>{this.updateTasks(this.getTasksWithOverDueDays(n.listTasks),n.count),this.tasksLoading=!1}),(0,c.t)(this)).subscribe()}getCurrentFilterFormat(i){return{priority:{default:i.priority.includes(_.T.Default),low:i.priority.includes(_.T.Low),medium:i.priority.includes(_.T.Medium),critical:i.priority.includes(_.T.Critical)},status:{open:i.status.includes(_.h.Open),closed:i.status.includes(_.h.Closed),new:i.status.includes(_.h.New)},createdIn:i.reportedIn||"",createdFrom:i.reportedFrom,createdTo:i.reportedTo,dueIn:i.dueIn||"",dueFrom:i.dueFrom,dueTo:i.dueTo,assignedTo:i.assignedTo,teamId:i.teamId,formType:i.formType,name:i.name||"",id:i.id}}static#e=this.\u0275fac=function(t){return new(t||L)(e.Y36(Ge.C),e.Y36(u.FF),e.Y36(Be.Z),e.Y36(Ve.q),e.Y36(u._B))};static#t=this.\u0275cmp=e.Xpm({type:L,selectors:[["ff-tasks-page"]],decls:6,vars:8,consts:[[3,"tasksLoading","filters","currentFilter","openFilterDialog","closeTasks","addCommentToTasks","filterDelete","filterReset","filterApply"],[1,"container","listPage","tasks"],[3,"currentPreviewTask","tableReadyEvent","markClosed","sortingChanged","pageChangedEvent","openPreviewPanel","loadMoreRows"],[4,"ngIf"]],template:function(t,n){1&t&&(e.TgZ(0,"ff-layout")(1,"ff-tasks-header",0),e.NdJ("openFilterDialog",function(o){return n.onOpenFilterDialog(o)})("closeTasks",function(){return n.onCloseTasks()})("addCommentToTasks",function(){return n.onAddCommentToTasks()}
1)("filterDelete",function(o){return n.onDeleteFilter(o)})("filterReset",function(){return n.onResetFilter()})("filterApply",function(o){return n.onApplyFilter(o)}),e.qZA(),e.TgZ(2,"div",1)(3,"ff-tasks-table",2),e.NdJ("tableReadyEvent",function(o){return n.onTableReady(o)})("markClosed",function(o){return n.onMarkClosed(o)})("sortingChanged",function(){return n.onSortingOrPageChange()})("pageChangedEvent",function(){return n.onSortingOrPageChange()})("openPreviewPanel",function(o){return n.openPreviewPanel(o)})("loadMoreRows",function(){return n.loadMoreRows()}),e.qZA(),e.YNc(4,it,1,0,"ff-tasks-empty-table-state",3),e.YNc(5,nt,1,0,"ff-loading-state",3),e.qZA()()),2&t&&(e.xp6(1),e.Q6J("tasksLoading",n.tasksLoading)("filters",n.filters)("currentFilter",n.currentFilter),e.xp6(2),e.ekj("d-none",n.tasksLoading),e.Q6J("currentPreviewTask",n.currentPreviewTask),e.xp6(1),e.Q6J("ngIf",n.emptyState&&!n.tasksLoading),e.xp6(1),e.Q6J("ngIf",n.tasksLoading))},dependencies:[h.O5,Xe.$,ze.X,C,x,tt],encapsulation:2})};F=(0,A.gn)([(0,c.c)()],F);let st=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#i=this.\u0275inj=e.cJS({imports:[h.ez,I.x,u.XC,M.s,P.z,p.UX,J.s,K.I,Q.F,W.r,R.D,p.u5,u.HK,j.G,E.$,k.aw,Z.Bz.forChild([{path:"",component:F}])]})}return s})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.