PageSourceSearch

https://ds.datascientia.eu/community/4778.130dc7fbf799d2da.js

js datascientia.eu collected 2026-09-24 11:49:53 UTC 30,042 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklorax=self.webpackChunklorax||[]).push([[4778],{4778:(P,N,s)=>{s.r(N),s.d(N,{AdvanceTableModule:()=>Le});var v=s(6895),A=s(4006),k=s(9132),T=s(1135),r=s(9186),e=s(4650),M=s(529),U=s(5680);let S=(()=>{class n extends r.n{constructor(t,i){super(),this.httpClient=t,this.localService=i,this.API_URL="assets/data/allIncentivesData.json",this.isTblLoading=!0,this.dataChange=new T.X([])}get data(){return this.dataChange.value}getAllAdvanceTables(t,i){this.subs.sink=this.httpClient.post(t,i).subscribe(a=>{this.isTblLoading=!1,this.dataChange.next(a.data)},a=>{this.isTblLoading=!1,console.log(a.name+" "+a.message)})}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(M.eN),e.LFG(U.C))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n})();var x=s(8739),C=s(6308),Z=s(5017),I=s(4968),J=s(6451),Q=s(4004),h=s(3238),b=s(8255),O=s(9860),p=s(5226),d=s.n(p),c=s(5938),f=s(7009),g=s(600),m=s(671),w=s(4859),D=s(7392),E=s(266),y=s(1572),L=s(1299);const B=["filter"];function $(n,o){if(1&n&&(e.TgZ(0,"div",53),e._UZ(1,"app-breadcrumb",54),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("title",t.title)("items",t.items)("active_item",t.active)}}function F(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",55)(1,"button",56),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.newIncentiveRedirect())}),e._uU(2," New Incentive "),e.TgZ(3,"mat-icon",21),e._uU(4,"add"),e.qZA()()()}}function H(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",57)(1,"img",58),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.exporter.exportTable("xlsx",{fileName:"participants_incentive_details",sheet:"sheet1"}))}),e.qZA()()}}function G(n,o){1&n&&e._UZ(0,"mat-header-cell",59),2&n&&e.Q6J("ngClass","tbl-col-width-per-6")}function X(n,o){1&n&&e._UZ(0,"mat-cell",59),2&n&&e.Q6J("ngClass","tbl-col-width-per-6")}function V(n,o){1&n&&(e.TgZ(0,"mat-header-cell",60),e._uU(1,"Id"),e.qZA())}function W(n,o){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){const t=o.$implicit;e.xp6(1),e.Oqu(t.id)}}function K(n,o){1&n&&(e.TgZ(0,"mat-header-cell",61),e._uU(1,"Project Title "),e.qZA()),2&n&&e.Q6J("ngClass","tbl-col-width-per-30")}function j(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",62),e.NdJ("contextmenu",function(a){const _=e.CHM(t).$implicit,u=e.oxw();return e.KtG(u.onContextMenu(a,_))}),e._uU(1),e.qZA()}if(2&n){const t=o.$implicit;e.Q6J("ngClass","tbl-col-width-per-30"),e.xp6(1),e.hij(" ",t.study_title,"")}}function q(n,o){1&n&&(e.TgZ(0,"mat-header-cell",61),e._uU(1,"Participant "),e.qZA()),2&n&&e.Q6J("ngClass","tbl-col-width-per-20")}function z(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",62),e.NdJ("contextmenu",function(a){const _=e.CHM(t).$implicit,u=e.oxw();return e.KtG(u.onContextMenu(a,_))}),e._uU(1),e.qZA()}if(2&n){const t=o.$implicit;e.Q6J("ngClass","tbl-col-width-per-20"),e.xp6(1),e.hij(" ",t.member_name,"")}}function ee(n,o){1&n&&(e.TgZ(0,"mat-header-cell",61),e._uU(1,"Created by"),e.qZA()),2&n&&e.Q6J("ngClass","tbl-col-width-per-20")}function te(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",62),e.NdJ("contextmenu",function(a){const _=e.CHM(t).$implicit,u=e.oxw();return e.KtG(u.onContextMenu(a,_))}),e._uU(1),e.qZA()}if(2&n){const t=o.$implicit;e.Q6J("ngClass","tbl-col-width-per-20"),e.xp6(1),e.hij(" ",t.researcher_name,"")}}function ne(n,o){1&n&&(e.TgZ(0,"mat-header-cell",61),e._uU(1,"Incentive "),e.qZA()),2&n&&e.Q6J("ngClass","tbl-col-width-per-10")}function ae(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",62),e.NdJ("contextmenu",function(a){const _=e.CHM(t).$implicit,u=e.oxw();return e.KtG(u.onContextMenu(a,_))}),e._uU(1),e.qZA()}if(2&n){const t=o.$implicit;e.Q6J("ngClass","tbl-col-width-per-10"),e.xp6(1),e.hij(" ",t.study_incentive,"")}}function ie(n,o){1&n&&(e.TgZ(0,"mat-header-cell",61),e._uU(1,"Status"),e.qZA()),2&n&&e.Q6J("ngClass","tbl-col-width-per-12")}function oe(n,o){if(1&n&&(e.TgZ(0,"span",68),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.incentive_status)}}function se(n,o){if(1&n&&(e.TgZ(0,"span",69),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.incentive_status)}}function re(n,o){if(1&n&&(e.TgZ(0,"span",70),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.incentive_status)}}function le(n,o){if(1&n&&(e.TgZ(0,"span",71),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.incentive_status)}}function ce(n,o){if(1&n&&(e.TgZ(0,"span",72),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.incentive_status)}}function de(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",62),e.NdJ("contextmenu",function(a){const _=e.CHM(t).$implicit,u=e.oxw();return e.KtG(u.onContextMenu(a,_))}),e.YNc(1,oe,2,1,"span",63),e.YNc(2,se,2,1,"span",64),e.YNc(3,re,2,1,"span",65),e.YNc(4,le,2,1,"span",66),e.YNc(5,ce,2,1,"span",67),e.qZA()}if(2&n){const t=o.$implicit;e.Q6J("ngClass","tbl-col-width-per-12"),e.xp6(1),e.Q6J("ngIf","rejected"==t.incentive_status),e.xp6(1),e.Q6J("ngIf","approved"==t.incentive_status),e.xp6(1),e.Q6J("ngIf","processed"==t.incentive_status),e.xp6(1),e.Q6J("ngIf","inprogress"==t.incentive_status),e.xp6(1),e.Q6J("ngIf","pending"==t.incentive_status)}}function me(n,o){1&n&&(e.TgZ(0,"mat-header-cell",73),e._uU(1,"IBAN"),e.qZA()),2&n&&e.Q6J("ngClass","tbl-col-width-per-12")}function _e(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",74),e.NdJ("contextmenu",function(a){const _=e.CHM(t).$implicit,u=e.oxw();return e.KtG(u.onContextMenu(a,_))}),e._uU(1),e.qZA()}if(2&n){const t=o.$implicit;e.Q6J("ngClass","tbl-col-width-per-12"),e.xp6(1),e.hij(" ",t.member_iban," ")}}function pe(n,o){1&n&&(e.TgZ(0,"mat-header-cell",73),e._uU(1,"Fiscal Code"),e.qZA()),2&n&&e.Q6J("ngClass","tbl-col-width-per-12")}function ue(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",74),e.NdJ("contextmenu",function(a){const _=e.CHM(t).$implicit,u=e.oxw();return e.KtG(u.onContextMenu(a,_))}),e._uU(1),e.qZA()}if(2&n){const t=o.$implicit;e.Q6J("ngClass","tbl-col-width-per-12"),e.xp6(1),e.hij(" ",t.member_fiscal_code," ")}}function fe(n,o){1&n&&(e.TgZ(0,"mat-header-cell",75),e._uU(1,"Actions"),e.qZA()),2&n&&e.Q6J("ngClass","tbl-col-width-per-16")}function he(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(a){return a.stopPropagation()})("click",function(){e.CHM(t);const a=e.oxw().$implicit,l=e.oxw();return e.KtG(l.editIncentive(a))}),e.TgZ(1,"mat-icon",82),e._uU(2,"edit"),e.qZA(),e._uU(3,"Edit "),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("hidden","pending"!=(null==t?null:t.incentive_status))}}function ge(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(a){return a.stopPropagation()})("click",function(){e.CHM(t);const a=e.oxw().$implicit,l=e.oxw();return e.KtG(l.deleteIncentive(a))}),e.TgZ(1,"mat-icon",83),e._uU(2,"delete_forever"),e.qZA(),e._uU(3,"Delete "),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("hidden","pending"!=(null==t?null:t.incentive_status))}}function ve(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(a){return a.stopPropagation()})("click",function(){e.CHM(t);const a=e.oxw().$implicit,l=e.oxw();return e.KtG(l.updateIncentive(a,"approved"))}),e.TgZ(1,"mat-icon",70),e._uU(2,"check_circle"),e.qZA(),e._uU(3,"Approve "),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("hidden","pending"!=(null==t?null:t.incentive_status))}}function Te(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(a){return a.stopPropagation()})("click",function(){e.CHM(t);const a=e.oxw().$implicit,l=e.oxw();return e.KtG(l.updateIncentive(a,"rejected"))}),e.TgZ(1,"mat-icon",83),e._uU(2,"cancel"),e.qZA(),e._uU(3,"Reject "),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("hidden","pending"!=(null==t?null:t.incentive_status))}}function xe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(a){return a.stopPropagation()})("click",function(){e.CHM(t);const a=e.oxw().$implicit,l=e.oxw();return e.KtG(l.processIncentivePayment(a))}),e.TgZ(1,"mat-icon",82),e._uU(2,"settings"),e.qZA(),e._uU(3,"Process Payment "),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("hidden","rejected"==t.incentive_status||"processed"==t.incentive_status)}}function be(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"mat-cell",59)(1,"button",76)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,77)(6,"button",78),e.NdJ("click",function(a){return a.stopPropagation()})("click",function(){const l=e.CHM(t).$implicit,_=e.oxw();return e.KtG(_.loadIncentiveDetails(l))}),e.TgZ(7,"mat-icon",79),e._uU(8,"info"),e.qZA(),e._uU(9,"Details "),e.qZA(),e.YNc(10,he,4,1,"button",8
10),e.YNc(11,ge,4,1,"button",80),e.YNc(12,ve,4,1,"button",80),e.YNc(13,Te,4,1,"button",80),e.YNc(14,xe,4,1,"button",80),e.qZA()()}if(2&n){const t=e.MAs(5),i=e.oxw();e.Q6J("ngClass","tbl-col-width-per-16"),e.xp6(1),e.Q6J("matMenuTriggerFor",t),e.xp6(9),e.Q6J("ngIf","researcher"==i.user_role),e.xp6(1),e.Q6J("ngIf","researcher"==i.user_role),e.xp6(1),e.Q6J("ngIf","financial_admin"==i.user_role),e.xp6(1),e.Q6J("ngIf","financial_admin"==i.user_role),e.xp6(1),e.Q6J("ngIf","financial_admin"==i.user_role)}}function Ce(n,o){1&n&&e._UZ(0,"mat-header-row")}function Ae(n,o){1&n&&e._UZ(0,"mat-row",84),2&n&&e.Udp("cursor","pointer")}function ke(n,o){1&n&&(e.TgZ(0,"div",85),e._UZ(1,"mat-progress-spinner",86),e.qZA()),2&n&&(e.xp6(1),e.Q6J("diameter",40))}function Se(n,o){if(1&n&&(e.TgZ(0,"div",87)(1,"div",88),e._UZ(2,"br"),e.TgZ(3,"h5"),e._uU(4,"No records found"),e.qZA()()()),2&n){const t=e.oxw();e.Udp("display",0==t.dataSource.renderedData.length?"":"none")}}const Ze=function(){return[5,10,25,100]};let we=(()=>{class n extends r.n{constructor(t,i,a,l,_,u,R){super(),this.httpClient=t,this.dialog=i,this.advanceTableService=a,this.snackBar=l,this.router=_,this.backendService=u,this.localService=R,this.displayedColumns=["select","study_title","member_name","researcher_name","study_incentive","incentive_status","member_iban","member_fiscal_code","actions"],this.selection=new Z.Ov(!0,[]),this.studies_endpoint_url="",this.breadscrums=[{title:"All Incentives",items:["Incentives"],active:"All"}],this.contextMenuPosition={x:"0px",y:"0px"},this.user_role="",this.filters_data={member_ds_id:"",incentive_status:"",incentive_id:0,researcher_ds_id:""}}ngOnInit(){if(this.user_role=this.localService.getUserRole(),this.studies_endpoint_url=this.backendService.api_link+"get_all_incentives/",this.user_role==this.backendService.researcher){let i=this.localService.getJsonValue("researcher_ds_id");this.filters_data.researcher_ds_id=i}else if(this.user_role==this.backendService.participant||this.user_role==this.backendService.member){let i=this.localService.getJsonValue("member_ds_id");this.filters_data.member_ds_id=i,this.filters_data.incentive_status="processed,approved"}this.loadData()}refresh(){this.loadData()}newIncentiveRedirect(){this.router.navigate(["/incentives/new"])}deleteIncentive(t){this.backendService.deleteIncentive({incentive_id:t.incentive_id}).subscribe(l=>{let _=l.message;d().fire({icon:"success",title:"Success!",text:_,showConfirmButton:!1,timer:2500}),this.loadData()},l=>{console.log(l)})}loadIncentiveDetails(t){O.Z.goToIncentiveDetails(t.incentive_id,this.router)}editIncentive(t){this.router.navigate(["/incentives/edit/"+t.incentive_id])}updateIncentive(t,i){this.backendService.updateIncentive({incentive_id:t.incentive_id,incentive_status:i,study_ds_id:t.study_ds_id,member_ds_id:t.member_ds_id}).subscribe(Y=>{let Be=Y.message;d().fire({icon:"success",title:"Success!",text:Be,showConfirmButton:!1,timer:2500}),this.loadData()},Y=>{console.log(Y)})}processIncentivePayment(t){this.router.navigate(["/incentives/processPayment/"+t.incentive_id])}refreshTable(){this.paginator._changePageSize(this.paginator.pageSize)}isAllSelected(){return this.selection.selected.length===this.dataSource.renderedData.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.renderedData.forEach(t=>this.selection.select(t))}removeSelectedRows(){const t=this.selection.selected.length;this.selection.selected.forEach(i=>{const a=this.dataSource.renderedData.findIndex(l=>l===i);this.exampleDatabase.dataChange.value.splice(a,1),this.refreshTable(),this.selection=new Z.Ov(!0,[])}),this.showNotification("snackbar-danger",t+" Record Delete Successfully...!!!","bottom","center")}loadData(){this.exampleDatabase=new S(this.httpClient,this.localService),this.dataSource=new De(this.exampleDatabase,this.paginator,this.sort,this.studies_endpoint_url,this.filters_data),this.subs.sink=(0,I.R)(this.filter.nativeElement,"keyup").subscribe(()=>{!this.dataSource||(this.dataSource.filter=this.filter.nativeElement.value)})}showNotification(t,i,a,l){this.snackBar.open(i,"",{duration:2e3,verticalPosition:a,horizontalPosition:l,panelClass:t})}onContextMenu(t,i){t.preventDefault(),this.contextMenuPosition.x=t.clientX+"px",this.contextMenuPosition.y=t.clientY+"px",this.contextMenu.menuData={item:i},this.contextMenu.menu.focusFirstItem("mouse"),this.contextMenu.openMenu()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(M.eN),e.Y36(c.uw),e.Y36(S),e.Y36(f.ux),e.Y36(k.F0),e.Y36(g.v),e.Y36(U.C))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-advance-table"]],viewQuery:function(t,i){if(1&t&&(e.Gf(x.NW,7),e.Gf(C.YE,7),e.Gf(B,7),e.Gf(b.p6,5)),2&t){let a;e.iGM(a=e.CRH())&&(i.paginator=a.first),e.iGM(a=e.CRH())&&(i.sort=a.first),e.iGM(a=e.CRH())&&(i.filter=a.first),e.iGM(a=e.CRH())&&(i.contextMenu=a.first)}},features:[e._Bn([{provide:h.Ad,useValue:"en-GB"}]),e.qOj],decls:77,vars:13,consts:[[1,"content"],[1,"container-fluid"],["class","block-header",4,"ngFor","ngForOf"],[1,"alert","alert-primary"],[2,"margin-bottom","-7px"],[1,"row"],[1,"col-lg-12","col-md-12","col-sm-12","col-xs-12"],[1,"card"],[1,"body"],[1,"responsive_table"],[1,"materialTableHeader"],[1,"col-8"],[1,"header-buttons-left","ml-0"],[1,"dropdown"],[1,"dropdown","m-l-20"],["for","search-input"],[1,"material-icons","search-icon"],["placeholder","Search","type","text","aria-label","Search box",1,"browser-default","search-field"],["filter",""],["matTooltip","REFRESH",1,"export-button","m-l-10"],["mat-mini-fab","","color","primary",3,"click"],[1,"col-white"],[1,"col-4"],[1,"header-buttons"],["class","export-button m-l-10","matTooltip","Create Study",4,"ngIf"],["class","export-button m-l-10","matTooltip","XLSX",4,"ngIf"],["matTableExporter","","matSort","",1,"mat-cell",3,"dataSource"],["table",""],["matColumnDef","select"],[3,"ngClass",4,"matHeaderCellDef"],[3,"ngClass",4,"matCellDef"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","study_title"],["mat-sort-header","",3,"ngClass",4,"matHeaderCellDef"],[3,"ngClass","contextmenu",4,"matCellDef"],["matColumnDef","member_name"],["matColumnDef","researcher_name"],["matColumnDef","study_incentive"],["matColumnDef","incentive_status"],["matColumnDef","member_iban"],["hidden","",3,"ngClass",4,"matHeaderCellDef"],["hidden","",3,"ngClass","contextmenu",4,"matCellDef"],["matColumnDef","member_fiscal_code"],["matColumnDef","actions"],["class","pr-0",3,"ngClass",4,"matHeaderCellDef"],[4,"matHeaderRowDef"],["matRipple","",3,"cursor",4,"matRowDef","matRowDefColumns"],["class","tbl-spinner",4,"ngIf"],["class","no-results",3,"display",4,"ngIf"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],[1,"block-header"],[3,"title","items","active_item"],["matTooltip","Create Study",1,"export-button","m-l-10"],["mat-raised-button","","color","primary",3,"click"],["matTooltip","XLSX",1,"export-button","m-l-10"],["src","assets/images/icons/xlsx.png","alt","",3,"click"],[3,"ngClass"],["mat-sort-header",""],["mat-sort-header","",3,"ngClass"],[3,"ngClass","contextmenu"],["style","color: red",4,"ngIf"],["style","color: green",4,"ngIf"],["style","color: darkgreen",4,"ngIf"],["style","color: blue",4,"ngIf"],["style","color: orange",4,"ngIf"],[2,"color","red"],[2,"color","green"],[2,"color","darkgreen"],[2,"color","blue"],[2,"color","orange"],["hidden","",3,"ngClass"],["hidden","",3,"ngClass","contextmenu"],[1,"pr-0",3,"ngClass"],["mat-icon-button","","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],[2,"color","darkblue"],["mat-menu-item","",3,"hidden","click",4,"ngIf"],["mat-menu-item","",3,"hidden","click"],[2,"color","grey"],[2,"color","darkred"],["matRipple",""],[1,"tbl-spinner"],["color","primary","mode","indeterminate",3,"diameter"],[1,"no-results"],[2,"padding-left","45%"]],template:function(t,i){1&t&&(e.TgZ(0,"section",0)(1,"div",1),e.YNc(2,$,2,3,"div",2),e.TgZ(3,"div",3)(4,"mat-icon",4),e._uU(5,"info"),e.qZA(),e._uU(6," All incentives created for a participant upon completion of a Project are listed here. "),e.TgZ(7,"strong"),e._uU(8,"Status"),e.qZA(),e._uU(9," of an incentive refers to the progress of the incentive request. "),e.qZA(),e.TgZ(10,"div",5)(11,"div",6)(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",5)(17,"div",11)(18,"ul",12)(19,"li",13)(20,"h2"),e._uU(21,"All Incentives"),e.qZA()(),e.TgZ(22,"li",14)(23,"label",15)(24,"i",16),e._uU(25,"search"),e.qZA()(),e._UZ(26,"input",17,18),e.qZA(),e.TgZ(28,"li")(29,"div",19)(30,"button",20),e.NdJ("click",function(){return i.refresh()}),e.TgZ(31,"mat-icon",21),e._uU(32,"refresh"),e.qZA()()()()()(),e.TgZ(33,"div",22)(34,"ul",23)(35,"li"),e.YNc(36,F,5,0,"div",24),e.qZA(),e.TgZ(37,"li"),e.YNc(38,H,2,0,"div",25),e.qZA()()()()(),e.TgZ(39,"mat-table",26,27),e.ynx(41,28),e.YNc(42,G,1,1,"mat-header-cell",29),e.YNc(43,X,1,1,"mat-cell",30),e.BQk(),e.ynx(44,31),e.YNc(45,V,2,0,"mat-header-cell",32),e.YNc(46,W,2,1,"mat-cell",33),e.BQk(),e.ynx(47,34),e.YNc(48,K,2,1,"mat-header-cell",35),e.YNc(49,j,2,2,"mat-cell",36),e.BQk(),e.ynx(50,37),e.YNc(51,q,2,1,"mat-header-cell",35),e.YNc(52,z,2,2,"mat-cell",36),e.BQk(),e.ynx(53,38),e.YNc(54,ee,2,1,"mat-header-cell",35),e.YNc(55,te,2,2,"mat-cell",36),e.BQk(),e.ynx(56,39),e.YNc(57,ne,2,1,"mat-header-cell",35),e.YNc(58,ae,2,2,"mat-cell",36),e.BQk(),e.ynx(59,40),e.YNc(60,ie,2,1,"mat-header-cell",35),e.YNc(61,de,6,6,"mat-cell",36),e.BQk(),e.ynx(62,41),e.YNc(63,me,2,1,"mat-header-cell",42),e.YNc(64,_e,2,2,"mat-cell",43),e.BQk(),e.ynx(65,44),e.YNc(66,pe,2,1,"mat-header-cell",42),e.YNc(67,ue,2,2,"mat-cell",43),e.BQk(),e.ynx(68,45),e.YNc(69,fe,2,1,"mat-header-cell",46),e.YNc(70,be,15,7,"mat-cell",30),e.BQk(),e.YNc(71,Ce,1,0,"mat-header-row",47),e.YNc(72,Ae,1,2,"mat-row",48),e.qZA(),e.YNc(73,ke,2,1,"div",49),e.YNc(74,Se,5,2,"div",50),e._UZ(75,"mat-paginator",51,52),e.qZA()()()()()()()),2&t&&(e.xp6(2),e.Q6J("ngForOf",i.breadscrums),e.xp6(34),e.Q6J("ngIf","researcher"==i.user_role),e.xp6(2),e.Q6J("ngIf","researcher"!=i.user_role),e.xp6(1),e.Q6J("dataSource",i.dataSource),e.xp6(32),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",i.exampleDatabase.isTblLoading),e.xp6(1),e.Q6J("ngIf",!i.exampleDatabase.isTblLoading),e.xp6(1),e.Q6J("length",i.dataSource.filteredData.length)("pageIndex",0)("pageSize",10)("pageSizeOptions",e.DdM(12,Ze)))},dependencies:[v.mk,v.sg,v.O5,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,x.NW,w.lW,D.Hw,C.YE,C.nU,b.VK,b.OP,b.p6,E.gM,y.Ou,L.L]}),n})();class De extends Z.o2{constructor(o,t,i,a,l){super(),this.exampleDatabase=o,this.paginator=t,this._sort=i,this.studies_api_url=a,this.data=l,this.filterChange=new T.X(""),this.api_url="",this.filteredData=[],this.renderedData=[],this.filterChange.subscribe(()=>this.paginator.pageIndex=0),this.api_url=a,this.filters_data_set=l}get filter(){return this.filterChange.value}set filter(o){this.filterChange.next(o)}connect(){const o=[this.exampleDatabase.dataChange,this._sort.sortChange,this.filterChange,this.paginator.page];return this.exampleDatabase.getAllAdvanceTables(this.api_url,this.filters_data_set),(0,J.T)(...o).pipe((0,Q.U)(()=>{this.filteredData=this.exampleDatabase.data.slice().filter(a=>-1!==(a.study_title+a.member_name+a.researcher_name+a.study_incentive+a.incentive_status).toLowerCase().indexOf(this.filter.toLowerCase()));const t=this.sortData(this.filteredData.slice());return this.renderedData=t.splice(this.paginator.pageIndex*this.paginator.pageSize,this.paginator.pageSize),this.renderedData}))}disconnect(){}sortData(o){return this._sort.active&&""!==this._sort.direction?o.sort((t,i)=>{let a="",l="";switch(this._sort.active){case"id":[a,l]=[t.id,i.id];break;case"study_title":[a,l]=[t.study_title,i.study_title];break;case"member_name":[a,l]=[t.member_name,i.member_name];break;case"researcher_name":[a,l]=[t.researcher_name,i.researcher_name];break;case"incentive_status":[a,l]=[t.incentive_status,i.incentive_status]}return((isNaN(+a)?a:+a)<(isNaN(+l)?l:+l)?-1:1)*("asc"===this._sort.direction?1:-1)}):o}}const Ee=[{path:"",component:we}];let ye=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[k.Bz.forChild(Ee),k.Bz]}),n})();var Ne=s(9549),Me=s(4144),Ue=s(1948),Ie=s(6709),Je=s(4385),Qe=s(3546),Re=s(9602),Ye=s(3683),Oe=s(5626),Pe=s(3781);let Le=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[S],imports:[v.ez,A.u5,A.UX,ye,m.p0,x.TU,Ne.lN,Me.c,f.ZX,w.ot,D.Ps,Ue.Fk,Je.LD,Ie.p9,Qe.QW,Re.FA,c.Is,C.JX,Ye.g0,b.Tx,E.AV,y.Cq,Oe.K,Pe.m]}),n})()},1572:(P,N,s)=>{s.d(N,{Cq:()=>b,Ou:()=>h});var v=s(1281),A=s(3353),k=s(8220),T=s(6895),r=s(4650),e=s(3238),M=s(727);function U(p,d){if(1&p&&(r.O4$(),r._UZ(0,"circle",4)),2&p){const c=r.oxw(),f=r.MAs(1);r.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+c._spinnerAnimationLabel)("stroke-dashoffset",c._getStrokeDashOffset(),"px")("stroke-dasharray",c._getStrokeCircumference(),"px")("stroke-width",c._getCircleStrokeWidth(),"%")("transform-origin",c._getCircleTransformOrigin(f)),r.uIk("r",c._getCircleRadius())}}function S(p,d){if(1&p&&(r.O4$(),r._UZ(0,"circle",4)),2&p){const c=r.oxw(),f=r.MAs(1);r.Udp("stroke-dashoffset",c._getStrokeDashOffset(),"px")("stroke-dasharray",c._getStrokeCircumference(),"px")("stroke-width",c._getCircleStrokeWidth(),"%")("transform-origin",c._getCircleTransformOrigin(f)),r.uIk("r",c._getCircleRadius())}}const Z=(0,e.pj)(class{constructor(p){this._elementRef=p}},"primary"),I=new r.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function J(){return{diameter:100}}});
1class h extends Z{constructor(d,c,f,g,m,w,D,E){super(d),this._document=f,this._diameter=100,this._value=0,this._resizeSubscription=M.w0.EMPTY,this.mode="determinate";const y=h._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),y.has(f.head)||y.set(f.head,new Set([100])),this._noopAnimations="NoopAnimations"===g&&!!m&&!m._forceAnimations,"mat-spinner"===d.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),m&&(m.color&&(this.color=this.defaultColor=m.color),m.diameter&&(this.diameter=m.diameter),m.strokeWidth&&(this.strokeWidth=m.strokeWidth)),c.isBrowser&&c.SAFARI&&D&&w&&E&&(this._resizeSubscription=D.change(150).subscribe(()=>{"indeterminate"===this.mode&&E.run(()=>w.markForCheck())}))}get diameter(){return this._diameter}set diameter(d){this._diameter=(0,v.su)(d),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(d){this._strokeWidth=(0,v.su)(d)}get value(){return"determinate"===this.mode?this._value:0}set value(d){this._value=Math.max(0,Math.min(100,(0,v.su)(d)))}ngOnInit(){const d=this._elementRef.nativeElement;this._styleRoot=(0,A.kV)(d)||this._document.head,this._attachStyleNode(),d.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const d=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${d} ${d}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(d){const c=50*(d.currentScale??1);return`${c}% ${c}%`}_attachStyleNode(){const d=this._styleRoot,c=this._diameter,f=h._diameters;let g=f.get(d);if(!g||!g.has(c)){const m=this._document.createElement("style");m.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),m.textContent=this._getAnimationText(),d.appendChild(m),g||(g=new Set,f.set(d,g)),g.add(c)}}_getAnimationText(){const d=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*d).replace(/END_VALUE/g,""+.2*d).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}h._diameters=new WeakMap,h.\u0275fac=function(d){return new(d||h)(r.Y36(r.SBq),r.Y36(A.t4),r.Y36(T.K0,8),r.Y36(r.QbO,8),r.Y36(I),r.Y36(r.sBO),r.Y36(k.rL),r.Y36(r.R0b))},h.\u0275cmp=r.Xpm({type:h,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(d,c){2&d&&(r.uIk("aria-valuemin","determinate"===c.mode?0:null)("aria-valuemax","determinate"===c.mode?100:null)("aria-valuenow","determinate"===c.mode?c.value:null)("mode",c.mode),r.Udp("width",c.diameter,"px")("height",c.diameter,"px"),r.ekj("_mat-animation-noopable",c._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[r.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(d,c){1&d&&(r.O4$(),r.TgZ(0,"svg",0,1),r.YNc(2,U,1,11,"circle",2),r.YNc(3,S,1,9,"circle",3),r.qZA()),2&d&&(r.Udp("width",c.diameter,"px")("height",c.diameter,"px"),r.Q6J("ngSwitch","indeterminate"===c.mode),r.uIk("viewBox",c._getViewBox()),r.xp6(2),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}
1@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let b=(()=>{class p{}return p.\u0275fac=function(c){return new(c||p)},p.\u0275mod=r.oAB({type:p}),p.\u0275inj=r.cJS({imports:[e.BQ,T.ez,e.BQ]}),p})()}}]);

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.