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
/
..
/
www
/
html
/
..
/
school_portal_admin
/
32-es5.96c08f0e73648e5427d2.js
/
/
function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var c=0;c<e.length;c++){var a=e[c];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,_toPropertyKey(a.key),a)}}function _createClass(t,e,c){return e&&_defineProperties(t.prototype,e),c&&_defineProperties(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var c=t[Symbol.toPrimitive];if(void 0!==c){var a=c.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{"+Gt9":function(t,e,c){"use strict";c.d(e,"a",(function(){return r}));var a=c("qc5V"),n=c("fXoL"),r=function(){var t=function(){return _createClass((function t(e){_classCallCheck(this,t),this.apiService=e}),[{key:"update",value:function(t){return this.apiService.post("markEntry/update",t)}},{key:"getmarklist",value:function(t,e,c,a,n,r,i){return this.apiService.get("markEntry/".concat(t,"/").concat(e,"/").concat(c,"/").concat(a,"/").concat(n,"/").concat(r,"/").concat(i))}},{key:"getExamPlanId",value:function(t,e,c,a){return this.apiService.get("filterView/".concat(t,"/").concat(e,"/").concat(c,"/").concat(a))}},{key:"getTableHeaders",value:function(t,e){return this.apiService.get("markEntry/loadHeader/".concat(t,"/").concat(e))}},{key:"getAssesmentView",value:function(t,e,c,a,n,r){return this.apiService.get("markEntry/assesment/view/".concat(t,"/").concat(e,"/").concat(c,"/").concat(a,"/").concat(n,"/").concat(r))}},{key:"getSettingBasedTableHeaders",value:function(t){return this.apiService.get("anyAssesmentView/loadSubject/".concat(t))}},{key:"getSettingBasedAssignmentView",value:function(t,e,c,a,n){return this.apiService.get("settingBasedAssesmentView/".concat(t,"/").concat(e,"/").concat(c,"/").concat(a,"/").concat(n))}},{key:"getTermSettingView",value:function(t){return this.apiService.get("termSetting/".concat(t))}},{key:"updateTermSetting",value:function(t){return this.apiService.post("termSetting/update",t)}},{key:"getTermBasedTableHeaders",value:function(t){return this.apiService.get("termView/loadHeader/".concat(t))}},{key:"getTermBasedAssignmentView",value:function(t,e,c,a,n){return this.apiService.get("termView/".concat(t,"/").concat(e,"/").concat(c,"/").concat(a,"/").concat(n,"/0"))}}])}();return t.\u0275fac=function(e){return new(e||t)(n.hc(a.a))},t.\u0275prov=n.Tb({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},Attm:function(t,e,c){"use strict";var a=_createClass((function t(){_classCallCheck(this,t),this.classId="",this.className="",this.status=""})),n=c("fXoL");c.d(e,"a",(function(){return i}));var r,i=((r=function(){return _createClass((function t(){_classCallCheck(this,t)}),[{key:"adapt",value:function(t){return this.obj=new a,this.obj.classId=t.class_id,this.obj.className=t.class_name,this.obj.status=t.status,this.obj}}])}()).\u0275fac=function(t){return new(t||r)},r.\u0275prov=n.Tb({token:r,factory:r.\u0275fac,providedIn:"root"}),r)},MK7d:function(t,e,c){"use strict";c.d(e,"a",(function(){return M}));var a=c("Gg3P"),n=c("+Gt9"),r=c("Olgc"),i=c("tk/3"),o=c("qc5V"),d=c("0IaG"),l=c("VxG0"),s=c("fXoL"),m=c("tyNb"),u=c("Wp6s"),b=c("f0Cb"),f=c("XiUz"),h=c("ofXK"),p=c("bTqV");function g(t,e){if(1&t){var c=s.ec();s.dc(0,"button",21),s.lc("click",(function(t){return s.Sc(c),s.pc().download()})),s.dc(1,"i",22),s.cd(2," cloud_download "),s.cc(),s.cc()}}function v(t,e){if(1&t&&(s.dc(0,"th",16),s.cd(1),s.cc()),2&t){var c=e.$implicit;s.Gb(1),s.dd(null==c?null:c.subject_name)}}function k(t,e){if(1&t&&(s.dc(0,"th",16),s.cd(1),s.cc()),2&t){var c=e.$implicit;s.Gb(1),s.ed("(",null==c?null:c.tot_mark,")")}}function w(t,e){if(1&t&&(s.dc(0,"td",24),s.cd(1),s.cc()),2&t){var c=e.$implicit,a=s.pc().$implicit,n=s.pc();s.Gb(1),s.dd(n.getCorresMark(null==c?null:c.subject_id,null==a?null:a.subject_list))}}function y(t,e){if(1&t&&(s.dc(0,"tr",23),s.dc(1,"td",24),s.cd(2),s.cc(),s.dc(3,"td",24),s.cd(4),s.cc(),s.dc(5,"td",24),s.cd(6),s.cc(),s.ad(7,w,2,1,"td",25),s.dc(8,"td",24),s.cd(9),s.qc(10,"number"),s.cc(),s.dc(11,"td",24),s.cd(12),s.cc(),s.dc(13,"td",24),s.cd(14),s.cc(),s.cc()),2&t){var c=e.$implicit,a=s.pc();s.Gb(2),s.dd(null==c?null:c.roll_number),s.Gb(2),s.dd(null==c?null:c.admission_no),s.Gb(2),s.dd(null==c?null:c.student_name),s.Gb(1),s.yc("ngForOf",a.tableHeaders),s.Gb(2),s.dd(s.sc(10,7,a.getScore(null==c?null:c.subject_list),"1.2-2")),s.Gb(3),s.dd(null==c?null:c.grade),s.Gb(2),s.dd(null==c?null:c.remark)}}var _=function(){return["mark_entry"]},x=function(){return["mark_entry_download"]},M=function(){var t=function(){return _createClass((function t(e,c,a,n,r,i,o,d){_classCallCheck(this,t),this.data=e,this.dialogRef=c,this.modelService=a,this.activatedRoute=n,this.apiserv=r,this.loader=i,this.toaster=o,this.permission=d,this.mark=[],this.assessmentName="",console.log(this.data,"dataaaa"),this.forViewExamMark=JSON.parse(localStorage.getItem("forViewExamMark")),this.termAssesmentId=this.data.termAssesmentId}),[{key:"ngOnInit",value:function(){this.getTableHeaders(),this.getAssesmentView()}},{key:"getTableHeaders",value:function(){var t=this;this.modelService.getSettingBasedTableHeaders(this.termAssesmentId).subscribe((function(e){"success"==e.keyword&&(t.tableHeaders=e.data,t.tableHeaders.forEach((function(e){var c;t.mark.push(null===(c=e)||void 0===c?void 0:c.tot_mark)})),console.log(t.tableHeaders," table headers"))}))}},{key:"getAssesmentView",value:function(){var t,e,c,a,n=this;this.modelService.getSettingBasedAssignmentView(null===(t=this.forViewExamMark)||void 0===t?void 0:t.academic_year_id,null===(e=this.forViewExamMark)||void 0===e?void 0:e.batch_id,null===(c=this.forViewExamMark)||void 0===c?void 0:c.class_id,null===(a=this.forViewExamMark)||void 0===a?void 0:a.section_id,this.termAssesmentId).subscribe((function(t){var e;"success"==t.keyword&&(n.tableData=t.data,n.assessmentName=null===(e=n.tableData[0])||void 0===e?void 0:e.assesment_name,console.log(n.tableData,"assesment view"))}))}},{key:"getScore",value:function(t){var e=[];return t.forEach((function(t){var c,a;e.push("AB"==(null===(c=t)||void 0===c?void 0:c.final_mark)?0:null===(a=t)||void 0===a?void 0:a.final_mark)})),e.reduce((function(t,e){return Number(t)+Number(e)||0}),0)}},{key:"getTotalScore",value:function(){return this.mark.reduce((function(t,e){return Number(t)+Number(e)||0}),0)}},{key:"getCorresMark",value:function(t,e){return e.find((function(e){return e.subject_id==t})).final_mark}},{key:"download",value:function(){var t,e,c,a,n=this;this.loader.open(),this.apiserv.downloadFile("settingBasedAssesmentViewPdf/".concat(null===(t=this.forViewExamMark)||void 0===t?void 0:t.academic_year_id,"/").concat(null===(e=this.forViewExamMark)||void 0===e?void 0:e.batch_id,"/").concat(null===(c=this.forViewExamMark)||void 0===c?void 0:c.class_id,"/").concat(null===(a=this.forViewExamMark)||void 0===a?void 0:a.section_id,"/").concat(this.termAssesmentId),{fileName:"MarkEntry"}).subscribe((function(t){var e,c;switch(t.type){case i.d.DownloadProgress:n.loader.close();break;case i.d.Response:var a=new Blob([t.body],{type:t.body.type}),r=document.createElement("a");r.setAttribute("style","display:none;"),document.body.appendChild(r),r.download="".concat(n.assessmentName,"-").concat(null===(e=n.forViewExamMark)||void 0===e?void 0:e.class,"-").concat(null===(c=n.forViewExamMark)||void 0===c?void 0:c.section),r.href=URL.createObjectURL(a),r.target="_blank",r.click(),document.body.removeChild(r),n.loader.close()}}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Xb(d.a),s.Xb(d.f),s.Xb(n.a),s.Xb(m.a),s.Xb(o.a),s.Xb(a.a),s.Xb(r.a),s.Xb(l.a))},t.\u0275cmp=s.Rb({type:t,selectors:[["app-view"]],decls:66,vars:12,consts:[[1,"py-0","px-16"],[1,"mb-0"],[1,"card-title-text"],[1,"py-16"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","80",1,"pr-1"],[1,"ml-16","primary-txt-color"],[1,"ml-40"],[1,"ml-16"],["fxFlex","100","fxFlex.gt-xs","20",1,"text-right"],["mat-button","","color","primary","class","ml-24",3,"click",4,"ngIf"],[1,"mat-table","mt-12","mark-entry-view"],[1,"mat-header-row"],["rowspan","2",1,"mat-header-cell","pl-12",2,"width","10%","text-align","left"],["rowspan","2",1,"mat-header-cell","pl-12",2,"width","16%","text-align","left"],["class","mat-header-cell text-center",4,"ngFor","ngForOf"],[1,"mat-header-cell","text-center"],["rowspan","2",1,"mat-header-cell","text-center","px-16"],["class","mat-row",4,"ngFor","ngForOf"],[1,"example-button-row","mb-12"],["mat-raised-button","","color","primary",1,"btn-primary-bg",2,"margin-bottom","10px","cursor","pointer",3,"click"],["mat-button","","color","primary",1,"ml-24",3,"click"],[1,"material-icons"],[1,"mat-row"],[1,"mat-cell"],["class","mat-cell",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(s.dc(0,"mat-card",0),s.dc(1,"mat-card-title",1),s.dc(2,"div",2),s.cd(3,"View Mark"),s.cc(),s.cc(),s.Yb(4,"mat-divider"),s.dc(5,"mat-card-content"),s.dc(6,"div",3),s.dc(7,"div",4),s.dc(8,"div",5),s.dc(9,"label"),s.dc(10,"strong"),s.cd(11,"Exam"),s.cc(),s.cc(),s.dc(12,"label",6),s.dc(13,"strong"),s.cd(14),s.cc(),s.cc(),s.dc(15,"label",7),s.dc(16,"strong"),s.cd(17,"Academic Year"),s.cc(),s.cc(),s.dc(18,"label",8),s.cd(19),s.cc(),s.dc(20,"label",7),s.dc(21,"strong"),s.cd(22,"Batch"),s.cc(),s.cc(),s.dc(23,"label",8),s.cd(24),s.cc(),s.dc(25,"label",7),s.dc(26,"strong"),s.cd(27,"Class"),s.cc(),s.cc(),s.dc(28,"label",8),s.cd(29),s.cc(),s.dc(30,"label",7),s.dc(31,"strong"),s.cd(32,"Section"),s.cc(),s.cc(),s.dc(33,"label",8),s.cd(34),s.cc(),s.cc(),s.dc(35,"div",9),s.ad(36,g,3,0,"button",10),s.cc(),s.cc(),s.dc(37,"table",11),s.dc(38,"thead"),s.dc(39,"tr",12),s.dc(40,"th",13),s.cd(41,"Roll No"),s.cc(),s.dc(42,"th",13),s.cd(43,"Admn.No"),s.cc(),s.dc(44,"th",14),s.cd(45,"Student Name"),s.cc(),s.ad(46,v,2,1,"th",15),s.dc(47,"th",16),s.cd(48,"Score"),s.cc(),s.dc(49,"th",17),s.dc(50,"b"),s.cd(51,"Grade"),s.Yb(52,"br"),s.dc(53,"small"),s.cd(54,"(A,B,C,D,E,F)"),s.cc(),s.cc(),s.cc(),s.dc(55,"th",17),s.cd(56,"Remarks"),s.cc(),s.cc(),s.dc(57,"tr",12),s.ad(58,k,2,1,"th",15),s.dc(59,"th",16),s.cd(60),s.cc(),s.cc(),s.cc(),s.dc(61,"tbody"),s.ad(62,y,15,10,"tr",18),s.cc(),s.cc(),s.cc(),s.dc(63,"div",19),s.dc(64,"button",20),s.lc("click",(function(t){return e.dialogRef.close()})),s.cd(65,"Discard"),s.cc(),s.cc(),s.cc(),s.cc()),2&t&&(s.Gb(14),s.ed(" ",e.assessmentName,""),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.academic_year_name),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.batch_name),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.class),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.section),s.Gb(2),s.yc("ngIf",e.permission.hasPermission(s.Ec(10,_),s.Ec(11,x))),s.Gb(10),s.yc("ngForOf",e.tableHeaders),s.Gb(12),s.yc("ngForOf",e.tableHeaders),s.Gb(2),s.ed("(",e.getTotalScore(),")"),s.Gb(2),s.yc("ngForOf",e.tableData))},directives:[u.a,u.f,b.a,u.c,f.c,f.a,h.o,h.n,p.a],pipes:[h.f],styles:["mat-divider[_ngcontent-%COMP%]{margin-left:0!important}mat-card-footer[_ngcontent-%COMP%]{padding:15px 0!important}h4[_ngcontent-%COMP%]{font-size:14px}.card-title-text[_ngcontent-%COMP%]{padding:5px 0!important}th[_ngcontent-%COMP%]{width:10%;color:#000!important;font-weight:600!important;background:hsla(0,0%,50.2%,.30196078431372547)}table[_ngcontent-%COMP%]{border-color:hsla(0,0%,50.2%,.30196078431372547)}td[_ngcontent-%COMP%]{text-align:center!important;white-space:nowrap;border:1px solid hsla(0,0%,80%,.4588235294117647)!important;background-color:#f5f5f5}th[_ngcontent-%COMP%]{border:1px solid rgba(164,153,153,.4588235294117647)!important}.mat-header-cell[_ngcontent-%COMP%]{padding-top:4px!important}tr.mat-header-row[_ngcontent-%COMP%]{height:unset!important}table.mat-table[_ngcontent-%COMP%]{border-spacing:0}td[_ngcontent-%COMP%]:first-child, td[_ngcontent-%COMP%]:nth-child(2), td[_ngcontent-%COMP%]:nth-child(3){text-align:left!important;padding-left:12px;background-color:unset!important}.text-center[_ngcontent-%COMP%]{text-align:center!important}mat-card[_ngcontent-%COMP%]{height:500px;overflow-y:scroll}"]}),t}()},jxKU:function(t,e,c){"use strict";c.d(e,"a",(function(){return M}));var a=c("Gg3P"),n=c("+Gt9"),r=c("Olgc"),i=c("tk/3"),o=c("qc5V"),d=c("0IaG"),l=c("VxG0"),s=c("fXoL"),m=c("tyNb"),u=c("Wp6s"),b=c("f0Cb"),f=c("XiUz"),h=c("ofXK"),p=c("bTqV");function g(t,e){if(1&t){var c=s.ec();s.dc(0,"button",21),s.lc("click",(function(t){return s.Sc(c),s.pc().download()})),s.dc(1,"i",22),s.cd(2," cloud_download "),s.cc(),s.cc()}}function v(t,e){if(1&t&&(s.dc(0,"th",16),s.cd(1),s.cc()),2&t){var c=e.$implicit;s.Gb(1),s.dd(null==c?null:c.subject_name)}}function k(t,e){if(1&t&&(s.dc(0,"th",16),s.cd(1),s.cc()),2&t){var c=e.$implicit;s.Gb(1),s.ed("(",null==c?null:c.mark,")")}}function w(t,e){if(1&t&&(s.dc(0,"td",24),s.cd(1),s.cc()),2&t){var c=e.$implicit,a=s.pc().$implicit,n=s.pc();s.Gb(1),s.dd(n.getCorresMark(null==c?null:c.term_subject_id,null==a?null:a.subject_mark))}}function y(t,e){if(1&t&&(s.dc(0,"tr",23),s.dc(1,"td",24),s.cd(2),s.cc(),s.dc(3,"td",24),s.cd(4),s.cc(),s.dc(5,"td",24),s.cd(6),s.cc(),s.ad(7,w,2,1,"td",25),s.dc(8,"td",24),s.cd(9),s.qc(10,"number"),s.cc(),s.dc(11,"td",24),s.cd(12),s.cc(),s.dc(13,"td",24),s.cd(14),s.cc(),s.cc()),2&t){var c=e.$implicit,a=s.pc();s.Gb(2),s.dd(null==c?null:c.roll_number),s.Gb(2),s.dd(null==c?null:c.admission_no),s.Gb(2),s.dd(null==c?null:c.student_name),s.Gb(1),s.yc("ngForOf",a.tableHeaders),s.Gb(2),s.dd(s.sc(10,7,a.getScore(null==c?null:c.subject_mark),"1.2-2")),s.Gb(3),s.dd(null==c?null:c.grade),s.Gb(2),s.dd(null==c?null:c.remark)}}var _=function(){return["mark_entry"]},x=function(){return["mark_entry_download"]},M=function(){var t=function(){return _createClass((function t(e,c,a,n,r,i,o,d){_classCallCheck(this,t),this.data=e,this.dialogRef=c,this.modelService=a,this.activatedRoute=n,this.apiserv=r,this.loader=i,this.toaster=o,this.permission=d,this.mark=[],this.timeTableArray=[],console.log(this.data,"dataaaa"),this.forViewExamMark=JSON.parse(localStorage.getItem("forViewExamMark")),this.examPlanTermId=this.data.examPlanTermId,this.termAssesmentId=this.data.termAssesmentId}),[{key:"ngOnInit",value:function(){this.getTableHeaders(),this.getAssesmentView()}},{key:"getTableHeaders",value:function(){var t=this;this.modelService.getTableHeaders(this.examPlanTermId,this.termAssesmentId).subscribe((function(e){"success"==e.keyword&&(t.tableHeaders=e.data,t.tableHeaders.forEach((function(e){var c;t.mark.push(null===(c=e)||void 0===c?void 0:c.mark)})),console.log(t.tableHeaders," table headers"))}))}},{key:"getAssesmentView",value:function(){var t,e,c,a,n=this;this.modelService.getAssesmentView(null===(t=this.forViewExamMark)||void 0===t?void 0:t.academic_year_id,null===(e=this.forViewExamMark)||void 0===e?void 0:e.batch_id,null===(c=this.forViewExamMark)||void 0===c?void 0:c.class_id,null===(a=this.forViewExamMark)||void 0===a?void 0:a.section_id,this.examPlanTermId,this.termAssesmentId).subscribe((function(t){"success"==t.keyword&&(n.tableData=t.data,console.log(n.tableData,"assesment view"))}))}},{key:"getScore",value:function(t){var e=[];return t.forEach((function(t){var c,a;e.push("AB"==(null===(c=t)||void 0===c?void 0:c.mark)?"Absent":null===(a=t)||void 0===a?void 0:a.mark)})),e.reduce((function(t,e){return Number(t)+Number(e)||0}),0)}},{key:"getTotalScore",value:function(){return this.mark.reduce((function(t,e){return Number(t)+Number(e)||0}),0)}},{key:"getCorresMark",value:function(t,e){return e.find((function(e){return e.term_subject_id==t})).mark}},{key:"download",value:function(){var t,e,c,a,n=this;this.loader.open(),this.apiserv.downloadFile("markEntry/assesment/viewPdf/".concat(null===(t=this.forViewExamMark)||void 0===t?void 0:t.academic_year_id,"/").concat(null===(e=this.forViewExamMark)||void 0===e?void 0:e.batch_id,"/").concat(null===(c=this.forViewExamMark)||void 0===c?void 0:c.class_id,"/").concat(null===(a=this.forViewExamMark)||void 0===a?void 0:a.section_id,"/").concat(this.examPlanTermId,"/").concat(this.termAssesmentId),{fileName:"MarkEntry"}).subscribe((function(t){var e,c,a;switch(t.type){case i.d.DownloadProgress:n.loader.close();break;case i.d.Response:var r=new Blob([t.body],{type:t.body.type}),o=document.createElement("a");o.setAttribute("style","display:none;"),document.body.appendChild(o),o.download="".concat(null===(e=n.tableData)||void 0===e?void 0:e.assesment_name,"-").concat(null===(c=n.forViewExamMark)||void 0===c?void 0:c.class,"-").concat(null===(a=n.forViewExamMark)||void 0===a?void 0:a.section),o.href=URL.createObjectURL(r),o.target="_blank",o.click(),document.body.removeChild(o),n.loader.close()}}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Xb(d.a),s.Xb(d.f),s.Xb(n.a),s.Xb(m.a),s.Xb(o.a),s.Xb(a.a),s.Xb(r.a),s.Xb(l.a))},t.\u0275cmp=s.Rb({type:t,selectors:[["app-view"]],decls:66,vars:12,consts:[[1,"py-0","px-16"],[1,"mb-0"],[1,"card-title-text"],[1,"py-16"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","80",1,"pr-1"],[1,"ml-16","primary-txt-color"],[1,"ml-40"],[1,"ml-16"],["fxFlex","100","fxFlex.gt-xs","20",1,"text-right"],["mat-button","","color","primary","class","ml-24",3,"click",4,"ngIf"],[1,"mat-table","mt-12","mark-entry-view"],[1,"mat-header-row"],["rowspan","2",1,"mat-header-cell","pl-12",2,"width","10%","text-align","left"],["rowspan","2",1,"mat-header-cell","pl-12",2,"width","16%","text-align","left"],["class","mat-header-cell text-center",4,"ngFor","ngForOf"],[1,"mat-header-cell","text-center"],["rowspan","2",1,"mat-header-cell","text-center","px-16"],["class","mat-row",4,"ngFor","ngForOf"],[1,"example-button-row","mb-12"],["mat-raised-button","","color","primary",1,"btn-primary-bg",2,"cursor","pointer",3,"click"],["mat-button","","color","primary",1,"ml-24",3,"click"],[1,"material-icons"],[1,"mat-row"],[1,"mat-cell"],["class","mat-cell",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(s.dc(0,"mat-card",0),s.dc(1,"mat-card-title",1),s.dc(2,"div",2),s.cd(3,"View Mark"),s.cc(),s.cc(),s.Yb(4,"mat-divider"),s.dc(5,"mat-card-content"),s.dc(6,"div",3),s.dc(7,"div",4),s.dc(8,"div",5),s.dc(9,"label"),s.dc(10,"strong"),s.cd(11,"Exam"),s.cc(),s.cc(),s.dc(12,"label",6),s.dc(13,"strong"),s.cd(14),s.cc(),s.cc(),s.dc(15,"label",7),s.dc(16,"strong"),s.cd(17,"Academic Year"),s.cc(),s.cc(),s.dc(18,"label",8),s.cd(19),s.cc(),s.dc(20,"label",7),s.dc(21,"strong"),s.cd(22,"Batch"),s.cc(),s.cc(),s.dc(23,"label",8),s.cd(24),s.cc(),s.dc(25,"label",7),s.dc(26,"strong"),s.cd(27,"Class"),s.cc(),s.cc(),s.dc(28,"label",8),s.cd(29),s.cc(),s.dc(30,"label",7),s.dc(31,"strong"),s.cd(32,"Section"),s.cc(),s.cc(),s.dc(33,"label",8),s.cd(34),s.cc(),s.cc(),s.dc(35,"div",9),s.ad(36,g,3,0,"button",10),s.cc(),s.cc(),s.dc(37,"table",11),s.dc(38,"thead"),s.dc(39,"tr",12),s.dc(40,"th",13),s.cd(41,"Roll No"),s.cc(),s.dc(42,"th",13),s.cd(43,"Admn.No"),s.cc(),s.dc(44,"th",14),s.cd(45,"Student Name"),s.cc(),s.ad(46,v,2,1,"th",15),s.dc(47,"th",16),s.cd(48,"Score"),s.cc(),s.dc(49,"th",17),s.dc(50,"b"),s.cd(51,"Grade"),s.Yb(52,"br"),s.dc(53,"small"),s.cd(54,"(A,B,C,D,E,F)"),s.cc(),s.cc(),s.cc(),s.dc(55,"th",17),s.cd(56,"Remarks"),s.cc(),s.cc(),s.dc(57,"tr",12),s.ad(58,k,2,1,"th",15),s.dc(59,"th",16),s.cd(60),s.cc(),s.cc(),s.cc(),s.dc(61,"tbody"),s.ad(62,y,15,10,"tr",18),s.cc(),s.cc(),s.cc(),s.dc(63,"div",19),s.dc(64,"button",20),s.lc("click",(function(t){return e.dialogRef.close()})),s.cd(65,"Discard"),s.cc(),s.cc(),s.cc(),s.cc()),2&t&&(s.Gb(14),s.ed(" ",null==e.tableData?null:e.tableData.assesment_name,""),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.academic_year_name),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.batch_name),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.class),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.section),s.Gb(2),s.yc("ngIf",e.permission.hasPermission(s.Ec(10,_),s.Ec(11,x))),s.Gb(10),s.yc("ngForOf",e.tableHeaders),s.Gb(12),s.yc("ngForOf",e.tableHeaders),s.Gb(2),s.ed("(",e.getTotalScore(),")"),s.Gb(2),s.yc("ngForOf",null==e.tableData?null:e.tableData.list))},directives:[u.a,u.f,b.a,u.c,f.c,f.a,h.o,h.n,p.a],pipes:[h.f],styles:["mat-divider[_ngcontent-%COMP%]{margin-left:0!important}mat-card-footer[_ngcontent-%COMP%]{padding:15px 0!important}h4[_ngcontent-%COMP%]{font-size:14px}.card-title-text[_ngcontent-%COMP%]{padding:5px 0!important}th[_ngcontent-%COMP%]{width:10%;color:#000!important;font-weight:600!important;background:hsla(0,0%,50.2%,.30196078431372547)}table[_ngcontent-%COMP%]{border-color:hsla(0,0%,50.2%,.30196078431372547)}td[_ngcontent-%COMP%]{text-align:center!important;white-space:nowrap;border:1px solid hsla(0,0%,80%,.4588235294117647)!important;background-color:#f5f5f5}th[_ngcontent-%COMP%]{border:1px solid rgba(164,153,153,.4588235294117647)!important}.mat-header-cell[_ngcontent-%COMP%]{padding-top:4px!important}tr.mat-header-row[_ngcontent-%COMP%]{height:unset!important}table.mat-table[_ngcontent-%COMP%]{border-spacing:0}td[_ngcontent-%COMP%]:first-child, td[_ngcontent-%COMP%]:nth-child(2), td[_ngcontent-%COMP%]:nth-child(3){text-align:left!important;padding-left:12px;background-color:unset!important}.text-center[_ngcontent-%COMP%]{text-align:center!important}mat-card[_ngcontent-%COMP%]{height:500px;overflow-y:scroll}"]}),t}()},k9Bo:function(t,e,c){"use strict";var a,n=c("tk/3"),r=c("2Vo4"),i=c("lJxs"),o=c("Attm"),d=c("fXoL"),l=((a=function(){return _createClass((function t(e){_classCallCheck(this,t),this.adapter=e}),[{key:"adapt",value:function(t){var e=this,c=[];return t.data.forEach((function(t){c.push(e.adapter.adapt(t))})),{keyword:t.keyword,message:t.message,classes:c,pageSize:t.count,page:t.page}}}])}()).\u0275fac=function(t){return new(t||a)(d.hc(o.a))},a.\u0275prov=d.Tb({token:a,factory:a.\u0275fac,providedIn:"root"}),a),s=c("qc5V");c.d(e,"a",(function(){return u}));var m,u=((m=function(){return _createClass((function t(e,c){_classCallCheck(this,t),this.adapter=e,this.apiService=c,this.recordAddedSubject=new r.a([{}]),this.recordUpdatedSubject=new r.a([{}]),this.userId=0}),[{key:"create",value:function(t){var e=this;return this.apiService.post("class/create",t).pipe(Object(i.a)((function(t){return e.adapter.adapt(t)})))}},{key:"update",value:function(t){var e=this;return this.apiService.post("class/update",t).pipe(Object(i.a)((function(t){return e.adapter.adapt(t)})))}},{key:"status",value:function(t,e){return this.apiService.post(2!=e?"class/status":"class/delete",t)}},{key:"getListForClass",value:function(t){var e=this,c=new n.e;for(var a in t)c=c.set(a,t[a]);return this.apiService.get("class",c).pipe(Object(i.a)((function(t){return e.adapter.adapt(t)})))}},{key:"getList",value:function(){var t=this,e=new n.e;return this.apiService.get("class",e).pipe(Object(i.a)((function(e){return t.adapter.adapt(e)})))}},{key:"getRecordAddedSub",value:function(){return this.recordAddedSubject.asObservable()}},{key:"getRecordUpdatedSub",value:function(){return this.recordUpdatedSubject.asObservable()}},{key:"getClassByBatch",value:function(t){var e=this;return this.apiService.get("loadClassByBatch/".concat(t)).pipe(Object(i.a)((function(t){return e.adapter.adapt(t)})))}},{key:"getClasses",value:function(t){var e=this;return this.apiService.get("getAttendClass/".concat(t)).pipe(Object(i.a)((function(t){return e.adapter.adapt(t)})))}}])}()).\u0275fac=function(t){return new(t||m)(d.hc(l),d.hc(s.a))},m.\u0275prov=d.Tb({token:m,factory:m.\u0275fac,providedIn:"root"}),m)},lva3:function(t,e,c){"use strict";c.d(e,"a",(function(){return M}));var a=c("0IaG"),n=c("3Pt+"),r=c("Olgc"),i=c("Gg3P"),o=c("+Gt9"),d=c("tk/3"),l=c("qc5V"),s=c("VxG0"),m=c("fXoL"),u=c("tyNb"),b=c("dNgK"),f=c("Wp6s"),h=c("f0Cb"),p=c("XiUz"),g=c("ofXK"),v=c("bTqV"),k=c("bSwM");function w(t,e){if(1&t){var c=m.ec();m.dc(0,"button",22),m.lc("click",(function(t){return m.Sc(c),m.pc().download()})),m.dc(1,"i",23),m.cd(2," cloud_download "),m.cc(),m.cc()}}function y(t,e){if(1&t&&(m.dc(0,"tr",24),m.dc(1,"td",25),m.cd(2),m.Yb(3,"input",26),m.cc(),m.dc(4,"td",25),m.cd(5),m.Yb(6,"input",27),m.cc(),m.dc(7,"td",25),m.cd(8),m.Yb(9,"input",28),m.Yb(10,"input",29),m.cc(),m.dc(11,"td",30),m.Yb(12,"mat-checkbox",31),m.cc(),m.dc(13,"td",30),m.cd(14),m.Yb(15,"input",32),m.Yb(16,"input",33),m.cc(),m.dc(17,"td",30),m.cd(18),m.Yb(19,"input",34),m.Yb(20,"input",35),m.cc(),m.cc()),2&t){var c=e.$implicit;m.yc("formGroupName",e.index),m.Gb(2),m.ed("",c.controls.roll_number.value," "),m.Gb(3),m.ed("",c.controls.admission_no.value," "),m.Gb(3),m.ed("",c.controls.student_name.value," "),m.Gb(6),m.ed("",1==c.controls.is_absent.value?"Absent":c.controls.mark.value," "),m.Gb(4),m.ed("",1==c.controls.is_absent.value?"Absent":c.controls.remark.value," ")}}var _=function(){return["mark_entry"]},x=function(){return["mark_entry_download"]},M=function(){var t=function(){return _createClass((function t(e,c,a,n,r,i,o,d,l,s,m){_classCallCheck(this,t),this.data=e,this.dialogRef=c,this.modelService=a,this.router=n,this.toaster=r,this.loader=i,this.formBuilder=o,this.apiserv=d,this.snack=l,this.activateRoute=s,this.permission=m,this.marklist=[],this.grade=[],this.termAssesmentId=this.data.termAssesmentId,this.termSubjectId=this.data.termSubjectId,this.examPlanId=this.data.examPlanId,this.termId=this.data.termId,console.log(this.data,"this.datas"),console.log(this.termId,"this.termId"),this.forViewExamMark=JSON.parse(localStorage.getItem("forViewExamMark"))}),[{key:"ngOnInit",value:function(){this.markForm=this.formBuilder.group({marks:new n.d([this.getMarkEntryList([])])}),this.getMarkList()}},{key:"getMarkEntryList",value:function(t){return new n.j({roll_number:new n.g(t.roll_number),admission_no:new n.g(t.admission_no),student_name:new n.g(t.student_name),mark_entry_id:new n.g(t.mark_entry_id?t.mark_entry_id:"0"),student_id:new n.g(t.student_id),mark:new n.g({value:t.mark,disabled:1==t.is_absent}),remark:new n.g(t.remark),is_absent:new n.g({value:1==t.is_absent,disabled:!0}),grade_template_particular_id:new n.g(t.grade_template_particular_id)})}},{key:"getMarkList",value:function(){var t=this;this.academicId=this.forViewExamMark.academic_year_id,this.batchId=this.forViewExamMark.batch_id,this.classId=this.forViewExamMark.class_id,this.sectionId=this.forViewExamMark.section_id,this.modelService.getmarklist(this.academicId,this.batchId,this.classId,this.sectionId,this.termId,this.termAssesmentId,this.termSubjectId).subscribe((function(e){"success"==e.keyword?(t.marklist=e.data.list,console.log(t.marklist,"this.marklist"),t.markTitle=e.data,t.grade=e.data.grade,t.populateMark(t.marklist),t.toaster.present(e.message,"")):t.toaster.present(e.message,"")}))}},{key:"populateMark",value:function(t){var e=this,c=this.markForm.get("marks");c.clear(),t.forEach((function(t){c.push(e.getMarkEntryList(t))}))}},{key:"download",value:function(){var t=this;this.loader.open(),this.apiserv.downloadFile("markEntry/viewPdf/".concat(this.academicId,"/").concat(this.batchId,"/").concat(this.classId,"/").concat(this.sectionId,"/").concat(this.termId,"/").concat(this.termAssesmentId,"/").concat(this.termSubjectId),{fileName:"MarkEntry"}).subscribe((function(e){var c,a,n,r,i,o;switch(e.type){case d.d.DownloadProgress:t.loader.close();break;case d.d.Response:var l=new Blob([e.body],{type:e.body.type}),s=document.createElement("a");s.setAttribute("style","display:none;"),document.body.appendChild(s),s.download="".concat(null===(c=t.markTitle)||void 0===c?void 0:c.subject_name,"-").concat(""==(null===(a=t.markTitle)||void 0===a?void 0:a.assesment_name)?null===(n=t.markTitle)||void 0===n?void 0:n.term_name:null===(r=t.markTitle)||void 0===r?void 0:r.assesment_name,"-").concat(null===(i=t.markTitle)||void 0===i?void 0:i.class,"-").concat(null===(o=t.markTitle)||void 0===o?void 0:o.section),s.href=URL.createObjectURL(l),s.target="_blank",s.click(),document.body.removeChild(s),t.loader.close()}}))}},{key:"list",value:function(){this.router.navigate(["/school/mark-entry/list/".concat(this.termId,"/").concat(this.termAssesmentId,"/").concat(this.termSubjectId,"/").concat(this.examPlanId)])}}])}();return t.\u0275fac=function(e){return new(e||t)(m.Xb(a.a),m.Xb(a.f),m.Xb(o.a),m.Xb(u.g),m.Xb(r.a),m.Xb(i.a),m.Xb(n.f),m.Xb(l.a),m.Xb(b.a),m.Xb(u.a),m.Xb(s.a))},t.\u0275cmp=m.Rb({type:t,selectors:[["app-preview"]],decls:66,vars:12,consts:[[1,"p-0"],[1,"mb-0"],[1,"card-title-text"],[1,""],["fxLayout","row wrap",1,"mt-16"],["fxFlex","100","fxFlex.gt-xs","90",1,"pr-1"],[1,"ml-16","primary-txt-color"],[1,"ml-40"],[1,"ml-16"],["fxFlex","100","fxFlex.gt-xs","10",1,"text-right"],["mat-button","","color","primary",3,"click",4,"ngIf"],[3,"formGroup"],["border","1","cellspacing","0","formArrayName","marks",1,"mat-table","mt-12","mark-entry-view"],[1,"mat-header-row"],[1,"mat-header-cell","pl-8","text-left",2,"width","10%"],[1,"mat-header-cell","pl-8","pt-3","text-left",2,"width","30%"],[1,"mat-header-cell","text-center","pt-3",2,"width","5%"],[1,"mat-header-cell","text-center",2,"width","10%"],[1,"mat-header-cell","text-center","pt-3",2,"width","10%"],["class","mat-row",3,"formGroupName",4,"ngFor","ngForOf"],[1,"example-button-row","mt-16"],["mat-raised-button","","color","primary",1,"btn-primary-bg","ml-0",3,"click"],["mat-button","","color","primary",3,"click"],[1,"material-icons"],[1,"mat-row",3,"formGroupName"],[1,"mat-cell","pl-8"],["formControlName","roll_number","readonly","",2,"display","none"],["formControlName","admission_no","readonly","",2,"display","none"],["formControlName","student_name","readonly","",2,"display","none"],["formControlName","student_id","readonly","",2,"display","none"],[1,"mat-cell","text-center"],["formControlName","is_absent"],["formControlName","mark_entry_id","readonly","",2,"display","none"],["formControlName","mark","readonly","",2,"display","none"],["formControlName","grade_template_particular_id","readonly","",2,"display","none"],["formControlName","remark","readonly","",2,"display","none"]],template:function(t,e){1&t&&(m.dc(0,"mat-card",0),m.dc(1,"mat-card-title",1),m.dc(2,"div",2),m.cd(3,"View Mark"),m.cc(),m.cc(),m.Yb(4,"mat-divider"),m.dc(5,"mat-card-content"),m.dc(6,"div",3),m.dc(7,"div",4),m.dc(8,"div",5),m.dc(9,"label"),m.dc(10,"strong"),m.cd(11,"Exam"),m.cc(),m.cc(),m.dc(12,"label",6),m.dc(13,"strong"),m.cd(14),m.cc(),m.cc(),m.dc(15,"label",7),m.dc(16,"strong"),m.cd(17,"Academic Year"),m.cc(),m.cc(),m.dc(18,"label",8),m.cd(19),m.cc(),m.dc(20,"label",7),m.dc(21,"strong"),m.cd(22,"Batch"),m.cc(),m.cc(),m.dc(23,"label",8),m.cd(24),m.cc(),m.dc(25,"label",7),m.dc(26,"strong"),m.cd(27,"Class"),m.cc(),m.cc(),m.dc(28,"label",8),m.cd(29),m.cc(),m.dc(30,"label",7),m.dc(31,"strong"),m.cd(32,"Section"),m.cc(),m.cc(),m.dc(33,"label",8),m.cd(34),m.cc(),m.dc(35,"label",7),m.dc(36,"strong"),m.cd(37,"Subject"),m.cc(),m.cc(),m.dc(38,"label",8),m.cd(39),m.cc(),m.cc(),m.dc(40,"div",9),m.ad(41,w,3,0,"button",10),m.cc(),m.cc(),m.dc(42,"form",11),m.dc(43,"table",12),m.dc(44,"thead"),m.dc(45,"tr",13),m.dc(46,"th",14),m.cd(47,"Roll No"),m.cc(),m.dc(48,"th",14),m.cd(49,"Admn No"),m.cc(),m.dc(50,"th",15),m.cd(51,"Student Name"),m.cc(),m.dc(52,"th",16),m.cd(53,"Is Absent?"),m.cc(),m.dc(54,"th",17),m.cd(55,"Score"),m.Yb(56,"br"),m.dc(57,"small"),m.cd(58),m.cc(),m.cc(),m.dc(59,"th",18),m.cd(60,"Remarks"),m.cc(),m.cc(),m.cc(),m.dc(61,"tbody"),m.ad(62,y,21,6,"tr",19),m.cc(),m.cc(),m.cc(),m.cc(),m.dc(63,"div",20),m.dc(64,"button",21),m.lc("click",(function(t){return e.dialogRef.close()})),m.cd(65,"Discard"),m.cc(),m.cc(),m.cc(),m.cc()),2&t&&(m.Gb(14),m.dd(""==(null==e.markTitle?null:e.markTitle.assesment_name)?null==e.markTitle?null:e.markTitle.term_name:null==e.markTitle?null:e.markTitle.assesment_name),m.Gb(5),m.dd(null==e.markTitle?null:e.markTitle.academic_year_name),m.Gb(5),m.dd(null==e.markTitle?null:e.markTitle.batch_name),m.Gb(5),m.dd(null==e.markTitle?null:e.markTitle.class),m.Gb(5),m.dd(null==e.markTitle?null:e.markTitle.section),m.Gb(5),m.dd(null==e.markTitle?null:e.markTitle.subject_name),m.Gb(2),m.yc("ngIf",e.permission.hasPermission(m.Ec(10,_),m.Ec(11,x))),m.Gb(1),m.yc("formGroup",e.markForm),m.Gb(16),m.ed("(",null==e.markTitle?null:e.markTitle.exam_mark,")"),m.Gb(4),m.yc("ngForOf",e.markForm.get("marks").controls))},directives:[f.a,f.f,h.a,f.c,p.c,p.a,g.o,n.D,n.u,n.k,n.e,g.n,v.a,n.l,n.c,n.t,n.i,k.a],styles:["th[_ngcontent-%COMP%]{color:#000!important;font-weight:600!important;background:hsla(0,0%,50.2%,.30196078431372547)}table[_ngcontent-%COMP%]{border-color:hsla(0,0%,50.2%,.30196078431372547)}.top[_ngcontent-%COMP%]{vertical-align:text-top}.pr-70[_ngcontent-%COMP%]{padding-right:70px}td[_ngcontent-%COMP%]:nth-child(5){background-color:#f5f5f5}td[_ngcontent-%COMP%]:nth-child(6){background-color:#c6e0ed}.text-center[_ngcontent-%COMP%]{text-align:center!important}.ml-0[_ngcontent-%COMP%]{margin-left:0!important}mat-card[_ngcontent-%COMP%]{height:500px;overflow-y:scroll}"]}),t}()},qJGU:function(t,e,c){"use strict";c.d(e,"a",(function(){return M}));var a=c("Gg3P"),n=c("+Gt9"),r=c("Olgc"),i=c("tk/3"),o=c("qc5V"),d=c("0IaG"),l=c("VxG0"),s=c("fXoL"),m=c("tyNb"),u=c("Wp6s"),b=c("f0Cb"),f=c("XiUz"),h=c("ofXK"),p=c("bTqV");function g(t,e){if(1&t){var c=s.ec();s.dc(0,"button",21),s.lc("click",(function(t){return s.Sc(c),s.pc().download()})),s.dc(1,"i",22),s.cd(2," cloud_download "),s.cc(),s.cc()}}function v(t,e){if(1&t&&(s.dc(0,"th",16),s.cd(1),s.cc()),2&t){var c=e.$implicit;s.Gb(1),s.dd(null==c?null:c.subject_name)}}function k(t,e){if(1&t&&(s.dc(0,"th",16),s.cd(1),s.cc()),2&t){var c=e.$implicit;s.Gb(1),s.ed("(",null==c?null:c.mark,")")}}function w(t,e){if(1&t&&(s.dc(0,"td",24),s.cd(1),s.cc()),2&t){var c=e.$implicit;s.Gb(1),s.dd(c)}}function y(t,e){if(1&t&&(s.dc(0,"tr",23),s.dc(1,"td",24),s.cd(2),s.cc(),s.dc(3,"td",24),s.cd(4),s.cc(),s.dc(5,"td",24),s.cd(6),s.cc(),s.ad(7,w,2,1,"td",25),s.dc(8,"td",24),s.cd(9),s.qc(10,"number"),s.cc(),s.dc(11,"td",24),s.cd(12),s.cc(),s.dc(13,"td",24),s.cd(14),s.cc(),s.cc()),2&t){var c=e.$implicit,a=s.pc();s.Gb(2),s.dd(null==c?null:c.roll_number),s.Gb(2),s.dd(null==c?null:c.admission_no),s.Gb(2),s.dd(null==c?null:c.student_name),s.Gb(1),s.yc("ngForOf",null==c?null:c.result),s.Gb(2),s.dd(s.sc(10,7,a.getScore(null==c?null:c.result),"1.2-2")),s.Gb(3),s.dd(null==c?null:c.grade),s.Gb(2),s.dd(null==c?null:c.remark)}}var _=function(){return["mark_entry"]},x=function(){return["mark_entry_download"]},M=function(){var t=function(){return _createClass((function t(e,c,a,n,r,i,o,d){_classCallCheck(this,t),this.data=e,this.dialogRef=c,this.modelService=a,this.activatedRoute=n,this.apiserv=r,this.loader=i,this.toaster=o,this.permission=d,this.mark=[],this.assessmentName="",console.log(this.data,"dataaaa"),this.forViewExamMark=JSON.parse(localStorage.getItem("forViewExamMark")),this.termId=this.data.termId}),[{key:"ngOnInit",value:function(){this.getTableHeaders(),this.getAssesmentView()}},{key:"getTableHeaders",value:function(){var t=this;this.modelService.getTermBasedTableHeaders(this.termId).subscribe((function(e){"success"==e.keyword&&(t.tableHeaders=e.data,t.tableHeaders.forEach((function(e){var c;t.mark.push(null===(c=e)||void 0===c?void 0:c.mark)})),console.log(t.tableHeaders," table headers"))}))}},{key:"getAssesmentView",value:function(){var t,e,c,a,n=this;this.modelService.getTermBasedAssignmentView(null===(t=this.forViewExamMark)||void 0===t?void 0:t.academic_year_id,null===(e=this.forViewExamMark)||void 0===e?void 0:e.batch_id,null===(c=this.forViewExamMark)||void 0===c?void 0:c.class_id,null===(a=this.forViewExamMark)||void 0===a?void 0:a.section_id,this.termId).subscribe((function(t){"success"==t.keyword&&(n.tableData=t.data[0].list,n.assessmentName=t.data[0].term_name,console.log(n.tableData,"assesment view"))}))}},{key:"getScore",value:function(t){var e=[];return t.forEach((function(t){e.push("AB"==t?0:t)})),e.reduce((function(t,e){return Number(t)+Number(e)||0}),0)}},{key:"getTotalScore",value:function(){return this.mark.reduce((function(t,e){return Number(t)+Number(e)||0}),0)}},{key:"download",value:function(){var t,e,c,a,n=this;this.loader.open(),this.apiserv.downloadFile("termView/".concat(null===(t=this.forViewExamMark)||void 0===t?void 0:t.academic_year_id,"/").concat(null===(e=this.forViewExamMark)||void 0===e?void 0:e.batch_id,"/").concat(null===(c=this.forViewExamMark)||void 0===c?void 0:c.class_id,"/").concat(null===(a=this.forViewExamMark)||void 0===a?void 0:a.section_id,"/").concat(this.termId,"/1"),{fileName:"MarkEntry"}).subscribe((function(t){var e,c;switch(t.type){case i.d.DownloadProgress:n.loader.close();break;case i.d.Response:var a=new Blob([t.body],{type:t.body.type}),r=document.createElement("a");r.setAttribute("style","display:none;"),document.body.appendChild(r),r.download="".concat(n.assessmentName,"-").concat(null===(e=n.forViewExamMark)||void 0===e?void 0:e.class,"-").concat(null===(c=n.forViewExamMark)||void 0===c?void 0:c.section),r.href=URL.createObjectURL(a),r.target="_blank",r.click(),document.body.removeChild(r),n.loader.close()}}))}}])}();return t.\u0275fac=function(e){return new(e||t)(s.Xb(d.a),s.Xb(d.f),s.Xb(n.a),s.Xb(m.a),s.Xb(o.a),s.Xb(a.a),s.Xb(r.a),s.Xb(l.a))},t.\u0275cmp=s.Rb({type:t,selectors:[["app-view"]],decls:66,vars:12,consts:[[1,"py-0","px-16"],[1,"mb-0"],[1,"card-title-text"],[1,"py-16"],["fxLayout","row wrap",1,""],["fxFlex","100","fxFlex.gt-xs","80",1,"pr-1"],[1,"ml-16","primary-txt-color"],[1,"ml-40"],[1,"ml-16"],["fxFlex","100","fxFlex.gt-xs","20",1,"text-right"],["mat-button","","color","primary","class","ml-24",3,"click",4,"ngIf"],[1,"mat-table","mt-12","mark-entry-view"],[1,"mat-header-row"],["rowspan","2",1,"mat-header-cell","pl-12",2,"width","10%","text-align","left"],["rowspan","2",1,"mat-header-cell","pl-12",2,"width","16%","text-align","left"],["class","mat-header-cell text-center",4,"ngFor","ngForOf"],[1,"mat-header-cell","text-center"],["rowspan","2",1,"mat-header-cell","text-center","px-16"],["class","mat-row",4,"ngFor","ngForOf"],[1,"example-button-row","mb-12"],["mat-raised-button","","color","primary",1,"btn-primary-bg",2,"margin-bottom","10px","cursor","pointer",3,"click"],["mat-button","","color","primary",1,"ml-24",3,"click"],[1,"material-icons"],[1,"mat-row"],[1,"mat-cell"],["class","mat-cell",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(s.dc(0,"mat-card",0),s.dc(1,"mat-card-title",1),s.dc(2,"div",2),s.cd(3,"View Mark"),s.cc(),s.cc(),s.Yb(4,"mat-divider"),s.dc(5,"mat-card-content"),s.dc(6,"div",3),s.dc(7,"div",4),s.dc(8,"div",5),s.dc(9,"label"),s.dc(10,"strong"),s.cd(11,"Exam"),s.cc(),s.cc(),s.dc(12,"label",6),s.dc(13,"strong"),s.cd(14),s.cc(),s.cc(),s.dc(15,"label",7),s.dc(16,"strong"),s.cd(17,"Academic Year"),s.cc(),s.cc(),s.dc(18,"label",8),s.cd(19),s.cc(),s.dc(20,"label",7),s.dc(21,"strong"),s.cd(22,"Batch"),s.cc(),s.cc(),s.dc(23,"label",8),s.cd(24),s.cc(),s.dc(25,"label",7),s.dc(26,"strong"),s.cd(27,"Class"),s.cc(),s.cc(),s.dc(28,"label",8),s.cd(29),s.cc(),s.dc(30,"label",7),s.dc(31,"strong"),s.cd(32,"Section"),s.cc(),s.cc(),s.dc(33,"label",8),s.cd(34),s.cc(),s.cc(),s.dc(35,"div",9),s.ad(36,g,3,0,"button",10),s.cc(),s.cc(),s.dc(37,"table",11),s.dc(38,"thead"),s.dc(39,"tr",12),s.dc(40,"th",13),s.cd(41,"Roll No"),s.cc(),s.dc(42,"th",13),s.cd(43,"Admn.No"),s.cc(),s.dc(44,"th",14),s.cd(45,"Student Name"),s.cc(),s.ad(46,v,2,1,"th",15),s.dc(47,"th",16),s.cd(48,"Score"),s.cc(),s.dc(49,"th",17),s.dc(50,"b"),s.cd(51,"Grade"),s.Yb(52,"br"),s.dc(53,"small"),s.cd(54,"(A,B,C,D,E,F)"),s.cc(),s.cc(),s.cc(),s.dc(55,"th",17),s.cd(56,"Remarks"),s.cc(),s.cc(),s.dc(57,"tr",12),s.ad(58,k,2,1,"th",15),s.dc(59,"th",16),s.cd(60),s.cc(),s.cc(),s.cc(),s.dc(61,"tbody"),s.ad(62,y,15,10,"tr",18),s.cc(),s.cc(),s.cc(),s.dc(63,"div",19),s.dc(64,"button",20),s.lc("click",(function(t){return e.dialogRef.close()})),s.cd(65,"Discard"),s.cc(),s.cc(),s.cc(),s.cc()),2&t&&(s.Gb(14),s.ed(" ",e.assessmentName,""),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.academic_year_name),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.batch_name),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.class),s.Gb(5),s.dd(null==e.forViewExamMark?null:e.forViewExamMark.section),s.Gb(2),s.yc("ngIf",e.permission.hasPermission(s.Ec(10,_),s.Ec(11,x))),s.Gb(10),s.yc("ngForOf",e.tableHeaders),s.Gb(12),s.yc("ngForOf",e.tableHeaders),s.Gb(2),s.ed("(",e.getTotalScore(),")"),s.Gb(2),s.yc("ngForOf",e.tableData))},directives:[u.a,u.f,b.a,u.c,f.c,f.a,h.o,h.n,p.a],pipes:[h.f],styles:["mat-divider[_ngcontent-%COMP%]{margin-left:0!important}mat-card-footer[_ngcontent-%COMP%]{padding:15px 0!important}h4[_ngcontent-%COMP%]{font-size:14px}.card-title-text[_ngcontent-%COMP%]{padding:5px 0!important}th[_ngcontent-%COMP%]{width:10%;color:#000!important;font-weight:600!important;background:hsla(0,0%,50.2%,.30196078431372547)}table[_ngcontent-%COMP%]{border-color:hsla(0,0%,50.2%,.30196078431372547)}td[_ngcontent-%COMP%]{text-align:center!important;white-space:nowrap;border:1px solid hsla(0,0%,80%,.4588235294117647)!important;background-color:#f5f5f5}th[_ngcontent-%COMP%]{border:1px solid rgba(164,153,153,.4588235294117647)!important}.mat-header-cell[_ngcontent-%COMP%]{padding-top:4px!important}tr.mat-header-row[_ngcontent-%COMP%]{height:unset!important}table.mat-table[_ngcontent-%COMP%]{border-spacing:0}td[_ngcontent-%COMP%]:first-child, td[_ngcontent-%COMP%]:nth-child(2), td[_ngcontent-%COMP%]:nth-child(3){text-align:left!important;padding-left:12px;background-color:unset!important}.text-center[_ngcontent-%COMP%]{text-align:center!important}mat-card[_ngcontent-%COMP%]{height:500px;overflow-y:scroll}"]}),t}()}}]);
/var/www/krbed.in/../../www/../www/html/../school_portal_admin/32-es5.96c08f0e73648e5427d2.js