text: (window.webpackJsonp=window.webpackJsonp||[]).push([[49],{h7qe:function(l,n,u){"use strict";u.r(n);var t=u("8Y7J");class e{}var b=u("pMnS"),s=u("SVse"),i=u("oBZk"),r=u("ZZ/e"),a=u("mrSG"),o=u("VSgI");class c{constructor(l){this.resultService=l,this.resultData=[],this.totalUnits=0,this.emptySpace="  "}ngOnInit(){this.resultService.getTestResults().subscribe(l=>{this.resultData=this.getCummulative(l.results),console.log(this.resultData),this.userData=l.userData})}printResult(){return a.b(this,void 0,void 0,(function*(){window.print()}))}calculateCreditPoint(l,n){return l*n}getCummulative(l){return l.map(l=>({session:l.session,semester:l.semester,data:l.data,upload_date:l.upload_date}))}getUnit(){}}var p=t.qb({encapsulation:0,styles:[[".info[_ngcontent-%COMP%]{text-align:center;font-weight:700;padding:0,;margin:0}.result[_ngcontent-%COMP%]{padding-right:7em}tr.noBorder[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:0}ul[_ngcontent-%COMP%]{display:-webkit-box;display:flex;list-style:none}"]],data:{}});function d(l){return t.Nb(0,[(l()(),t.sb(0,0,null,null,13,"tr",[],null,null,null,null,null)),(l()(),t.sb(1,0,null,null,1,"th",[["scope","row"]],null,null,null,null,null)),(l()(),t.Lb(2,null,["",""])),(l()(),t.sb(3,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Lb(4,null,["",""])),(l()(),t.sb(5,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Lb(6,null,["",""])),(l()(),t.sb(7,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Lb(8,null,["",""])),(l()(),t.sb(9,0,null,null,1,"td",[],null,null,null,null,null)),(l()(),t.Lb(10,null,["",""])),(l()(),t.sb(11,0,null,null,2,"td",[],null,null,null,null,null)),(l()(),t.Lb(12,null,["",""])),t.Hb(13,1)],null,(function(l,n){l(n,2,0,null==n.context.$implicit?null:n.context.$implicit.course_code),l(n,4,0,null==n.context.$implicit?null:n.context.$implicit.title),l(n,6,0,null==n.context.$implicit?null:n.context.$implicit.unit),l(n,8,0,null==n.context.$implicit?null:n.context.$implicit.result_type),l(n,10,0,null==n.context.$implicit?null:n.context.$implicit.result.score);var u=t.Mb(n,12,0,l(n,13,0,t.Eb(n.parent.parent,1),null==n.context.$implicit?null:n.context.$implicit.result.updatedAt));l(n,12,0,u)}))}function h(l){return t.Nb(0,[(l()(),t.sb(0,0,null,null,28,"div",[["class","table-responsive-sm"]],null,null,null,null,null)),(l()(),t.sb(1,0,null,null,25,"table",[["class","table table-sm table-striped table-sm"]],null,null,null,null,null)),(l()(),t.sb(2,0,null,null,22,"thead",[],null,null,null,null,null)),(l()(),t.sb(3,0,null,null,8,"tr",[],null,null,null,null,null)),(l()(),t.sb(4,0,null,null,2,"th",[["colspan","2"]],null,null,null,null,null)),(l()(),t.Lb(5,null,["PROGRAM: ",""])),t.Hb(6,1),(l()(),t.sb(7,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Lb(8,null,["ACADEMIC YEAR: ",""])),(l()(),t.sb(9,0,null,null,2,"th",[["colspan","2"]],null,null,null,null,null)),(l()(),t.Lb(10,null,["SEMESTER: ",""])),t.Hb(11,1),(l()(),t.sb(12,0,null,null,12,"tr",[["class","thead-light"]],null,null,null,null,null)),(l()(),t.sb(13,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Lb(-1,null,["COURSE CODE"])),(l()(),t.sb(15,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Lb(-1,null,["COURSE TITLE"])),(l()(),t.sb(17,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Lb(-1,null,["UNIT"])),(l()(),t.sb(19,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Lb(-1,null,["TYPE"])),(l()(),t.sb(21,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Lb(-1,null,["SCORE"])),(l()(),t.sb(23,0,null,null,1,"th",[],null,null,null,null,null)),(l()(),t.Lb(-1,null,["DATE"])),(l()(),t.hb(16777216,null,null,1,null,d)),t.rb(26,278528,null,0,s.l,[t.N,t.K,t.q],{ngForOf:[0,"ngForOf"]},null),(l()(),t.sb(27,0,null,null,0,"br",[],null,null,null,null,null)),(l()(),t.sb(28,0,null,null,0,"br",[],null,null,null,null,null))],(function(l,n){l(n,26,0,n.context.$implicit.data)}),(function(l,n){var u=n.component,e=t.Mb(n,5,0,l(n,6,0,t.Eb(n.parent,0),null==u.userData?null:u.userData.department));l(n,5,0,e),l(n,8,0,null==n.context.$implicit?null:n.context.$implicit.session);var b=t.Mb(n,10,0,l(n,11,0,t.Eb(n.parent,0),null==n.context.$implicit?null:n.context.$implicit.semester));l(n,10,0,b)}))}function m(l){return t.Nb(0,[t.Gb(0,s.u,[]),t.Gb(0,s.e,[t.s]),(l()(),t.sb(2,0,null,null,17,"ion-header",[],null,null,null,i.bb,i.o)),t.rb(3,49152,null,0,r.A,[t.h,t.k,t.x],null,null),(l()(),t.sb(4,0,null,0,15,"ion-toolbar",[],null,null,null,i.zb,i.M)),t.rb(5,49152,null,0,r.Bb,[t.h,t.k,t.x],null,null),(l()(),t.sb(6,0,null,0,4,"ion-buttons",[["slot","start"]],null,null,null,i.Q,i.d)),t.rb(7,49152,null,0,r.k,[t.h,t.k,t.x],null,null),(l()(),t.sb(8,0,null,0,2,"ion-back-button",[["defaultHref","/undergraduate/home"]],null,[[null,"click"]],(function(l,n,u){var e=!0;return"click"===n&&(e=!1!==t.Eb(l,10).onClick(u)&&e),e}),i.O,i.b)),t.rb(9,49152,null,0,r.f,[t.h,t.k,t.x],{defaultHref:[0,"defaultHref"]},null),t.rb(10,16384,null,0,r.g,[[2,r.hb],r.Hb],{defaultHref:[0,"defaultHref"]},null),(l()(),t.sb(11,0,null,0,5,"ion-buttons",[["slot","primary"]],null,null,null,i.Q,i.d)),t.rb(12,49152,null,0,r.k,[t.h,t.k,t.x],null,null),(l()(),t.sb(13,0,null,0,3,"ion-button",[],null,[[null,"click"]],(function(l,n,u){var t=!0;return"click"===n&&(t=!1!==l.component.printResult()&&t),t}),i.P,i.c)),t.rb(14,49152,null,0,r.j,[t.h,t.k,t.x],null,null),(l()(),t.sb(15,0,null,0,1,"ion-icon",[["name","print"]],null,null,null,i.cb,i.p)),t.rb(16,49152,null,0,r.B,[t.h,t.k,t.x],{name:[0,"name"]},null),(l()(),t.sb(17,0,null,0,2,"ion-title",[],null,null,null,i.yb,i.L)),t.rb(18,49152,null,0,r.zb,[t.h,t.k,t.x],null,null),(l()(),t.Lb(-1,0,["Integrated Data Centre"])),(l()(),t.sb(20,0,null,null,22,"ion-content",[],null,null,null,i.X,i.k)),t.rb(21,49152,null,0,r.t,[t.h,t.k,t.x],null,null),(l()(),t.sb(22,0,null,0,20,"ion-grid",[],null,null,null,i.ab,i.n)),t.rb(23,49152,null,0,r.z,[t.h,t.k,t.x],null,null),(l()(),t.sb(24,0,null,0,18,"ion-row",[],null,null,null,i.ob,i.B)),t.rb(25,49152,null,0,r.ib,[t.h,t.k,t.x],null,null),(l()(),t.sb(26,0,null,0,16,"ion-col",[["offset-sm","2"],["size","12"],["size-sm","8"]],null,null,null,i.W,i.j)),t.rb(27,49152,null,0,r.s,[t.h,t.k,t.x],{size:[0,"size"]},null),(l()(),t.sb(28,0,null,0,14,"div",[],null,null,null,null,null)),(l()(),t.sb(29,0,null,null,11,"div",[],null,null,null,null,null)),(l()(),t.sb(30,0,null,null,1,"h2",[["class","info"]],null,null,null,null,null)),(l()(),t.Lb(-1,null,["AIR FORCE INSTITUTE OF TECHNOLOGY"])),(l()(),t.sb(32,0,null,null,2,"h2",[["class","info"]],null,null,null,null,null)),(l()(),t.Lb(33,null,["DEPARTMENT OF ",""])),t.Hb(34,1),(l()(),t.sb(35,0,null,null,2,"h2",[["class","info"]],null,null,null,null,null)),(l()(),t.Lb(36,null,["",""])),t.Hb(37,1),(l()(),t.sb(38,0,null,null,2,"h2",[["class","info"]],null,null,null,null,null)),(l()(),t.Lb(39,null,["",""])),t.Hb(40,1),(l()(),t.hb(16777216,null,null,1,null,h)),t.rb(42,278528,null,0,s.l,[t.N,t.K,t.q],{ngForOf:[0,"ngForOf"]},null)],(function(l,n){var u=n.component;l(n,9,0,"/undergraduate/home"),l(n,10,0,"/undergraduate/home"),l(n,16,0,"print"),l(n,27,0,"12"),l(n,42,0,u.resultData)}),(function(l,n){var u=n.component,e=t.Mb(n,33,0,l(n,34,0,t.Eb(n,0),null==u.userData?null:u.userData.department));l(n,33,0,e);var b=t.Mb(n,36,0,l(n,37,0,t.Eb(n,0),null==u.userData?null:u.userData.name));l(n,36,0,b);var s=t.Mb(n,39,0,l(n,40,0,t.Eb(n,0),null==u.userData?null:u.userData.matric_no));l(n,39,0,s)}))}function f(l){return t.Nb(0,[(l()(),t.sb(0,0,null,null,1,"app-test-result",[],null,null,null,m,p)),t.rb(1,114688,null,0,c,[o.a],null,null)],(function(l,n){l(n,1,0)}),null)}var g=t.ob("app-test-result",c,f,{},{},[]),x=u("s7LF"),C=u("iInd");class k{}u.d(n,"TestResultPageModuleNgFactory",(function(){return v}));var v=t.pb(e,[],(function(l){return t.Bb([t.Cb(512,t.j,t.ab,[[8,[b.a,g]],[3,t.j],t.v]),t.Cb(4608,s.o,s.n,[t.s,[2,s.B]]),t.Cb(4608,x.p,x.p,[]),t.Cb(4608,r.b,r.b,[t.x,t.g]),t.Cb(4608,r.Gb,r.Gb,[r.b,t.j,t.p]),t.Cb(4608,r.Jb,r.Jb,[r.b,t.j,t.p]),t.Cb(1073742336,s.c,s.c,[]),t.Cb(1073742336,x.o,x.o,[]),t.Cb(1073742336,x.g,x.g,[]),t.Cb(1073742336,r.Db,r.Db,[]),t.Cb(1073742336,C.p,C.p,[[2,C.u],[2,C.m]]),t.Cb(1073742336,k,k,[]),t.Cb(1073742336,e,e,[]),t.Cb(1024,C.k,(function(){return[[{path:"",component:c}]]}),[])])}))}}]);