uawdijnntqw1x1x1
IP : 216.73.216.55
Hostname : srv913213
Kernel : Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
krbed.in
/
..
/
..
/
www
/
yapwebtv.com
/
..
/
school_portal_admin
/
106-es2015.6632d9d4c367a2e132e5.js
/
/
(window.webpackJsonp=window.webpackJsonp||[]).push([[106],{"+O02":function(t,e,a){"use strict";a.r(e);var c=a("tyNb"),s=a("ofXK"),i=a("3Pt+"),r=a("bTqV"),o=a("Wp6s"),n=a("bSwM"),l=a("FKr1"),d=a("iadO"),u=a("NFeN"),p=a("qFsG"),h=a("MutI"),m=a("bv9b"),g=a("QibW"),b=a("xHqg"),f=a("YUcS"),S=a("CzEO"),v=a("lDzL"),w=a("7pIB"),y=a("STbY"),C=a("M9IT"),k=a("Dh3D"),G=a("+0xr"),D=a("0OQn"),x=a("0EQZ"),O=a("tk/3"),I=a("2Vo4"),N=a("lJxs");class F{constructor(){this.groupId="",this.groupName="",this.status=""}}var T=a("fXoL");let P=(()=>{class t{adapt(t){return this.obj=new F,this.obj.groupId=t.group_id,this.obj.groupName=t.group_name,this.obj.status=t.status,this.obj}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=T.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),z=(()=>{class t{constructor(t){this.adapter=t}adapt(t){let e=[];return t.data.forEach(t=>{e.push(this.adapter.adapt(t))}),{keyword:t.keyword,message:t.message,groups:e,pageSize:t.count,page:t.page}}}return t.\u0275fac=function(e){return new(e||t)(T.hc(P))},t.\u0275prov=T.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var j=a("qc5V");let B=(()=>{class t{constructor(t,e){this.adapter=t,this.apiService=e,this.recordAddedSubject=new I.a([{}]),this.recordUpdatedSubject=new I.a([{}]),this.userId=0}create(t){return this.apiService.post("group/create",t).pipe(Object(N.a)(t=>this.adapter.adapt(t)))}update(t){return this.apiService.post("group/update",t).pipe(Object(N.a)(t=>this.adapter.adapt(t)))}status(t,e){return this.apiService.post(2!=e?"group/status":"group/delete",t)}getListForClass(t){let e=new O.e;for(let a in t)e=e.set(a,t[a]);return this.apiService.get("group",e).pipe(Object(N.a)(t=>this.adapter.adapt(t)))}getList(){let t=new O.e;return this.apiService.get("group",t).pipe(Object(N.a)(t=>this.adapter.adapt(t)))}getRecordAddedSub(){return this.recordAddedSubject.asObservable()}getRecordUpdatedSub(){return this.recordUpdatedSubject.asObservable()}getClassByBatch(t){return this.apiService.get(`loadClassByBatch/${t}`).pipe(Object(N.a)(t=>this.adapter.adapt(t)))}getClasses(t){return this.apiService.get(`getAttendClass/${t}`).pipe(Object(N.a)(t=>this.adapter.adapt(t)))}}return t.\u0275fac=function(e){return new(e||t)(T.hc(z),T.hc(j.a))},t.\u0275prov=T.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var X=a("Gg3P"),A=a("Olgc"),q=a("0IaG"),E=a("f0Cb"),M=a("XiUz"),R=a("kmnG"),_=a("sYmb");function H(t,e){1&t&&(T.dc(0,"mat-error"),T.cd(1," Please provide the group name "),T.cc())}function Q(t,e){1&t&&(T.dc(0,"mat-error"),T.cd(1," Please provide valid group name "),T.cc())}let U=(()=>{class t{constructor(t,e,a,c,s,i,r){this.dialogRef=t,this.formBuilder=e,this.modelService=a,this.router=c,this.loader=s,this.toaster=i,this.dialog=r}ngOnInit(){this.classForm=new i.j({className:new i.g("",[i.B.required,i.B.pattern(/^\S$|^\S[\s\S]*\S$/)])})}get classFormControl(){return this.classForm.controls}save(e){this.submitButton.disabled=!0,this.loader.open();let a=new FormData;a.append("group_name",this.classForm.value.className),this.modelService.create(a).subscribe(a=>{this.data=a,"success"==this.data.keyword?(this.loader.close(),this.modelService.recordAddedSubject.next(this.data.groups),"new"==e?(this.dialogRef.close(),this.dialog.open(t,{width:"35%",panelClass:"save-continue-popup",disableClose:!0})):(this.dialogRef.close(!0),this.router.navigate(["school/group/list"])),this.toaster.present(this.data.message,"")):(this.loader.close(),this.submitButton.disabled=!1,this.toaster.present(this.data.message,""))})}discard(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(T.Xb(q.f),T.Xb(i.f),T.Xb(B),T.Xb(c.g),T.Xb(X.a),T.Xb(A.a),T.Xb(q.b))},t.\u0275cmp=T.Rb({type:t,selectors:[["app-create"]],viewQuery:function(t,e){var a;1&t&&T.md(r.a,!0),2&t&&T.Nc(a=T.mc())&&(e.submitButton=a.first)},decls:24,vars:14,consts:[[1,"p-0"],[1,""],[1,"card-title-text"],[2,"padding","0 1.5rem","margin-bottom","0px"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-24"],["fxFlex","100","fxFlex.gt-xs","70",1,"pr-1"],[1,"pb-1"],["appearance","fill",1,"full-width"],["matInput","","name","className","formControlName","className","placeholder","Group Name","value","",1,"f24"],[4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-primary-bg","mr-12",3,"disabled","click"],["mat-dialog-close","",1,"pl-8","primary-txt-color",3,"click"]],template:function(t,e){1&t&&(T.dc(0,"mat-card",0),T.dc(1,"mat-card-title",1),T.dc(2,"div",2),T.cd(3,"Create New Group"),T.cc(),T.Yb(4,"mat-divider"),T.cc(),T.dc(5,"mat-card-content",3),T.dc(6,"form",4),T.dc(7,"div",5),T.dc(8,"div",6),T.dc(9,"div",7),T.dc(10,"mat-form-field",8),T.Yb(11,"input",9),T.ad(12,H,2,0,"mat-error",10),T.ad(13,Q,2,0,"mat-error",10),T.cc(),T.cc(),T.cc(),T.cc(),T.cc(),T.cc(),T.dc(14,"mat-card-footer"),T.dc(15,"button",11),T.lc("click",(function(t){return e.save("")})),T.cd(16),T.qc(17,"translate"),T.cc(),T.dc(18,"button",11),T.lc("click",(function(t){return e.save("new")})),T.cd(19),T.qc(20,"translate"),T.cc(),T.dc(21,"a",12),T.lc("click",(function(t){return e.discard()})),T.cd(22),T.qc(23,"translate"),T.cc(),T.cc(),T.cc()),2&t&&(T.Gb(6),T.yc("formGroup",e.classForm),T.Gb(6),T.yc("ngIf",null==e.classFormControl.className.errors?null:e.classFormControl.className.errors.required),T.Gb(1),T.yc("ngIf",null==e.classFormControl.className.errors?null:e.classFormControl.className.errors.pattern),T.Gb(2),T.yc("disabled",e.classForm.invalid),T.Gb(1),T.dd(T.rc(17,8,"class.button.saveAndClose")),T.Gb(2),T.yc("disabled",e.classForm.invalid),T.Gb(1),T.dd(T.rc(20,10,"class.button.saveAndNew")),T.Gb(3),T.dd(T.rc(23,12,"class.button.discard")))},directives:[o.a,o.f,E.a,o.c,i.D,i.u,i.k,M.c,M.a,R.b,p.b,i.c,i.t,i.i,s.o,o.d,r.a,R.a],pipes:[_.c],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.f24[_ngcontent-%COMP%]{font-size:24px;margin-left:-10px}"]}),t})();function V(t,e){1&t&&(T.dc(0,"mat-error"),T.cd(1," Please provide the group name "),T.cc())}function Y(t,e){1&t&&(T.dc(0,"mat-error"),T.cd(1," Please provide valid group name "),T.cc())}let L=(()=>{class t{constructor(t,e,a,c,s,i,r){this.classes=t,this.dialogRef=e,this.modelService=a,this.router=c,this.loader=s,this.toaster=i,this.dialog=r}ngOnInit(){this.form(this.classes.payload),console.log(this.classes.payload)}form(t){this.classForm=new i.j({className:new i.g(t.groupName||"",[i.B.required,i.B.pattern(/^\S$|^\S[\s\S]*\S$/)])})}get classFormControl(){return this.classForm.controls}update(){this.submitButton.disabled=!0,this.loader.open();let t=new FormData;t.append("group_name",this.classForm.value.className),t.append("group_id",this.classes.payload.groupId),this.modelService.update(t).subscribe(t=>{this.data=t,"success"==this.data.keyword?(this.modelService.recordUpdatedSubject.next(this.data.groups),this.loader.close(),this.dialogRef.close(),this.router.navigate(["school/group/list"]),this.toaster.present(this.data.message,"")):(this.loader.close(),this.submitButton.disabled=!1,this.toaster.present(this.data.message,""))})}discard(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(T.Xb(q.a),T.Xb(q.f),T.Xb(B),T.Xb(c.g),T.Xb(X.a),T.Xb(A.a),T.Xb(q.b))},t.\u0275cmp=T.Rb({type:t,selectors:[["app-edit"]],viewQuery:function(t,e){var a;1&t&&T.md(r.a,!0),2&t&&T.Nc(a=T.mc())&&(e.submitButton=a.first)},decls:21,vars:10,consts:[[1,"p-0"],[1,""],[1,"card-title-text"],[2,"padding","0 1.5rem","margin-bottom","0px"],[3,"formGroup"],["fxLayout","row wrap",1,"mt-24"],["fxFlex","100","fxFlex.gt-xs","70",1,"pr-1"],[1,"pb-1"],["appearance","fill",1,"full-width"],["matInput","","name","className","formControlName","className","placeholder","Group Name","value","",1,"f24"],[4,"ngIf"],["mat-raised-button","","color","primary",1,"btn-primary-bg","mr-12",3,"disabled","click"],["mat-dialog-close","",1,"pl-8","primary-txt-color",3,"click"]],template:function(t,e){1&t&&(T.dc(0,"mat-card",0),T.dc(1,"mat-card-title",1),T.dc(2,"div",2),T.cd(3,"Update Group"),T.cc(),T.Yb(4,"mat-divider"),T.cc(),T.dc(5,"mat-card-content",3),T.dc(6,"form",4),T.dc(7,"div",5),T.dc(8,"div",6),T.dc(9,"div",7),T.dc(10,"mat-form-field",8),T.Yb(11,"input",9),T.ad(12,V,2,0,"mat-error",10),T.ad(13,Y,2,0,"mat-error",10),T.cc(),T.cc(),T.cc(),T.cc(),T.cc(),T.cc(),T.dc(14,"mat-card-footer"),T.dc(15,"button",11),T.lc("click",(function(t){return e.update()})),T.cd(16),T.qc(17,"translate"),T.cc(),T.dc(18,"a",12),T.lc("click",(function(t){return e.discard()})),T.cd(19),T.qc(20,"translate"),T.cc(),T.cc(),T.cc()),2&t&&(T.Gb(6),T.yc("formGroup",e.classForm),T.Gb(6),T.yc("ngIf",null==e.classFormControl.className.errors?null:e.classFormControl.className.errors.required),T.Gb(1),T.yc("ngIf",null==e.classFormControl.className.errors?null:e.classFormControl.className.errors.pattern),T.Gb(2),T.yc("disabled",e.classForm.invalid),T.Gb(1),T.dd(T.rc(17,6,"class.button.update")),T.Gb(3),T.dd(T.rc(20,8,"class.button.discard")))},directives:[o.a,o.f,E.a,o.c,i.D,i.u,i.k,M.c,M.a,R.b,p.b,i.c,i.t,i.i,s.o,o.d,r.a,R.a],pipes:[_.c],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-top:-10px}.f24[_ngcontent-%COMP%]{font-size:24px;margin-left:-10px}"]}),t})();var $=a("xgIS"),K=a("Kj3r"),J=a("/uUt"),W=a("b0DT"),Z=a("PSD3"),tt=a.n(Z),et=a("xe9D"),at=a("VxG0"),ct=a("dNgK");const st=["filterInput"];function it(t,e){if(1&t){const t=T.ec();T.dc(0,"button",24),T.lc("click",(function(e){return T.Sc(t),T.pc().openDialog()})),T.cd(1),T.qc(2,"translate"),T.cc()}2&t&&(T.Gb(1),T.dd(T.rc(2,1,"class.button.create")))}function rt(t,e){if(1&t){const t=T.ec();T.dc(0,"button",25),T.lc("click",(function(e){T.Sc(t);const a=T.pc();return a.value="",a.applyFilter("")})),T.dc(1,"mat-icon"),T.cd(2,"close"),T.cc(),T.cc()}}function ot(t,e){if(1&t){const t=T.ec();T.dc(0,"th",26),T.dc(1,"mat-checkbox",27),T.lc("change",(function(e){T.Sc(t);const a=T.pc();return e?a.masterToggle():null})),T.cc(),T.cc()}if(2&t){const t=T.pc();T.Gb(1),T.yc("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function nt(t,e){if(1&t){const t=T.ec();T.dc(0,"td",28),T.dc(1,"mat-checkbox",29),T.lc("click",(function(e){return T.Sc(t),e.stopPropagation()}))("change",(function(a){T.Sc(t);const c=e.$implicit,s=T.pc();return a?s.selection.toggle(c):null})),T.cc(),T.cc()}if(2&t){const t=e.$implicit,a=T.pc();T.Gb(1),T.yc("checked",a.selection.isSelected(t))}}function lt(t,e){1&t&&(T.dc(0,"th",30),T.dc(1,"b"),T.cd(2,"Homework Question Group Name"),T.cc(),T.cc())}function dt(t,e){if(1&t&&(T.dc(0,"td",31),T.cd(1),T.cc()),2&t){const t=e.$implicit;T.Gb(1),T.ed(" ",t.groupName," ")}}function ut(t,e){if(1&t){const t=T.ec();T.dc(0,"button",36),T.lc("click",(function(e){return T.Sc(t),T.pc(2).edit()})),T.dc(1,"mat-icon",37),T.cd(2,"edit"),T.cc(),T.dc(3,"span"),T.cd(4),T.qc(5,"translate"),T.cc(),T.cc()}2&t&&(T.Gb(4),T.dd(T.rc(5,1,"class.button.edit")))}function pt(t,e){if(1&t){const t=T.ec();T.dc(0,"button",36),T.lc("click",(function(e){return T.Sc(t),T.pc(2).setStatus(1)})),T.dc(1,"mat-icon",38),T.cd(2,"check"),T.cc(),T.dc(3,"span"),T.cd(4),T.qc(5,"translate"),T.cc(),T.cc()}2&t&&(T.Gb(4),T.dd(T.rc(5,1,"class.button.active")))}function ht(t,e){if(1&t){const t=T.ec();T.dc(0,"button",36),T.lc("click",(function(e){return T.Sc(t),T.pc(2).setStatus(0)})),T.dc(1,"mat-icon",39),T.cd(2,"block"),T.cc(),T.dc(3,"span"),T.cd(4),T.qc(5,"translate"),T.cc(),T.cc()}2&t&&(T.Gb(4),T.dd(T.rc(5,1,"class.button.inactive")))}function mt(t,e){if(1&t){const t=T.ec();T.dc(0,"button",36),T.lc("click",(function(e){return T.Sc(t),T.pc(2).setStatus(2)})),T.dc(1,"mat-icon",40),T.cd(2,"delete"),T.cc(),T.dc(3,"span"),T.cd(4),T.qc(5,"translate"),T.cc(),T.cc()}2&t&&(T.Gb(4),T.dd(T.rc(5,1,"class.button.delete")))}const gt=function(){return["group"]},bt=function(){return["group_update"]},ft=function(){return["group_status"]},St=function(){return["group_delete"]};function vt(t,e){if(1&t&&(T.dc(0,"th",32),T.cd(1),T.qc(2,"translate"),T.dc(3,"mat-icon",33),T.cd(4,"more_vert"),T.cc(),T.dc(5,"mat-menu",null,34),T.ad(7,ut,6,3,"button",35),T.ad(8,pt,6,3,"button",35),T.ad(9,ht,6,3,"button",35),T.ad(10,mt,6,3,"button",35),T.cc(),T.cc()),2&t){const t=T.Oc(6),e=T.pc();T.Gb(1),T.ed(" ",T.rc(2,6,"class.columnNames.status")," "),T.Gb(2),T.yc("matMenuTriggerFor",t),T.Gb(4),T.yc("ngIf",e.permission.hasPermission(T.Ec(8,gt),T.Ec(9,bt))),T.Gb(1),T.yc("ngIf",e.permission.hasPermission(T.Ec(10,gt),T.Ec(11,ft))),T.Gb(1),T.yc("ngIf",e.permission.hasPermission(T.Ec(12,gt),T.Ec(13,ft))),T.Gb(1),T.yc("ngIf",e.permission.hasPermission(T.Ec(14,gt),T.Ec(15,St)))}}function wt(t,e){1&t&&(T.dc(0,"label",43),T.cd(1),T.qc(2,"translate"),T.cc()),2&t&&(T.Gb(1),T.dd(T.rc(2,1,"class.button.active")))}function yt(t,e){1&t&&(T.dc(0,"label",44),T.cd(1),T.qc(2,"translate"),T.cc()),2&t&&(T.Gb(1),T.dd(T.rc(2,1,"class.button.inactive")))}function Ct(t,e){if(1&t&&(T.dc(0,"td",31),T.ad(1,wt,3,3,"label",41),T.ad(2,yt,3,3,"label",42),T.cc()),2&t){const t=e.$implicit;T.Gb(1),T.yc("ngIf",1==t.status),T.Gb(1),T.yc("ngIf",0==t.status)}}function kt(t,e){1&t&&T.Yb(0,"tr",45)}function Gt(t,e){1&t&&T.Yb(0,"tr",46)}function Dt(t,e){1&t&&(T.bc(0),T.dc(1,"p",47),T.dc(2,"b"),T.cd(3,"No Data Found..."),T.cc(),T.cc(),T.ac())}const xt=function(){return["group_create"]},Ot=[{path:"",children:[{path:"list",component:(()=>{class t{constructor(t,e,a,c,s,i,r){this.dialog=t,this.router=e,this.modelService=a,this.toaster=c,this.loader=s,this.snack=i,this.permission=r,this.displayedColumns=["select","groupName","status"],this.pageSizeOptions=[],this.value="",this.dataSource=new G.o,this.selection=new x.c(!0,[]),this.currentPageDataSize=0,this.paginationDTO=new W.a,this.pageSizeOptions=Object(et.b)().app.table.filtering.pageSizeOptions}openDialog(){this.dialog.open(U,{width:"35%"}).afterClosed().subscribe(t=>{})}ngOnInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}ngOnDestroy(){this.recordAddedSub.unsubscribe(),this.recordUpdatedSub.unsubscribe()}ngAfterViewInit(){this.addSub(),this.updateSub(),this.filterKeyUp(),this.getData()}filterKeyUp(){Object($.a)(this.filter.nativeElement,"keyup").pipe(Object(K.a)(150),Object(J.a)()).subscribe(()=>{if(!this.dataSource)return;let t=this.filter.nativeElement.value;t=t.trim(),t=t.toLowerCase(),this.paginationDTO.searchWith=t,this.getData()}),this.getData()}sortData(t){this.paginationDTO.sortByKey=t.active,this.paginationDTO.sortByType=t.direction.toUpperCase(),this.getData()}addSub(){this.recordAddedSub=this.modelService.getRecordAddedSub().subscribe(t=>{var e,a;(null!=(a=null===(e=t[0])||void 0===e?void 0:e.groupId)?a:0)>0&&this.refreshTable("add")})}updateSub(){this.recordUpdatedSub=this.modelService.getRecordUpdatedSub().subscribe(t=>{var e,a;(null!=(a=null===(e=t[0])||void 0===e?void 0:e.groupId)?a:0)>0&&this.refreshTable("edit")})}applyFilter(t){t=(t=t.trim()).toLowerCase(),this.paginationDTO.searchWith=t,this.getData()}onPaginateChange(t){console.log(t,"onPaginateChange"),this.paginationDTO.offset=t.pageIndex,this.paginationDTO.limit=t.pageSize,this.getData()}getData(){this.modelService.getListForClass(this.paginationDTO).subscribe(t=>{this.paginationDTO.totalSize=t.pageSize,this.currentPageDataSize=t.groups.length,this.dataSource=new G.o(t.groups)})}edit(){1==this.getCheckedValue().length?tt.a.fire({title:"",text:"Are you sure? You want to update !",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, update it!"}).then(t=>{t.value&&(this.class=this.getCheckedValue()[0],this.dialog.open(L,{width:"35%",disableClose:!0,data:{payload:this.class}}).afterClosed().subscribe(t=>{t&&(this.getData(),this.dataSource.sort=this.sort)}))}):tt.a.fire({icon:"error",title:"Update Homework Question Group",text:"Please Select One Homework Question Group!"})}setStatus(t){let e="";if(1==t?e="active":0==t?e="Inactive":2==t&&(e="delete"),this.getCheckedValue().length>=1){let a=1==t?0:1;2==t?this.statusAlert(e,t):this.isMultiStatus(String(a))?tt.a.fire({icon:"error",title:"Homework Question Group Status",text:"Please select the "+(1==t?"Inactive":"active")+" status of the Homework Question Group!"}):this.statusAlert(e,t)}else 2!=t?tt.a.fire({icon:"error",title:"Change Homework Question Group Status",text:"Please Select Altleast One Homework Question Group!"}):2==t&&tt.a.fire({icon:"error",title:"Delete Homework Question Group ",text:"Please Select Altleast One Homework Question Group!"})}statusAlert(t,e){tt.a.fire({title:"Confirm?",text:"Are you sure? You want to "+t+" it !",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, "+t+" it!"}).then(t=>{t.value&&this.saveStatus(e)})}saveStatus(t){let e=[];this.getCheckedValue().forEach(t=>{e.push(t.groupId)});let a=new FormData;a.append("id",JSON.stringify(e)),2!=t&&a.append("status",String(t)),this.loader.open(),this.modelService.status(a,t).subscribe(e=>{this.data=e,"success"==this.data.keyword?(this.refreshTable(2==t?"delete":"other"),this.loader.close(),this.toaster.present(this.data.message,"")):(this.loader.close(),this.toaster.present(this.data.message,""))})}refreshTable(t){this.filter.nativeElement.value="",this.value="",this.paginationDTO.offset=this.paginator.pageIndex,this.paginationDTO.limit=this.paginator.pageSize,this.paginationDTO.totalSize=this.paginator.length,"add"==t&&(this.paginationDTO.offset=0),"delete"==t&&this.getCheckedValue().length==this.currentPageDataSize&&(this.paginationDTO.offset=this.paginator.pageIndex>0?this.paginator.pageIndex-1:0),this.getData(),this.paginator.pageIndex=this.paginationDTO.offset,this.paginator.pageSize=this.paginationDTO.limit,this.paginator.length=this.paginationDTO.totalSize,this.selection=new x.c(!0,[])}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}getCheckedValue(){let t=[];return this.dataSource.connect().value.forEach(e=>{this.selection.isSelected(e)&&t.push(e)}),t}isMultiStatus(t){return this.getCheckedValue().filter(e=>{if(e.status!=t)return e}).length>0}}return t.\u0275fac=function(e){return new(e||t)(T.Xb(q.b),T.Xb(c.g),T.Xb(B),T.Xb(A.a),T.Xb(X.a),T.Xb(ct.a),T.Xb(at.a))},t.\u0275cmp=T.Rb({type:t,selectors:[["app-list"]],viewQuery:function(t,e){var a;1&t&&(T.Yc(C.a,!0),T.Yc(k.a,!0),T.md(st,!0)),2&t&&(T.Nc(a=T.mc())&&(e.paginator=a.first),T.Nc(a=T.mc())&&(e.sort=a.first),T.Nc(a=T.mc())&&(e.filter=a.first))},decls:28,vars:15,consts:[["fxLayout","row wrap",1,"pagewrap"],["fxFlex","100","fxFlex.gt-xs","50",1,"pr-1"],[1,"example-button-row","mt-10"],["mat-flat-button","","class","btn-primary-bg",3,"click",4,"ngIf"],[1,"margin-333",2,"width","100%"],["matInput","","id","filterInput","value","",3,"placeholder","ngModel","ngModelChange"],["filterInput",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"material-icons","searc-icon"],[1,"table_container","pb-1"],[1,""],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource","matSortChange"],["matColumnDef","select",1,"checkbox-field"],["style","width: 5%;\n text-align: center;","mat-header-cell","",4,"matHeaderCellDef"],["style","width: 5%;\n text-align: center;","mat-cell","",4,"matCellDef"],["matColumnDef","groupName"],["mat-header-cell","","mat-sort-header","group_name",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[4,"ngIf"],[3,"length","pageSize","pageSizeOptions","page"],["mat-flat-button","",1,"btn-primary-bg",3,"click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["mat-header-cell","",2,"width","5%","text-align","center"],[3,"checked","indeterminate","change"],["mat-cell","",2,"width","5%","text-align","center"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header","group_name"],["mat-cell",""],["mat-header-cell",""],[1,"action",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[2,"color","grey"],[2,"color","green"],[2,"color","#f19421"],[2,"color","red"],["class","mat-chip mat-primary mat-standard-chip ng-tns-c12-751 mat-chip-selected ng-star-inserted",4,"ngIf"],["class","mat-chip mat-danger mat-standard-chip ng-tns-c12-751 mat-chip-selected ng-star-inserted ",4,"ngIf"],[1,"mat-chip","mat-primary","mat-standard-chip","ng-tns-c12-751","mat-chip-selected","ng-star-inserted"],[1,"mat-chip","mat-danger","mat-standard-chip","ng-tns-c12-751","mat-chip-selected","ng-star-inserted"],["mat-header-row",""],["mat-row",""],[1,"text-center"]],template:function(t,e){1&t&&(T.dc(0,"div",0),T.dc(1,"div",1),T.dc(2,"div",2),T.ad(3,it,3,3,"button",3),T.cc(),T.cc(),T.dc(4,"div",1),T.dc(5,"mat-form-field",4),T.dc(6,"input",5,6),T.lc("ngModelChange",(function(t){return e.value=t})),T.qc(8,"translate"),T.cc(),T.ad(9,rt,3,0,"button",7),T.cc(),T.dc(10,"i",8),T.cd(11," search "),T.cc(),T.cc(),T.cc(),T.dc(12,"div",9),T.dc(13,"div",10),T.dc(14,"table",11),T.lc("matSortChange",(function(t){return e.sortData(t)})),T.bc(15,12),T.ad(16,ot,2,2,"th",13),T.ad(17,nt,2,1,"td",14),T.ac(),T.bc(18,15),T.ad(19,lt,3,0,"th",16),T.ad(20,dt,2,1,"td",17),T.ac(),T.bc(21,18),T.ad(22,vt,11,16,"th",19),T.ad(23,Ct,3,2,"td",17),T.ac(),T.ad(24,kt,1,0,"tr",20),T.ad(25,Gt,1,0,"tr",21),T.cc(),T.ad(26,Dt,4,0,"ng-container",22),T.dc(27,"mat-paginator",23),T.lc("page",(function(t){return e.onPaginateChange(t)})),T.cc(),T.cc(),T.cc()),2&t&&(T.Gb(3),T.yc("ngIf",e.permission.hasPermission(T.Ec(13,gt),T.Ec(14,xt))),T.Gb(3),T.zc("placeholder",T.rc(8,11,"class.placeHolder.search")),T.yc("ngModel",e.value),T.Gb(3),T.yc("ngIf",e.value),T.Gb(5),T.yc("dataSource",e.dataSource),T.Gb(10),T.yc("matHeaderRowDef",e.displayedColumns),T.Gb(1),T.yc("matRowDefColumns",e.displayedColumns),T.Gb(1),T.yc("ngIf",0===e.dataSource.filteredData.length||0===e.dataSource.data.length),T.Gb(1),T.yc("length",e.paginationDTO.totalSize)("pageSize",e.paginationDTO.limit)("pageSizeOptions",e.pageSizeOptions))},directives:[M.c,M.a,s.o,R.b,p.b,i.c,i.t,i.w,G.n,k.a,G.c,G.i,G.b,G.k,G.m,C.a,r.a,R.f,u.a,G.h,n.a,G.a,k.b,y.d,y.e,y.b,G.j,G.l],pipes:[_.c],styles:[""]}),t})(),data:{title:"List of Homework Question Group",breadcrumb:"List"}}]}];a.d(e,"AppGroupModule",(function(){return It}));let It=(()=>{class t{}return t.\u0275mod=T.Vb({type:t}),t.\u0275inj=T.Ub({factory:function(e){return new(e||t)},imports:[[s.c,i.m,i.z,p.c,h.c,o.e,d.c,l.n,m.b,g.c,y.c,n.b,r.b,u.b,b.a,f.a,C.b,k.c,G.p,S.b,v.a,w.a,c.k.forChild(Ot),D.a]]}),t})()},"0OQn":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var c=a("ofXK"),s=a("sYmb"),i=a("tk/3"),r=a("fXoL");let o=(()=>{class t{}return t.\u0275mod=r.Vb({type:t}),t.\u0275inj=r.Ub({factory:function(e){return new(e||t)},imports:[[i.c,c.c,s.b.forChild({})],c.c,s.b]}),t})()}}]);
/var/www/krbed.in/../../www/yapwebtv.com/../school_portal_admin/106-es2015.6632d9d4c367a2e132e5.js