PageSourceSearch

https://ims.drmgrdu.ac.in/client/chunk-THCWENUO.js

js drmgrdu.ac.in collected 2026-09-24 18:46:19 UTC 49,450 bytes, 1 lines download raw bytes

1import{a as ie}from"./chunk-2CBN43NK.js";import{a as F}from"./chunk-QVUGUUXX.js";import{a as Me}from"./chunk-3CO4C5KT.js";import{h as Ke}from"./chunk-4XHWYO6A.js";import"./chunk-JAVXKLPM.js";import{a as E}from"./chunk-A7DVSW7U.js";import"./chunk-3KJJR4PR.js";import"./chunk-ABAWT23C.js";import"./chunk-IWOLENFE.js";import"./chunk-UWQZ6LHD.js";import{a as He}from"./chunk-7FBSWJHX.js";import{b as qe}from"./chunk-4DJXF7UW.js";import"./chunk-NDDBMTF2.js";import"./chunk-PP6OKG4J.js";import"./chunk-OOXBIU4P.js";import{a as Fe,b as ke,c as Le,d as Ne,e as ve,f as K,g as k,l as Re,m as Oe}from"./chunk-RAZ6272N.js";import"./chunk-D6CDOXMU.js";import"./chunk-Q5YFQ62E.js";import"./chunk-Y7PLHQ6M.js";import"./chunk-QNJ3LBLE.js";import"./chunk-3R646RNR.js";import{d as Be,e as We}from"./chunk-PLPK6HII.js";import{F as Pe,G as Ue,H as Ve,c as pe,g as ee,h as ue,j as ge,l as te,m as fe,o as Te,z as he}from"./chunk-UFCZWRLF.js";import{a as H}from"./chunk-7Q5L7ALI.js";import"./chunk-CARY4E7O.js";import{a as w}from"./chunk-2PT6A6VZ.js";import{$ as re,Bc as V,Cc as A,Fa as Q,Hb as J,Ib as r,Ja as l,Jb as b,Ka as d,Kb as x,Lb as de,Nc as O,Rc as je,Sb as j,Tb as D,Ub as M,Uc as U,Va as g,Vb as Ae,Xb as Z,Xc as $,Yb as Ee,_ as P,_a as c,ba as T,fa as C,ga as ae,gd as B,hd as ce,id as W,jd as q,kb as o,kd as De,lb as n,mb as _,md as we,na as v,nb as le,oa as S,ob as me,qb as y,ub as h,wb as f,zb as X}from"./chunk-32W73H3G.js";import"./chunk-WWX6BADO.js";var ri={headers:new U({"Content-Type":"application/json"})},Se=(()=>{class i{http;assignment;constructor(e){this.http=e}getAssignmentById(e){return this.http.get(w.URI+"/api/assignment/sent?filter=createdBy eq "+e.userId)}saveDetails(e){return this.http.post(w.URI+"/api/assignment/send/",e)}fileUpload(e){return this.http.post(w.URI+"/api/announcement/fileValidation",e)}subject(e){return this.http.get(w.URI+"/api/subject/staffHandleSub/?in=stafflist.staffid eq"+e.userId+"&filter =subjectStatus eq ACTIVE")}getAssignment(e){return this.http.get(w.URI+"/api/assignment/"+e)}putAssignment(e){return this.http.put(w.URI+"/api/assignment/update",e)}deleteFile(e,t){return this.http.delete(w.URI+"/api/s3/deleteInJackprodigy?versionId="+e+"&fileKey="+t)}fileChange(e,t,s){return this.http.put(w.URI+"/api/s3/updateInJackprodigy/"+t+"/"+s,e)}static \u0275fac=function(t){return new(t||i)(T($))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var li={headers:new U({"Content-Type":"application/json"})},L=(()=>{class i{assignmentProvider;constructor(e){this.assignmentProvider=e}getAssignmentById(e){return new Promise((t,s)=>{this.assignmentProvider.getAssignmentById(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}fileUpload(e){let t=new FormData;return t.append("file",e,e.name),new Promise((s,a)=>{this.assignmentProvider.fileUpload(t).subscribe(m=>{s(m)},m=>console.log("Error :: "+m))})}fileChange(e,t,s){let a=new FormData;return a.append("file",e,e.name),new Promise((m,u)=>{this.assignmentProvider.fileChange(a,t,s).subscribe(N=>{m(N)},N=>console.log("Error :: "+N))})}create(e){return new Promise((t,s)=>{this.assignmentProvider.saveDetails(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}selectSubject(e){return new Promise((t,s)=>{this.assignmentProvider.subject(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}getAssignment(e){return new Promise((t,s)=>{this.assignmentProvider.getAssignment(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}putAssignment(e){return new Promise((t,s)=>{this.assignmentProvider.putAssignment(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}deleteFile(e,t){return new Promise((s,a)=>{this.assignmentProvider.deleteFile(e,t).subscribe(m=>{s(m)},m=>console.log("Error :: "+m))})}static \u0275fac=function(t){return new(t||i)(T(Se))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function ct(i,p){if(i&1){let e=y();o(0,"tr")(1,"td",14)(2,"input",15),h("change",function(){let s=v(e).$implicit,a=f();return S(a.selectedSubject(s))}),n()(),o(3,"td",8),r(4),n()()}if(i&2){let e=p.$implicit;l(4),de("",e.subjectName,"-(",e.batchName,")")}}var _e=(()=>{class i{activeModal;assignmentService;router;loadingService;userService;value;data;selectSubject;currentUser;user;constructor(e,t,s,a,m){this.activeModal=e,this.assignmentService=t,this.router=s,this.loadingService=a,this.userService=m}ngOnInit(){this.getCurrentUser()}getCurrentUser(){this.userService.getCurrentUser().then(e=>{this.subjectPop(e)})}subjectPop(e){this.assignmentService.selectSubject(e).then(t=>{this.selectSubject=t})}selectedSubject(e){this.value=e}add(){this.activeModal.close(this.value)}static \u0275fac=function(t){return new(t||i)(d(K),d(L),d(W),d(E),d(F))};static \u0275cmp=C({type:i,selectors:[["app-subject-Popup"]],decls:21,vars:1,consts:[[1,"modal-header","bd-example-modal-lg"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"card","bg-light","text-dark"],[1,"table","table-striped"],[2,"text-align","center"],[2,"text-align","left"],[1,"table"],[4,"ngFor","ngForOf"],[1,"row"],[1,"col-sm-11","text-end"],["type","submit",1,"btn","btn-primary",3,"click"],[2,"text-align","right"],["type","radio","value","subject","name","selectSubject",1,"form-check-input",3,"change"]],template:function(t,s){t&1&&(o(0,"div",0)(1,"h4",1),r(2,"Subject"),n(),o(3,"button",2),h("click",function(){return s.activeModal.dismiss("Cross click")}),o(4,"span",3),r(5,"\xD7"),n()()(),o(6,"div",4)(7,"div",5)(8,"table",6)(9,"thead",7)(10,"tr"),_(11,"th",7),o(12,"th",8),r(13,"Subject"),n()()(),o(14,"tbody",9),g(15,ct,5,2,"tr",10),n()()(),_(16,"br"),o(17,"div",11)(18,"div",12)(19,"button",13),h("click",function(){return s.add()}),r(20,"Add"),n()()()()),t&2&&(l(15),c("ngForOf",s.selectSubject))},dependencies:[V],styles:[".thead[_ngcontent-%COMP%]{display:table-header-group;vertical-align:middle;border-color:inherit}"]})}return i})();function pt(i,p){i&1&&(o(0,"small",10),r(1,"Title required."),n())}function ut(i,p){i&1&&(o(0,"small",10),r(1,"Description required."),n())}function gt(i,p){if(i&1){let e=y();
1le(0),o(1,"div",11)(2,"span"),r(3),n(),o(4,"a",24),h("click",function(){v(e);let s=f();return S(s.removeFile())}),r(5,"\xA0Remove"),n()(),me()}if(i&2){let e=f();l(3),x(" ",e.assignmentData.file.fileKey,"")}}function ft(i,p){if(i&1){let e=y();o(0,"div",11)(1,"div",25)(2,"input",26),h("change",function(s){v(e);let a=f();return S(a.handleFileInput(s.target.files))}),n(),o(3,"label",27),r(4),n()()()}if(i&2){let e=f();l(4),b(e.fileLable)}}function ht(i,p){if(i&1){let e=y();o(0,"div",28)(1,"div",29,2)(3,"button",5),h("click",function(){v(e);let s=f();return S(s.closeAlert())}),o(4,"span",6),r(5,"\xD7"),n()(),r(6),n()()}if(i&2){let e=f();l(6),x(" ",e.assignmentData.subjectName," ")}}var Qe=(()=>{class i{activeModal;modalService;assignmentService;datepipe;router;toastr;fileValidate;loadingService;value;editedDetails;subName;assignmentData;fileChanged=!1;fileLable="Choose file";fileAttached=!0;fileToUpload=null;showBrowse=!0;file;date={day:0,month:0,year:0};constructor(e,t,s,a,m,u,N,oe){this.activeModal=e,this.modalService=t,this.assignmentService=s,this.datepipe=a,this.router=m,this.toastr=u,this.fileValidate=N,this.loadingService=oe}ngOnInit(){this.subName={},this.assignmentData={},this.assignmentData.file={},this.editedDetails={},this.editedDetails.file={},this.getAssignment()}getAssignment(){this.assignmentService.getAssignment(this.value.id).then(e=>{this.assignmentData=e})}subjectPop(){this.modalService.open(_e,{size:"lg"}).result.then(t=>{t!=null&&(this.assignmentData.subjects=[t.id],this.assignmentData.subjectName=t.subjectName)})}closeAlert(){this.assignmentData.subjectName=void 0}handleFileInput(e){if(this.fileAttached=!0,this.fileToUpload=e.item(0),this.fileValidate.validate(this.fileToUpload)==!0)this.fileLable=this.fileToUpload.name;else return this.fileToUpload=null}uploadFile(){this.loadingService.showLoading();let e=new FormData;e.append("file",this.fileToUpload,this.fileToUpload.name),this.assignmentService.fileUpload(e).then(t=>(this.loadingService.hideLoading(),t))}update(){this.loadingService.showLoading(),this.assignmentService.putAssignment(this.assignmentData).then(e=>{this.loadingService.hideLoading(),this.toastr.success("Updated Successfully"),this.activeModal.close("success")})}updateAssignment(){this.fileToUpload!=null&&this.assignmentData.file==null?(this.loadingService.showLoading(),this.assignmentService.fileUpload(this.fileToUpload).then(e=>{e!=null&&(this.assignmentData.file={},this.assignmentData.file.versionId=e.versionId,this.assignmentData.file.fileKey=e.fileKey),this.update(),this.activeModal.close()})):this.fileToUpload==null&&this.assignmentData.file!=null?this.update():this.fileToUpload!=null&&this.assignmentData.file!=null?this.assignmentService.fileChange(this.fileToUpload,this.assignmentData.file.versionId,this.assignmentData.file.fileKey).then(e=>{e!=null&&(this.assignmentData.file={},this.assignmentData.file.versionId=e.versionId,this.assignmentData.file.fileKey=e.fileKey),this.update()}):this.fileToUpload==null&&this.assignmentData.file==null&&this.update()}removeFile(){this.showBrowse=!1,this.fileAttached=!1,this.fileLable="Choose file",this.fileChanged=!0}static \u0275fac=function(t){return new(t||i)(d(K),d(k),d(L),d(O),d(W),d(H),d(ie),d(E))};static \u0275cmp=C({type:i,selectors:[["app-editAssignment"]],inputs:{value:"value"},decls:48,vars:7,consts:[["title","ngModel"],["message","ngModel"],["alert",""],[1,"modal-header","bd-example-modal-lg"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"container","align-right"],[1,"form-group","row"],[1,"col-sm-4","text-end"],[1,"text-danger"],[1,"col-sm-6"],["type","text","placeholder","title","required","","name","title","ngModel","",1,"form-control",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["required","","name","message","ngModel","",1,"form-control",3,"ngModelChange","ngModel"],[4,"ngIf"],["class","col-sm-6",4,"ngIf"],[1,"form-group"],["data-toggle","modal","href","",1,"col-sm-6",3,"click"],[1,"container"],[1,"row"],["class","col-md-7 offset-md-4",4,"ngIf"],[1,"col-md-7"],["type","submit",1,"btn","btn-success","float-right",2,"margin-bottom","30px",3,"click"],[2,"color","red",3,"click"],[1,"custom-file"],["type","file","id","file",1,"custom-file-input",3,"change"],["for","file",1,"custom-file-label"],[1,"col-md-7","offset-md-4"],["role","status",1,"alert","alert-success","alert-dismissible"]],template:function(t,s){if(t&1){let a=y();o(0,"div",3)(1,"h4",4),r(2,"Update"),n(),o(3,"button",5),h("click",function(){return v(a),S(s.activeModal.dismiss("Cross click"))}),o(4,"span",6),r(5,"\xD7"),n()()(),_(6,"br"),o(7,"div",7)(8,"form")(9,"div",8)(10,"label",9),r(11,"Title"),o(12,"span",10),r(13,"*"),n(),r(14,":"),n(),o(15,"div",11)(16,"input",12,0),M("ngModelChange",function(u){return v(a),D(s.assignmentData.title,u)||(s.assignmentData.title=u),S(u)}),n(),g(18,pt,2,0,"small",13),n()(),o(19,"div",8)(20,"label",9),r(21,"Description "),o(22,"span",10),r(23,"*"),n(),r(24,":"),n(),o(25,"div",11)(26,"textarea",14,1),M("ngModelChange",function(u){return v(a),D(s.assignmentData.message,u)||(s.assignmentData.message=u),S(u)}),n(),g(28,ut,2,0,"small",13),n()(),o(29,"div",8)(30,"label",9),r(31,"Attach File :"),n(),r(32," \xA0 "),g(33,gt,6,1,"ng-container",15)(34,ft,5,1,"div",16),n(),o(35,"div",17)(36,"label",9),r(37,"Select Subject :"),n(),o(38,"a",18),h("click",function(){return v(a),S(s.subjectPop())}),r(39,"click here"),n(),_(40,"br"),n(),o(41,"div",19)(42,"div",20),g(43,ht,7,1,"div",21),n()(),o(44,"div",8)(45,"div",22)(46,"button",23),h("click",function(){return v(a),S(s.updateAssignment())}),r(47,"Submit"),n()()()()()}if(t&2){let a=J(17),m=J(27);l(16),j("ngModel",s.assignmentData.title),l(2),c("ngIf",!a.valid&&a.touched),l(8),j("ngModel",s.assignmentData.message),l(2),c("ngIf",!m.valid&&m.touched),l(5),c("ngIf",s.assignmentData.file!=null&&s.showBrowse),l(),c("ngIf",s.assignmentData.file!=null&&!s.showBrowse||s.assignmentData.file==null),l(9),c("ngIf",s.assignmentData.subjectName!=null&&s.assignmentData.subjectName.length>0)}},dependencies:[fe,pe,ee,ue,he,te,ge,A]})}return i})();var vt=i=>["/assignment/viewSubmission",i];function St(i,p){if(i&1&&(o(0,"td")(1,"a",14),r(2),n()()),i&2){let e=f().$implicit;l(),X("href",e.file.url,Q),l(),b(e.file.fileKey)}}function bt(i,p){i&1&&(o(0,"td"),r(1,"No Attachment Found"),n())}function _t(i,p){if(i&1&&(o(0,"td",1),r(1),n()),i&2){let e=f().$implicit;l(),b(e.modifiedOn)}}function Ct(i,p){i&1&&(o(0,"td",1),r(1,"---"),n())}function xt(i,p){if(i&1){let e=y();o(0,"tr")(1,"th"),r(2),n(),o(3,"td")(4,"a",9),h("click",function(){let s=v(e).$implicit,a=f(2);return S(a.viewSubmission(s))}),r(5),n()(),o(6,"td"),r(7),n(),o(8,"td"),r(9),n(),g(10,St,3,2,"td",10)(11,bt,2,0,"td",10)(12,_t,2,1,"td",11)(13,Ct,2,0,"td",11),o(14,"td")(15,"div",12),h("click",function(){let s=v(e).$implicit,a=f(2);return S(a.editAssignment(s))}),_(16,"i",13),n()()()}if(i&2){let e=p.$implicit,t=p.index;l(2),b(t+1),l(2),c("routerLink",Ee(9,vt,e.id)),l(),x(" ",e.title," "),l(2),b(e.subjectName),l(2),b(e.createdOn),l(),c("ngIf",e.file.fileKey!=null),l(),c("ngIf",e.file.fileKey==null),l(),c("ngIf",e.modifiedOn!=null),l(),c("ngIf",e.modifiedOn==null)}}function wt(i,p){if(i&1&&(o(0,"table",6)(1,"thead")(2,"tr")(3,"th",7),r(4,"#"),n(),o(5,"th",7),r(6,"Assignment"),n(),o(7,"th",7),r(8,"Subject"),n(),o(9,"th",7),r(10,"Date"),n(),o(11,"th",7),r(12,"Attachment"),n(),o(13,"th",7),r(14,"Modified On"),n(),o(15,"th",7),r(16,"Edit"),n()()(),o(17,"tbody"),g(18,xt,17,11,"tr",8),n()()),i&2){let e=f();l(18),c("ngForOf",e.assignment)}}
1function yt(i,p){i&1&&(o(0,"div",15)(1,"div",16)(2,"span",17),r(3," Sorry !"),n(),r(4," No data found. "),n()())}var Xe=(()=>{class i{userService;config;modalService;assignmentService;assignmentProvider;loadingService;assignmentId;assignment;loading;currentUser;constructor(e,t,s,a,m,u){this.userService=e,this.config=t,this.modalService=s,this.assignmentService=a,this.assignmentProvider=m,this.loadingService=u,t.backdrop="static",t.keyboard=!1}ngOnInit(){this.assignment=[],this.getCurrentUser()}getCurrentUser(){this.userService.getCurrentUser().then(e=>{this.currentUser=e,this.getAssignment(this.currentUser)})}getAssignment(e){this.loadingService.showLoading(),this.assignmentService.getAssignmentById(e).then(t=>{this.assignment=t,this.loadingService.hideLoading()})}editAssignment(e){let t=this.modalService.open(Qe,{size:"lg"});t.componentInstance.value=e,t.result.then(s=>{s==="success"&&this.getAssignment(this.currentUser)},s=>{})}viewSubmission(e){this.assignmentId=e.id}static \u0275fac=function(t){return new(t||i)(d(F),d(ve),d(k),d(L),d(Se),d(E))};static \u0275cmp=C({type:i,selectors:[["app-assignment"]],decls:9,vars:2,consts:[[1,"container-fluid","flex-grow"],[2,"text-align","center"],[1,"row"],[1,"card-body"],["class","table table-striped",4,"ngIf"],["class","col-sm-6 offset-sm-3",4,"ngIf"],[1,"table","table-striped"],["scope","col"],[4,"ngFor","ngForOf"],["data-toggle","modal",1,"la","la-trash",3,"click","routerLink"],[4,"ngIf"],["style","text-align:center;",4,"ngIf"],[1,"input-group-prepend",3,"click"],[1,"fa","fa-pencil",2,"color","blue","margin-top","2px"],[3,"href"],[1,"col-sm-6","offset-sm-3"],[1,"alert","alert-warning"],[1,"badge","badge-warning"]],template:function(t,s){t&1&&(o(0,"div",0),_(1,"br"),o(2,"h3",1),r(3,"Sent Assignment"),n(),o(4,"div",2)(5,"div",3),g(6,wt,19,1,"table",4),o(7,"div",2),g(8,yt,5,0,"div",5),n()()()()),t&2&&(l(6),c("ngIf",s.assignment.length>0),l(2),c("ngIf",s.assignment.length==0))},dependencies:[q,V,A],styles:["i[_ngcontent-%COMP%]{cursor:pointer}"]})}return i})();function It(i,p){i&1&&(o(0,"small",17),r(1,"Title required."),n())}function At(i,p){i&1&&(o(0,"small",17),r(1,"Description required."),n())}function Et(i,p){i&1&&(o(0,"small",17),r(1,"File required."),n())}function jt(i,p){i&1&&(o(0,"small",17),r(1,"Deadline should not be less than current date"),n())}function Dt(i,p){if(i&1){let e=y();o(0,"div",42)(1,"div",43,6)(3,"button",44),h("click",function(){v(e);let s=f();return S(s.closeAlert())}),o(4,"span",45),r(5,"\xD7"),n()(),r(6),n()()}if(i&2){let e=f();l(6),x(" ",e.subName," ")}}var Ze=(()=>{class i{assignmentService;modalService;datepipe;formBuilder;toastr;fileValidate;loadingService;router;route;data;subjectdata=[];subjectId;subName;file=[];save;fileData;fileAttached=!0;fileLable="Choose file";fileToUpload=null;fileChanged=!1;selectdate;currentdate;currentDateLong;dateFormat;invalidDate=!1;assignment={title:"",message:"",subjects:"",subjectName:"",file:"",deadLine:"",submission:""};constructor(e,t,s,a,m,u,N,oe,dt){this.assignmentService=e,this.modalService=t,this.datepipe=s,this.formBuilder=a,this.toastr=m,this.fileValidate=u,this.loadingService=N,this.router=oe,this.route=dt}ngOnInit(){this.save={},this.save.file={},this.fileData={},this.subName={}}handleFileInput(e){if(this.fileAttached=!0,this.fileToUpload=e.item(0),this.fileValidate.validate(this.fileToUpload)==!0)this.fileLable=this.fileToUpload.name;else return this.fileToUpload=null}uploadFile(){this.loadingService.showLoading();let e=new FormData;e.append("file",this.fileToUpload,this.fileToUpload.name),this.assignmentService.fileUpload(e).then(t=>t)}sendAssignment(){this.loadingService.showLoading(),this.selectdate=new Date(this.save.deadLine).getTime().valueOf().toString(),this.dateFormat=this.datepipe.transform(this.selectdate,"dd-MMM-yyyy"),this.save.subjects=this.subjectId,this.save.subjectName=this.subName,this.save.deadLine=this.dateFormat,this.loadingService.showLoading(),this.assignmentService.create(this.save).then(e=>{this.assignment=e,this.loadingService.hideLoading(),this.toastr.success("Successfully Created"),this.redirect()})}redirect(){this.router.navigate(["/assignment"],{relativeTo:this.route})}create(){this.fileToUpload!=null?(this.loadingService.showLoading(),this.assignmentService.fileUpload(this.fileToUpload).then(e=>{this.save.file.versionId=e.versionId,this.save.file.fileKey=e.fileKey,this.sendAssignment()})):this.sendAssignment()}
1removeFile(){this.fileAttached=!1,this.fileLable="Choose file",this.data!=null&&(this.fileChanged=!0)}subjectPop(){this.modalService.open(_e,{size:"lg"}).result.then(t=>{t&&(this.subjectdata=t,this.subjectId=t.id,this.subName=t.subjectName)})}closeAlert(){this.subName=void 0}static \u0275fac=function(t){return new(t||i)(d(L),d(k),d(O),d(Pe),d(H),d(ie),d(E),d(W),d(B))};static \u0275cmp=C({type:i,selectors:[["app-composeAssignment"]],inputs:{data:"data"},features:[Ae([{provide:ke,useClass:Ne}])],decls:99,vars:11,consts:[["composeForm","ngForm"],["title","ngModel"],["message","ngModel"],["d2","ngbDatepicker"],["date",""],["submission","ngModel"],["alert",""],[1,"container-fluid","flex-grow"],[2,"text-align","center","margin-top","15px"],[1,"row"],[1,"card-body"],[1,"container"],["role","alert",1,"alert","alert-info"],[1,"col-md-10"],[1,"form"],[1,"form-group","row"],[1,"col-md-4","my-1","text-end"],[1,"text-danger"],[1,"col-md-8"],["type","text","required","","name","title","placeholder","Title","ngModel","","required","",1,"form-control",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["required","","name","message","placeholder","Description","ngModel","",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-md-4","my-2","text-end"],[1,"col-md-7","mx-2"],["type","file","required","","id","file",1,"custom-file-input",3,"change"],["for","file",1,"custom-file-label"],[1,"input-group"],["placeholder","yyyy-mm-dd","name","d2","ngbDatepicker","","required","",1,"form-control",3,"ngModelChange","ngModel"],[1,"input-group-append"],["type","button","aria-required","true",1,"btn","btn-outline-secondary","fa","fa-calendar",3,"click"],[1,"col-sm-10","text-end"],[1,"col-md-4","text-end"],["data-toggle","modal",3,"click","routerLink"],["class","col-md-10 offset-md-4",4,"ngIf"],[1,"col-md-6"],[1,"form-check-inline"],["type","radio","required","","name","submission","id","","required","","name","submission","value","Enable","ngModel","",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"form-check-label"],["type","radio","id","","required","","name","submission","value","Disable","ngModel","",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"form-group-row"],[1,"col-sm-8","text-end"],["type","submit",1,"btn","btn-success",3,"click"],[1,"col-md-10","offset-md-4"],["role","status",1,"alert","alert-success","alert-dismissible"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"]],template:function(t,s){if(t&1){let a=y();o(0,"div",7)(1,"h3",8),r(2,"Compose Assignment"),n(),o(3,"div",9)(4,"div",10)(5,"div",11)(6,"div",12),r(7," 1. Supported image format (should be less than 1MB) *.jpg, *.jpeg, *.png "),_(8,"br"),r(9," 2. Supported documents (should be less than 10MB) *.pdf, *.doc, *.docx, *.xls, *.xlsx, *.ppt, *.pptx, *.odt, *.ods, *.odp, *.txt "),_(10,"br"),r(11," 3. Supported compressed format (should be less than 10MB) *.zip, *.rar, *.7z "),n(),o(12,"div",10)(13,"div",13)(14,"div",11)(15,"form",14,0)(17,"div",15)(18,"label",16),r(19,"Title"),o(20,"span",17),r(21,"*"),n(),r(22,":"),n(),o(23,"div",18)(24,"input",19,1),M("ngModelChange",function(u){return v(a),D(s.save.title,u)||(s.save.title=u),S(u)}),n(),g(26,It,2,0,"small",20),n()(),o(27,"div",15)(28,"label",16),r(29,"Description"),o(30,"span",17),r(31,"*"),n(),r(32,":"),n(),o(33,"div",18)(34,"textarea",21,2),M("ngModelChange",function(u){return v(a),D(s.save.message,u)||(s.save.message=u),S(u)}),n(),g(36,At,2,0,"small",20),n()(),o(37,"div",15)(38,"label",22),r(39,"Attach File :"),n(),r(40," \xA0 "),o(41,"div",23)(42,"input",24),h("change",function(u){return v(a),S(s.handleFileInput(u.target.files))}),n(),o(43,"label",25),r(44),n(),g(45,Et,2,0,"small",20),n()(),o(46,"div",15)(47,"label",16),r(48,"Deadline"),o(49,"span",17),r(50,"*"),n(),r(51,":"),n(),o(52,"div",18)(53,"div",26)(54,"input",27,3),M("ngModelChange",function(u){return v(a),D(s.save.deadLine,u)||(s.save.deadLine=u),S(u)}),n(),o(56,"div",28)(57,"button",29,4),h("click",function(){v(a);let u=J(55);return S(u.toggle())}),n()()()()(),o(59,"div",9)(60,"div",30),g(61,jt,2,0,"small",20),n()(),o(62,"div",15)(63,"label",31),r(64,"Select Subject"),o(65,"span",17),r(66,"*"),n(),r(67,":"),n(),o(68,"div",18)(69,"a",32),h("click",function(){return v(a),S(s.subjectPop())}),r(70,"click here"),n(),_(71,"br"),n()(),o(72,"div",11)(73,"div",9),g(74,Dt,7,1,"div",33),n()(),_(75,"br"),o(76,"div",15)(77,"label",31),r(78,"Submission"),o(79,"span",17),r(80,"*"),n(),r(81," :"),n(),r(82," \xA0 "),o(83,"div",34)(84,"div",35)(85,"input",36,5),M("ngModelChange",function(u){return v(a),D(s.save.submission,u)||(s.save.submission=u),S(u)}),n(),o(87,"label",37),r(88,"Enable"),n()(),o(89,"div",35)(90,"input",38,5),M("ngModelChange",function(u){return v(a),D(s.save.submission,u)||(s.save.submission=u),S(u)}),n(),o(92,"label",37),r(93,"Disable"),n()()()(),_(94,"br"),o(95,"div",39)(96,"div",40)(97,"button",41),h("click",function(){return v(a),S(s.create())}),r(98,"Submit"),n()()()()()()()()()()()}if(t&2){let a=J(25),m=J(35);l(24),j("ngModel",s.save.title),l(2),c("ngIf",!a.valid&&a.touched),l(8),j("ngModel",s.save.message),l(2),c("ngIf",!m.valid&&m.touched),l(8),b(s.fileLable),l(
1),c("ngIf",!s.file.valid&&s.file.touched),l(9),j("ngModel",s.save.deadLine),l(7),c("ngIf",s.invalidDate),l(13),c("ngIf",s.subName!=null&&s.subName.length>0),l(11),j("ngModel",s.save.submission),l(5),j("ngModel",s.save.submission)}},dependencies:[q,Le,fe,pe,Te,ee,ue,he,te,ge,A]})}return i})();var Ie=()=>({exact:!0});function Mt(i,p){i&1&&(o(0,"a",13),_(1,"i",14),r(2,"\xA0View"),n()),i&2&&c("routerLinkActiveOptions",Z(1,Ie))}function Tt(i,p){if(i&1&&(o(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),_(4,"router-outlet"),n()()(),o(5,"div",6)(6,"div",7)(7,"a",8),_(8,"i",9),r(9,"\xA0Compose"),n(),o(10,"a",10),_(11,"i",11),r(12,"\xA0sent"),n(),g(13,Mt,3,2,"a",12),n()()()),i&2){let e=f();l(7),c("routerLinkActiveOptions",Z(3,Ie)),l(3),c("routerLinkActiveOptions",Z(4,Ie)),l(3),c("ngIf",e.currentUser.userType=="HOD")}}function Pt(i,p){i&1&&(o(0,"div",2)(1,"div",15)(2,"div",4)(3,"div",5),_(4,"router-outlet"),n()()()())}var $e=(()=>{class i{userService;cookieService;currentUser;constructor(e,t){this.userService=e,this.cookieService=t}ngOnInit(){this.currentUser={},this.getCurrentUser()}getCurrentUser(){this.userService.getCurrentUser().then(e=>{this.currentUser=e})}static \u0275fac=function(t){return new(t||i)(d(F),d(Me))};static \u0275cmp=C({type:i,selectors:[["app-assignment-parent"]],decls:3,vars:2,consts:[[1,"container-fluid","flex-grow"],["class","row",4,"ngIf"],[1,"row"],[1,"col-md-10","order-md-1","pt-3"],[1,"bg-faded","mb-3"],[1,"card","bg-light"],[1,"col-md-2","order-md-2","pt-4"],[1,"list-group"],["routerLink","/assignment/compose","routerLinkActive","active-link",1,"list-group-item","list-group-item-action",3,"routerLinkActiveOptions"],[1,"fa","fa-edit"],["routerLink","/assignment","routerLinkActive","active-link",1,"list-group-item","list-group-item-action",3,"routerLinkActiveOptions"],[1,"fa","fa-paper-plane"],["routerLink","/assignment/viewAssignment","class","list-group-item list-group-item-action","routerLinkActive","active-link",3,"routerLinkActiveOptions",4,"ngIf"],["routerLink","/assignment/viewAssignment","routerLinkActive","active-link",1,"list-group-item","list-group-item-action",3,"routerLinkActiveOptions"],[1,"fa","fa-inbox"],[1,"col-md-12","order-md-1","pt-3"]],template:function(t,s){t&1&&(o(0,"div",0),g(1,Tt,14,5,"div",1)(2,Pt,5,0,"div",1),n()),t&2&&(l(),c("ngIf",s.currentUser.userType!="STUDENT"),l(),c("ngIf",s.currentUser.userType=="STUDENT"))},dependencies:[ce,q,De,A]})}return i})();var Ci={headers:new U({"Content-Type":"application/json"})},Ce=(()=>{class i{http;studentsubmission;assignment;constructor(e){this.http=e}getAssignment(){return this.http.get(w.URI+"/api/assignment/view")}getSubmissionById(e){return this.http.get(w.URI+"/api/assignment/getsingleassignment/"+e)}saveAssignment(e){return this.http.post(w.URI+"/api/assignment/studentSubmission",e)}fileUpload(e){return this.http.post(w.URI+"/api/announcement/fileValidation",e)}deleteFile(e){return this.http.delete(w.URI+"/api/assignment/updatestudentSubmission/"+e)}getStudentAssignment(e){return this.http.get(w.URI+"/api/assignment/getassignment/"+e)}static \u0275fac=function(t){return new(t||i)(T($))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var wi={headers:new U({"Content-Type":"application/json"})},G=(()=>{class i{studentsubmissionProvider;toastr;studentsubmission;id;constructor(e,t){this.studentsubmissionProvider=e,this.toastr=t}getAssignment(){return new Promise((e,t)=>{this.studentsubmissionProvider.getAssignment().subscribe(s=>{e(s)},s=>console.log("Error :: "+s))})}studentSubmission(e){return new Promise((t,s)=>{this.studentsubmissionProvider.getSubmissionById(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}getStudentAssignment(e){return new Promise((t,s)=>{this.studentsubmissionProvider.getStudentAssignment(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}save(e){return new Promise((t,s)=>{console.log(1223),this.studentsubmissionProvider.saveAssignment(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}fileUpload(e){let t=new FormData;return t.append("file",e,e.name),new Promise((s,a)=>{this.studentsubmissionProvider.fileUpload(t).subscribe(m=>{s(m)},m=>console.log("Error :: "+m))})}deleteFile(e){return new Promise((t,s)=>{this.studentsubmissionProvider.deleteFile(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}static \u0275fac=function(t){return new(t||i)(T(Ce),T(H))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Ut(i,p){if(i&1&&(o(0,"div",5)(1,"label",6),r(2,"Modified on :"),n(),o(3,"div",7)(4,"p"),r(5),n()()()),i&2){let e=f();l(5),x(" ",e.value.modifiedOn,"")}}function Vt(i,p){i&1&&(o(0,"div",5),_(1,"br"),n())}var tt=(()=>{class i{activeModal;modalService;activatedRoute;fileSubmissionService;loadingService;value;id;constructor(e,t,s,a,m){this.activeModal=e,this.modalService=t,this.activatedRoute=s,this.fileSubmissionService=a,this.loadingService=m}ngOnInit(){}static \u0275fac=function(t){return new(t||i)(d(K),d(k),d(B),d(G),d(E))};static \u0275cmp=C({type:i,selectors:[["app-student-View-Assignment-Popup"]],inputs:{value:"value"},decls:16,vars:3,consts:[[1,"modal-header","bd-example-modal-lg"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"row"],[1,"col-sm-4","text-end"],[1,"col-sm-6"],["class","row",4,"ngIf"]],template:function(t,s){t&1&&(o(0,"div",0)(1,"h4",1),r(2,"View"),n(),o(3,"button",2),h("click",function(){return s.activeModal.dismiss("Cross click")}),o(4,"span",3),r(5,"\xD7"),n()()(),o(6,"div",4)(7,"div")(8,"div",5)(9,"label",6),r(10,"De
1scription :"),n(),o(11,"div",7)(12,"p"),r(13),n()()(),g(14,Ut,6,1,"div",8)(15,Vt,2,0,"div",8),n()()),t&2&&(l(13),x(" ",s.value.message,""),l(),c("ngIf",s.value.modifiedOn!=null),l(),c("ngIf",s.value.modifiedOn==null))},dependencies:[A]})}return i})();function Ft(i,p){if(i&1){let e=y();le(0),o(1,"div",10)(2,"span"),r(3),n(),o(4,"a",11),h("click",function(){v(e);let s=f();return S(s.remove())}),r(5,"\xA0Remove"),n()(),me()}if(i&2){let e=f();l(3),x(" ",e.studentAssignment.studentFile.fileKey,"")}}function kt(i,p){if(i&1){let e=y();o(0,"div",10)(1,"div",12)(2,"input",13),h("change",function(s){v(e);let a=f();return S(a.handleFileInput(s.target.files))}),n(),o(3,"label",14),r(4),n()()()}if(i&2){let e=f();l(4),b(e.fileLable)}}var it=(()=>{class i{router;route;datepipe;activeModal;fileSubmission;toastr;loadingService;fileValidator;value;fileAttached;fileToUpload;fileValidate;fileLable;fileSubmitted;studentAssignment;saveSubmission;showBrowse=!0;fileChanged=!1;fileData;currentdate;dateFormat;deadlineDate;constructor(e,t,s,a,m,u,N,oe){this.router=e,this.route=t,this.datepipe=s,this.activeModal=a,this.fileSubmission=m,this.toastr=u,this.loadingService=N,this.fileValidator=oe}ngOnInit(){this.getStudentId(),this.fileSubmitted={},this.studentAssignment={},this.fileSubmitted.studentFile={},this.dateFormat={},this.dateFormat.format={}}getStudentId(){this.loadingService.showLoading(),this.fileSubmission.studentSubmission(this.value.id).then(e=>{e.length!=0&&(this.studentAssignment=e[0])})}handleFileInput(e){if(this.fileAttached=!0,this.fileToUpload=e.item(0),this.fileValidator.validate(this.fileToUpload)==!0)this.fileLable=this.fileToUpload.name;else return this.fileToUpload=null}uploadFile(){this.loadingService.showLoading();let e=new FormData;e.append("file",this.fileToUpload,this.fileToUpload.name),this.fileSubmission.fileUpload(e).then(t=>t)}submitFile(){this.loadingService.showLoading(),this.fileSubmission.fileUpload(this.fileToUpload).then(e=>{this.fileData=e,this.postFile()})}postFile(){this.loadingService.showLoading(),this.dateFormat=this.datepipe.transform(this.value.deadLine,"yyyy/MM/dd");var e=new Date(this.dateFormat).getFullYear()-1,t=new Date(this.dateFormat).getMonth(),s=new Date(this.dateFormat).getDate();this.deadlineDate=this.datepipe.transform(new Date(e,t,s),"yyyy-MM-dd"),this.deadlineDate=new Date(this.deadlineDate).getTime(),this.currentdate=new Date().getTime(),this.currentdate<this.deadlineDate?(this.fileSubmitted.assignmentId=this.value.id,this.fileSubmitted.studentFile.fileKey=this.fileData.fileKey,this.fileSubmitted.studentFile.versionId=this.fileData.versionId,this.fileSubmission.save(this.fileSubmitted).then(a=>{this.loadingService.hideLoading(),this.saveSubmission=a,this.activeModal.close(),this.toastr.success("Successfully Created")})):(this.toastr.error("Deadline over"),this.activeModal.close(),this.loadingService.hideLoading(),this.router.navigate(["/assignment/studentView"]))}remove(){this.showBrowse=!1,this.loadingService.showLoading(),this.fileSubmission.deleteFile(this.value.id).then(e=>{this.loadingService.hideLoading(),this.toastr.success("Deleted Successfully"),this.getStudentId()}),this.fileAttached=!1,this.fileLable="Choose file",this.fileChanged=!0}static \u0275fac=function(t){return new(t||i)(d(W),d(B),d(O),d(K),d(G),d(H),d(E),d(ie))};static \u0275cmp=C({type:i,selectors:[["app-studentUpload-Pop-up"]],inputs:{value:"value"},decls:15,vars:2,consts:[[1,"modal-header","bd-example-modal-lg"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group","row"],[1,"col-sm-4","text-end"],[4,"ngIf"],["class","col-sm-6",4,"ngIf"],["type","submit",3,"click"],[1,"col-sm-6"],[2,"color","red",3,"click"],[1,"custom-file"],["type","file","id","file",1,"custom-file-input",3,"change"],["for","file",1,"custom-file-label"]],template:function(t,s){t&1&&(o(0,"div",0)(1,"h4",1),r(2,"Upload"),n(),o(3,"button",2),h("click",function(){return s.activeModal.dismiss("Cross click")}),o(4,"span",3),r(5,"\xD7"),n()()(),o(6,"div",4)(7,"div",5)(8,"label",6),r(9,"Attach File :"),n(),r(10," \xA0 "),g(11,Ft,6,1,"ng-container",7)(12,kt,5,1,"div",8),o(13,"button",9),h("click",function(){return s.submitFile()}),r(14,"Add"),n()()()),t&2&&(l(11),c("ngIf",s.studentAssignment.studentFile!=null&&s.showBrowse),l(),c("ngIf",s.studentAssignment.studentFile!=null&&!s.showBrowse||s.studentAssignment.studentFile==null))},dependencies:[A]})}return i})();function Lt(i,p){if(i&1&&(o(0,"td")(1,"a",11),r(2),n()()),i&2){let e=f().$implicit;l(),X("href",e.file.url,Q),l(),b(e.file.fileKey)}}function Nt(i,p){i&1&&(o(0,"td"),r(1,"No Attachment Found"),n())}function Rt(i,p){if(i&1){let e=y();o(0,"td")(1,"a",12),h("click",function(){v(e);
1let s=f().$implicit,a=f(2);return S(a.uploadPopup(s))}),r(2,"Upload"),n()()}}function Ot(i,p){i&1&&(o(0,"td"),r(1," Disabled "),n())}function Bt(i,p){if(i&1){let e=y();o(0,"tr")(1,"th"),r(2),n(),o(3,"td")(4,"a",9),h("click",function(){let s=v(e).$implicit,a=f(2);return S(a.viewAssignment(s))}),r(5),n()(),o(6,"td"),r(7),n(),o(8,"td"),r(9),n(),o(10,"td"),r(11),n(),o(12,"td"),r(13),n(),g(14,Lt,3,2,"td",10)(15,Nt,2,0,"td",10)(16,Rt,3,0,"td",10)(17,Ot,2,0,"td",10),n()}if(i&2){let e=p.$implicit,t=p.index;l(2),b(t+1),l(3),x(" ",e.title," "),l(2),b(e.subjectName),l(2),b(e.createdOn),l(2),b(e.name),l(2),b(e.deadLine),l(),c("ngIf",e.file!=null),l(),c("ngIf",e.file==null),l(),c("ngIf",e.submission=="Enable"),l(),c("ngIf",e.submission=="Disable")}}function Wt(i,p){if(i&1&&(o(0,"table",6)(1,"thead")(2,"tr")(3,"th",7),r(4,"#"),n(),o(5,"th",7),r(6,"Assignment"),n(),o(7,"th",7),r(8,"Subject"),n(),o(9,"th",7),r(10,"Date"),n(),o(11,"th",7),r(12,"Sent by"),n(),o(13,"th",7),r(14,"Deadline"),n(),o(15,"th",7),r(16,"Attachment"),n(),o(17,"th",7),r(18,"Upload"),n()()(),o(19,"tbody"),g(20,Bt,18,10,"tr",8),n()()),i&2){let e=f();l(20),c("ngForOf",e.studentSubmission)}}function qt(i,p){i&1&&(o(0,"div",13)(1,"div",14)(2,"span",15),r(3," Sorry !"),n(),r(4," No data found. "),n()())}var nt=(()=>{class i{loadingService;studentsubmissionService;studentsubmissionProvider;config;modal;studentSubmission=[];assignmentId;constructor(e,t,s,a,m){this.loadingService=e,this.studentsubmissionService=t,this.studentsubmissionProvider=s,this.config=a,this.modal=m,a.backdrop="static",a.keyboard=!1}ngOnInit(){this.getStudentsubmission()}getStudentsubmission(){console.log("fgbdfcbvb"),this.loadingService.showLoading(),this.studentsubmissionService.getAssignment().then(e=>{this.studentSubmission=e,console.log(e+"DATAAAAA"),console.log(this.studentSubmission+"dfdsgsdfvds"),this.loadingService.hideLoading()})}uploadPopup(e){let t=this.modal.open(it,{size:"lg"});t.componentInstance.value=e}viewAssignment(e){let t=this.modal.open(tt);this.assignmentId=e.id,t.componentInstance.value=e}static \u0275fac=function(t){return new(t||i)(d(E),d(G),d(Ce),d(ve),d(k))};static \u0275cmp=C({type:i,selectors:[["app-studentView"]],decls:9,vars:2,consts:[[1,"container-fluid","flex-grow"],[2,"text-align","center"],[1,"row"],[1,"card-body"],["class","table table-striped",4,"ngIf"],["class","col-sm-6 offset-sm-3",4,"ngIf"],[1,"table","table-striped"],["scope","col"],[4,"ngFor","ngForOf"],["data-toggle","modal",1,"la","la-trash",3,"click"],[4,"ngIf"],[3,"href"],["data-toggle","modal",1,"btn","btn-primary",3,"click"],[1,"col-sm-6","offset-sm-3"],[1,"alert","alert-warning"],[1,"badge","badge-warning"]],template:function(t,s){t&1&&(o(0,"div",0),_(1,"br"),o(2,"h3",1),r(3," Assignment"),n(),o(4,"div",2)(5,"div",3),g(6,Wt,21,1,"table",4),o(7,"div",2),g(8,qt,5,0,"div",5),n()()()()),t&2&&(l(6),c("ngIf",s.studentSubmission.length>0),l(2),c("ngIf",s.studentSubmission.length==0))},dependencies:[V,A]})}return i})();var Ht=()=>["/assignment"];function Kt(i,p){if(i&1&&(o(0,"td",17)(1,"a",18),r(2),n()()),i&2){let e=f().$implicit;l(),X("href",e.barcode.url,Q),l(),b(e.barcode.fileKey)}}function zt(i,p){i&1&&(o(0,"td",17),r(1,"No Attachment Found"),n())}function Gt(i,p){if(i&1&&(o(0,"td",6),r(1),n()),i&2){let e=f().$implicit;l(),x(" ",e.attendanceDate,"")}}function Jt(i,p){i&1&&(o(0,"td",6),r(1,"---"),n())}function Yt(i,p){if(i&1&&(o(0,"tr")(1,"th"),r(2),n(),o(3,"td"),r(4),n(),g(5,Kt,3,2,"td",15)(6,zt,2,0,"td",15)(7,Gt,2,1,"td",16)(8,Jt,2,0,"td",16),n()),i&2){let e=p.$implicit,t=p.index;l(2),b(t+1),l(2),x(" ",e.name,""),l(),c("ngIf",e.barcode.url!=null),l(),c("ngIf",e.barcode.url==null),l(),c("ngIf",e.attendanceDate!=null),l(),c("ngIf",e.attendanceDate==null)}}var ot=(()=>{class i{activatedRoute;studentSubService;assignmentService;loadingService;userService;assignmentId;assignment;assignmentDetail;constructor(e,t,s,a,m){this.activatedRoute=e,this.studentSubService=t,this.assignmentService=s,this.loadingService=a,this.userService=m,this.assignmentId=this.activatedRoute.snapshot.paramMap.get("id")}ngOnInit(){this.assignmentDetail={},this.getCurrentUser()}getAssignmentStudents(){this.loadingService.showLoading(),this.studentSubService.getStudentAssignment(this.assignmentId).then(e=>{this.assignment=e,this.loadingService.hideLoading()})}getCurrentUser(){this.userService.getCurrentUser().then(e=>{this.getAssignmentStudents(),this.getAssignmentDetails(e)})}getAssignmentDetails(e){this.loadingService.showLoading(),this.assignmentService.getAssignmentById(e).then(t=>{t.forEach(s=>{s.id==this.assignmentId&&(this.assignmentDetail=s,this.loadingService.hideLoading())})})}static \u0275fac=function(t){return new(t||i)(d(B),d(G),d(L),d(E),d(F))};static \u0275cmp=C({type:i,selectors:[["app-studentSubmission"]],decls:35,vars:6,consts:[[1,"container-fluid","flex-grow"],[1,"row"],[1,"col-sm-2","mt-5"],[3,"routerLink"],["type","submit",1,"btn","btn-dark"],[1,"col-sm-10","mt-5"],[2,"text-align","center"],[1,"card-body"],[1,"container"],[1,"alert","alert-info"],[1,"badge","badge-info"],[1,"table","table-striped"],["scope","col"],["scope","col",2,"text-align","center"],[4,"ngFor","ngForOf"],["style","text-align:justify;",4,"ngIf"],["style","text-align: center;",4,"ngIf"],[2,"text-align","justify"],[3,"href"]],template:function(t,s){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"button",4),r(5,"Back"),n()()(),o(6,"div",5)(7,"h3",6),r(8,"View Assignment"),n()()(),o(9,"div",1)(10,"div",7)(11,"div",8)(12,"div",9)(13,"span",10),r(14,"Assignment Details"),n(),_(15,"br"),o(16,"div"),r(17),n(),o(18,"div"),r(19),n(),o(20,"div"),r(21),n()()(),o(22,"table",11)(23,"thead")(24,"tr")(25,"th",12),r(26,"#"),n(),o(27,"th",12),r(28,"Name"),n(),o(29,"th",12),r(30,"Assignment"),n(),o(31,"th",13),r(32,"Uploaded On"),n()()(),o(33,"tbody"),g(34,Yt,9,6,"tr",14),n()()()()()),t&2&&(l(3),c("routerLink",Z(5,Ht)),l(14),x(" Message:",s.assignmentDetail.message," "),l(2),x("Deadline: ",s.assignmentDetail.deadLine,""),l(2),x(" Student Submission:",s.assignmentDetail.submission,""),l(13),c("ngForOf",s.assignment))},dependencies:[q,V,A]})}return i})();var Pi={headers:new U({"Content-Type":"application/json"})},st=(()=>{class i{http;currentUri=w.URI+"/api/assignment";studentsubmission;assignment;constructor(e){this.http=e}getAssignmentById(e){return this.http.get(this.currentUri+"/sent?filter=createdBy eq "+e.userId)}getAssignmentBySubjectId(e){return this.http.get(w.URI+"/api/assignment/sent?filter=subjects eq "+e)}saveDetails(e){return this.http.post(this.currentUri+"/send/",e)}fileUpload(e){return this.http.post(this.currentUri+"/fileValidation",e)}getAssignment(e){return this.http.get(this.currentUri+"/"+e)}putAssignment(e){return this.http.put(this.currentUri+"/update",e)}getAssignmented(){return this.http.get(this.currentUri+"/view")}getSubmissionById(e){return this.http.get(this.currentUri+"/getsingleassignment/"+e)}saveAssignment(e){return this.http.post(this.currentUri+"/studentSubmission",e)}deleteFiled(e){return this.http.delete(this.currentUri+"/updatestudentSubmission/"+e)}getStudentAssignment(e){return this.http.get(this.currentUri+"/getassignment/"+e)}static \u0275fac=function(t){return new(t||i)(T($))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Vi={headers:new U({"Content-Type":"application/json"})},rt=(()=>{class i{assignmentProvider;studentsubmission;constructor(e){this.assignmentProvider=e}getAssignmentById(e){return new Promise((t,s)=>{this.assignmentProvider.getAssignmentById(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}getAssignmentBySubjectId(e){return new Promise((t,s)=>{this.assignmentProvider.getAssignmentBySubjectId(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}create(e){return new Promise((t,s)=>
1{this.assignmentProvider.saveDetails(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}getAssignment(e){return new Promise((t,s)=>{this.assignmentProvider.getAssignment(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}putAssignment(e){return new Promise((t,s)=>{this.assignmentProvider.putAssignment(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}getAssignmented(){return new Promise((e,t)=>{this.assignmentProvider.getAssignmented().subscribe(s=>{e(s)},s=>console.log("Error :: "+s))})}studentSubmission(e){return new Promise((t,s)=>{this.assignmentProvider.getSubmissionById(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}getStudentAssignment(e){return new Promise((t,s)=>{this.assignmentProvider.getStudentAssignment(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}save(e){return new Promise((t,s)=>{console.log(1223),this.assignmentProvider.saveAssignment(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}deleteFiled(e){return new Promise((t,s)=>{this.assignmentProvider.deleteFiled(e).subscribe(a=>{t(a)},a=>console.log("Error :: "+a))})}fileUpload(e){let t=new FormData;return t.append("file",e,e.name),new Promise((s,a)=>{this.assignmentProvider.fileUpload(t).subscribe(m=>{s(m)},m=>console.log("Error :: "+m))})}static \u0275fac=function(t){return new(t||i)(T(st))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Zt(i,p){if(i&1&&(o(0,"ng-option",17),r(1),n()),i&2){let e=p.$implicit;c("value",e),l(),de("",e.degreeName," - ",e.departmentName,"")}}function $t(i,p){if(i&1&&(o(0,"ng-option",17),r(1),n()),i&2){let e=p.$implicit;c("value",e.id),l(),b(e.year)}}function ei(i,p){if(i&1&&(o(0,"ng-option",17),r(1),n()),i&2){let e=p.$implicit;c("value",e.id),l(),b(e.subjectName)}}function ti(i,p){if(i&1&&(o(0,"ng-option",17),r(1),n()),i&2){let e=p.$implicit;c("value",e.id),l(),b(e.batchName)}}function ii(i,p){if(i&1&&(o(0,"tr")(1,"th"),r(2),n(),o(3,"td"),r(4),n(),o(5,"td"),r(6),n(),o(7,"td"),r(8),n(),o(9,"td"),r(10),n(),o(11,"td"),r(12),n()()),i&2){let e=p.$implicit,t=p.index;l(2),b(t+1),l(2),x(" ",e.title,""),l(2),b(e.subjectName),l(2),b(e.createdOn),l(2),b(e.deadLine),l(2),b(e.name)}}var at=(()=>{class i{userService;regulationService;subjectService;assignmentService;singleUser;departments;degree;regulation;subjects;bathces;selectedRegulation;selectedSubject;selectedBatch;batchdetails;assignmentDetails;constructor(e,t,s,a){this.userService=e,this.regulationService=t,this.subjectService=s,this.assignmentService=a}ngOnInit(){this.getSingleUser()}getSingleUser(){this.userService.getSingleUser().then(e=>{this.singleUser=e,console.log("Single User Data:",this.singleUser),this.departments=e.departments,console.log("Departments:",this.departments),console.log(e)}).catch(e=>{console.error("Error fetching single user:",e)})}getRegulation(e){this.regulationService.list(e.id).then(t=>{this.regulation=t.datas,console.log(this.regulation)}).catch(t=>{console.error("Error fetching regulation:",t)})}getSubjects(e){this.regulationService.getByRegulationId(e).then(t=>{this.subjects=t.datas,console.log(this.subjects)}).catch(t=>{console.error("Error fetching subjects:",t)})}getBatches(e){this.subjectService.getBatch(e).then(t=>{this.bathces=t,console.log("Batches for Subject ID:",e,this.bathces)}).catch(t=>{console.error("Error fetching batches:",t)})}getAssignment(e){this.assignmentService.getAssignmentBySubjectId(e).then(t=>{console.log("Assignments for Subject ID:",e,t),this.assignmentDetails=t}).catch(t=>{console.error("Error fetching assignments:",t)})}static \u0275fac=function(t){return new(t||i)(d(F),d(qe),d(He),d(rt))};static \u0275cmp=C({type:i,selectors:[["app-view-assignment"]],decls:62,vars:21,consts:[[1,"container-fluid","p-3"],[1,"text-center","mb-4"],[1,"row","g-3"],[1,"col-12","col-md-6","col-lg-3"],[1,"form-label","fw-semibold","mb-2"],[1,"text-danger"],[1,"dropdown-select"],["name","degree",1,"custom-dropdown","shadow-sm",3,"ngModelChange","change","ngModel","clearable","placeholder","dropdownPosition"],["value","",3,"disabled"],[3,"value",4,"ngFor","ngForOf"],["name","regulation",1,"custom-dropdown","shadow-sm",3,"ngModelChange","change","ngModel","clearable","placeholder","dropdownPosition"],["name","subject",1,"custom-dropdown","shadow-sm",3,"ngModelChange","change","ngModel","clearable","placeholder","dropdownPosition"],["name","batch",1,"custom-dropdown","shadow-sm",3,"ngModelChange","change","ngModel","clearable","placeholder","dropdownPosition"],[1,"card-body"],[1,"table","table-striped"],["scope","col"],[4,"ngFor","ngForOf"],[3,"value"]],template:function(t,s){t&1&&(o(0,"div",0)(1,"h3",1),r(2,"View Assignment"),n(),o(3,"div",2)(4,"div",3)(5,"label",4),r(6,"Degree & Department "),o(7,"span",5),r(8,"*"),n()(),o(9,"div",6)(10,"ng-select",7),M("ngModelChange",function(m){return D(s.degree,m)||(s.degree=m),m}),h("change",function(){return s.getRegulation(s.degree)}),o(11,"ng-option",8),r(12,"Select Degree & Department"),n(),g(13,Zt,2,3,"ng-option",9),n()()(),o(14,"div",3)(15,"label",4),r(16,"Regulation "),o(17,"span",5),r(18,"*"),n()(),o(19,"div",6)(20,"ng-select",10),M("ngModelChange",function(m){return D(s.selectedRegulation,m)||(s.selectedRegulation=m),m}),h("change",function(){return s.getSubjects(s.selectedRegulation)}),o(21,"ng-option",8),r(22,"Select Regulation"),n(),g(23,$t,2,2,"ng-option",9),n()()(),o(24,"div",3)(25,"label",4),r(26,"Subject "),o(27,"span",5),r(28,"*"),n()(),o(29,"div",6)(30,"ng-select",11),M("ngModelChange",function(m){return D(s.selectedSubject,m)||(s.selectedSubject=m),m}),h("change",function(){return s.getBatches(s.selectedSubject)}),o(31,"ng-option",8),r(32,"Select Subject"),n(),g(33,ei,2,2,"ng-option",9),n()()(),o(34,"div",3)(35,"label",4),r(36,"Batch "),o(37,"span",5),r(38,"*"),n()(),o(39,"div",6)(40,"ng-select",12),M("ngModelChange",function(m){return D(s.selectedBatch,m)||(s.selectedBatch=m),m}),h("change",function(){return s.getAssignment(s.selectedBatch)}),o(41,"ng-option",8),r(42,"Select Batch"),n(),g(43,ti,2,2,"ng-option",9),n()()()()(),o(44,"div",13)(45,"table",14)(46,"thead")(47,"tr")(48,"th",15),r(49,"#"),n(),o(50,"th",15),r(51,"Assignment"),n(),o(52,"th",15),r(53,"Subject"),n(),o(54,"th",15),r(55,"Created Date"),n(),o(56,"th",15),r(57,"DeadLine"),n(),o(58,"th",15),r(59,"Created By"),n()()(),o(60,"tbody"),g(61,ii,13,6,"tr",16),n()()()),t&2&&(l(10),j("ngModel",s.degree),c("clearable",!1)("placeholder","Select Degree & Department")("dropdownPosition","bottom"),l(3),c("ngForOf",s.departments),l(7),j("ngModel",s.selectedRegulation),c("clearable",!1)("placeholder","Select Regulation")("dropdownPosition","bottom"),l(3),c("ngForOf",s.regulation),l(7),j("ngModel",s.selectedSubject),c("clearable",!1)("placeholder","Select Subject")("dropdownPosition","bottom"),l(3),c("ngForOf",s.subjects),l(7),j("ngModel",s.selectedBatch),c("clearable",!1)("placeholder","Select Batch")("dropdownPosition","bottom"),l(3),c("ngForOf",s.bathces),l(18),c("ngForOf",s.assignmentDetails))},dependencies:[ee,te,V,We,Be]})}return i})();var ni=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"",component:$e,children:[{path:"home",component:Xe},{path:"compose",component:Ze},{path:"studentView",component:nt},{path:"viewSubmission/:id",component:ot},{path:"viewAssignment",component:at}]}],lt=(()=>
1{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ae({type:i});static \u0275inj=re({imports:[we.forChild(ni),we]})}return i})();var mt=(()=>{class i{title="assignment";static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["app-root"]],decls:1,vars:0,template:function(t,s){t&1&&_(0,"router-outlet")},dependencies:[ce]})}return i})();var Cn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ae({type:i,bootstrap:[mt]});static \u0275inj=re({providers:[O],imports:[lt,Oe,Ue,Ve,Fe,Re,je,Ke]})}return i})();export{Cn as AssignmentModule};

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.