Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.116.118.214
(window.webpackJsonp=window.webpackJsonp||[]).push([[34,307],{1174:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(100),o=r(101),c=r(103),i=r(102),l=r(104),u=r(2),s=r.n(u),f=r(941),d=r(1377),p=r(1343),h=r(272),m=r(1335),v=r(1337),y=r(316),g=r(1374),b=r(726),E=r(420),w=r(105),j=r(267),O=r(510),x=r(274),L=r(273),N=r(399);function S(){S=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),i=new T(n||[]);return a(c,"_invoke",{value:N(e,r,i)}),c}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var E={};u(E,c,function(){return this});var w=Object.getPrototypeOf,j=w&&w(w(z([])));j&&j!==r&&n.call(j,c)&&(E=j);var O=b.prototype=y.prototype=Object.create(E);function x(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function L(e,t){function r(a,o,c,i){var l=f(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){u.value=e,c(u)},function(e){return r("throw",e,c,i)})}i(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function N(t,r,n){var a=d;return function(o,c){if(a===h)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var l=C(i,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var u=f(t,r,n);if("normal"===u.type){if(a=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=m,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function z(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return g.prototype=b,a(O,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},x(L.prototype),u(L.prototype,i,function(){return this}),t.AsyncIterator=L,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new L(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},x(O),u(O,l,"Generator"),u(O,c,function(){return this}),u(O,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=z,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return i.type="throw",i.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],i=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var l=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:z(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var C=function(e){function t(){var e,r;Object(a.a)(this,t);for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return(r=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(l)))).state={fstudydeg:"",displayTbl:!1,studyExamno:"",studySubject:"",file:null,size:null,filenm:null,fileinfo:!1},r.fileInputRef=s.a.createRef(),r.getDegrees=function(e,t){r.setState({frmDeggrp:t.value})},r.handleChangedeg=function(){var e=Object(n.a)(S().mark(function e(t,n){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.fetchexamno(n.value);case 2:r.setState({fstudydeg:n.value,studyExamno:"",studySubject:""});case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeexm=function(){var e=Object(n.a)(S().mark(function e(t,n){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.fetchsub(n.value,r.state.fstudydeg);case 2:r.setState({studyExamno:n.value,studySubject:""});case 3:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangesub=function(){var e=Object(n.a)(S().mark(function e(t,n){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({studySubject:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleSubmit=function(){var e=r.props.user.fdeggrp,t=r.state,n=t.reportType,a=t.fdeggrpfrm,o=t.fdeggrpto,c=t.fcollfrm,i=t.fcollto;if(""!==e)r.props.getReport(n,"tables",e,a,o,c,i),r.setState({displayTbl:!0});else{r.props.showError({header:"Error",content:"Select Degree Group"})}},r.handleReport=function(){var e=r.props.user.fdeggrp,t=r.state,n=t.reportType,a=t.fdeggrpfrm,o=t.fdeggrpto,c=t.fcollfrm,i=t.fcollto;if(""!==e)window.open(x.c+n+"&univcode="+r.props.univcode+"°grp="+e+"°grpfrm="+a+"°grpto="+o+"&collfrm="+c+"&collto="+i+"&val="+n+"&format=PDF","_blank");else{r.props.showError({header:"Error",content:"Select Degree Group"})}},r.handleCancel=function(){r.setState({reportType:"",fdeggrpfrm:"0",fdeggrpto:"zzzzz",fcollfrm:"0",fcollto:"zzzzz",reportFormat:"",frmDeggrp:""}),r.fileInputRef.current.value=""},r.fileChange=function(e){if(void 0!==e.target.files[0]){var t=e.target.files[0].size,n=e.target.files[0].name.split(".").pop();if("pdf"===(n=n.toLowerCase()))if(t>=3e7){r.props.showError({header:"Error",content:"Upload files with size less then 30MB!"})}else r.props.qpFileUpload(e.target.files[0]),r.setState({file:e.target.files[0],size:Object(L.a)(e.target.files[0].size),filenm:e.target.files[0].name});else{r.props.showError({header:"Error",content:"PDF files are allowed!"})}}},r.renderHeader=function(){return s.a.createElement(d.a.Header,{style:{display:"flex"}},s.a.createElement("h3",null,"Upload Study Material"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(f.a,{to:"/studymaterial"},s.a.createElement(p.a,{basic:!0,color:"black",icon:"angle double left",content:"Back"})),s.a.createElement(p.a,{basic:!0,color:"black",icon:"ban",onClick:r.handleCancel,content:"Cancel"}),s.a.createElement(f.a,{to:"/dashboard"},s.a.createElement(p.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r.renderForm=function(){var e=r.state,t=e.displayTbl,n=e.studyExamno,a=e.fstudydeg,o=e.studySubject,c=e.uploadchapter,i=e.uploadteacher,l=r.props.degreeList.map(function(e){return{value:e.fdegree,text:"".concat(e.fdegree," ").concat(e.fdescpn)}}),u=r.props.examno.map(function(e){return{value:e.fexamno,text:" ".concat(e.fexamname)}}),f=r.props.Subject.map(function(e){return{value:e.fsubcode,text:" ".concat(e.fsubname)}}),w=Object(L.i)();return s.a.createElement("div",{className:"animated fadeIn"},s.a.createElement(d.a,{fluid:!0},s.a.createElement(d.a.Content,null,r.renderHeader(),s.a.createElement(h.a,null),s.a.createElement(d.a.Description,{style:{overflowY:"auto",height:"".concat(w,"px")}},s.a.createElement("div",{className:"col-md-6"},s.a.createElement(m.a,null,s.a.createElement("div",null,s.a.createElement(m.a.Group,null,s.a.createElement(m.a.Field,{width:16},s.a.createElement("label",null,"Degree"),s.a.createElement(v.a,{placeholder:"Select Degree",name:"deg",value:a,selection:!0,search:!0,options:l,onChange:r.handleChangedeg})))),s.a.createElement(m.a.Group,null,s.a.createElement(m.a.Field,{width:16},s.a.createElement("label",null,"Exam No."),s.a.createElement(v.a,{placeholder:"Select Exam No.",name:"exmno",value:n,selection:!0,search:!0,options:u,onChange:r.handleChangeexm}))),s.a.createElement(m.a.Group,null,s.a.createElement(m.a.Field,{width:16},s.a.createElement("label",null,"Subject"),s.a.createElement(v.a,{placeholder:"Select Subject",name:"sub",value:o,selection:!0,search:!0,options:f,onChange:r.handleChangesub}))),s.a.createElement(m.a.Group,null,s.a.createElement(m.a.Field,{width:16},s.a.createElement(m.a.Input,{placeholder:"Chapter / Lesson",value:c,label:"Chapter / Lesson",name:"fcombdesc",onChange:r.handleChange}))),s.a.createElement(m.a.Group,null,s.a.createElement(m.a.Field,{width:16},s.a.createElement(m.a.Input,{placeholder:"Teacher Name",value:i,label:"Teacher Name",name:"fcombdesc",onChange:r.handleChange}))),s.a.createElement(y.a,{placeholder:!0,style:{height:"".concat(.4*w,"px"),overflowY:"auto"}},s.a.createElement(g.a,{icon:!0},s.a.createElement(b.a,{name:"file pdf outline"}),"Upload the PDF file here.",s.a.createElement("br",null),"Note: File should be in PDF format and Max. size is 30MB"),s.a.createElement(m.a,{onSubmit:r.onFormSubmit},s.a.createElement("input",{ref:r.fileInputRef,type:"file",hidden:!0,onChange:r.fileChange}),s.a.createElement(p.a,{primary:!0,onClick:function(){return r.fileInputRef.current.click()}},"Add Document")),s.a.createElement(E.a,{label:r.state.filenm,value:r.state.size})),s.a.createElement("br",null))),t?s.a.createElement(O.a,{reportdet:r.props.collegeReport}):null))))},r}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.props.getDegreeList()}},{key:"render",value:function(){return this.renderForm()}}]),t}(u.Component);t.default=Object(w.b)(function(e){return{deggrp:e.deggrp,collegeReport:e.collegeReport,univcode:e.univ.funivcode,user:e.user,degreeList:e.studyDegree,examno:e.studyExamno,Subject:e.studySubject}},{getDegreeList:N.c,fetchexamno:N.a,fetchsub:N.b,qpFileUpload:N.e,fetchDegGrp:j.j,getReport:j.t,showError:j.A})(C)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),c=r.n(o),i=r(2),l=r.n(i),u=r(349),s=r(613),f=r(611),d=r(269);function p(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,i=e.fitted,h=e.hidden,m=e.horizontal,v=e.inverted,y=e.section,g=e.vertical,b=c()("ui",Object(u.a)(n,"clearing"),Object(u.a)(i,"fitted"),Object(u.a)(h,"hidden"),Object(u.a)(m,"horizontal"),Object(u.a)(v,"inverted"),Object(u.a)(y,"section"),Object(u.a)(g,"vertical"),"divider",r),E=Object(s.a)(p,e),w=Object(f.a)(p,e);return l.a.createElement(w,a()({},E,{className:b}),d.a.isNil(t)?o:t)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},t.a=p},304:function(e,t,r){},316:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=(r(277),r(268)),c=r.n(o),i=r(2),l=r.n(i),u=r(349),s=r(613),f=r(611),d=r(269);function p(e){var t=e.children,r=e.className,n=e.compact,o=e.content,i=e.horizontal,h=e.piled,m=e.raised,v=e.size,y=e.stacked,g=c()("ui",v,Object(u.a)(n,"compact"),Object(u.a)(i,"horizontal"),Object(u.a)(h,"piled"),Object(u.a)(m,"raised"),Object(u.a)(y,"stacked"),"segments",r),b=Object(s.a)(p,e),E=Object(f.a)(p,e);return l.a.createElement(E,a()({},b,{className:g}),d.a.isNil(t)?o:t)}p.handledProps=["as","children","className","compact","content","horizontal","piled","raised","size","stacked"],p.propTypes={};var h=p;function m(e){var t=e.children,r=e.className,n=e.content,o=c()("inline",r),i=Object(s.a)(m,e),u=Object(f.a)(m,e);return l.a.createElement(u,a()({},i,{className:o}),d.a.isNil(t)?n:t)}m.handledProps=["as","children","className","content"],m.propTypes={};var v=m;function y(e){var t=e.attached,r=e.basic,n=e.children,o=e.circular,i=e.className,p=e.clearing,h=e.color,m=e.compact,v=e.content,g=e.disabled,b=e.floated,E=e.inverted,w=e.loading,j=e.placeholder,O=e.padded,x=e.piled,L=e.raised,N=e.secondary,S=e.size,C=e.stacked,k=e.tertiary,_=e.textAlign,T=e.vertical,z=c()("ui",h,S,Object(u.a)(r,"basic"),Object(u.a)(o,"circular"),Object(u.a)(p,"clearing"),Object(u.a)(m,"compact"),Object(u.a)(g,"disabled"),Object(u.a)(E,"inverted"),Object(u.a)(w,"loading"),Object(u.a)(j,"placeholder"),Object(u.a)(x,"piled"),Object(u.a)(L,"raised"),Object(u.a)(N,"secondary"),Object(u.a)(C,"stacked"),Object(u.a)(k,"tertiary"),Object(u.a)(T,"vertical"),Object(u.b)(t,"attached"),Object(u.b)(O,"padded"),Object(u.d)(_),Object(u.e)(b,"floated"),"segment",i),A=Object(s.a)(y,e),D=Object(f.a)(y,e);return l.a.createElement(D,a()({},A,{className:z}),d.a.isNil(n)?v:n)}y.handledProps=["as","attached","basic","children","circular","className","clearing","color","compact","content","disabled","floated","inverted","loading","padded","piled","placeholder","raised","secondary","size","stacked","tertiary","textAlign","vertical"],y.Group=h,y.Inline=v,y.propTypes={};t.a=y},399:function(e,t,r){"use strict";r.d(t,"c",function(){return i}),r.d(t,"a",function(){return l}),r.d(t,"b",function(){return u}),r.d(t,"e",function(){return s}),r.d(t,"d",function(){return f});var n=r(68),a=r(271),o=r(267);function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,c=Object.create(o.prototype),i=new T(n||[]);return a(c,"_invoke",{value:S(e,r,i)}),c}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",h="suspendedYield",m="executing",v="completed",y={};function g(){}function b(){}function E(){}var w={};s(w,i,function(){return this});var j=Object.getPrototypeOf,O=j&&j(j(z([])));O&&O!==r&&n.call(O,i)&&(w=O);var x=E.prototype=g.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function N(e,t){function r(a,o,c,i){var l=d(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,c,i)},function(e){r("throw",e,c,i)}):t.resolve(s).then(function(e){u.value=e,c(u)},function(e){return r("throw",e,c,i)})}i(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function S(t,r,n){var a=p;return function(o,c){if(a===m)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var l=C(i,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var u=d(t,r,n);if("normal"===u.type){if(a=n.done?v:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=v,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function z(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=E,a(x,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:b,configurable:!0}),b.displayName=s(E,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,s(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},L(N.prototype),s(N.prototype,l,function(){return this}),t.AsyncIterator=N,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new N(f(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},L(x),s(x,u,"Generator"),s(x,i,function(){return this}),s(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=z,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return i.type="throw",i.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],i=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var l=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(l&&u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return a(c.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;_(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:z(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var i=function(){return function(){var e=Object(n.a)(c().mark(function e(t,r){var n,i,l,u;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),e.next=3,a.a.get("app.php?a=StudyDegreeList&univcode="+n.univ.funivcode+"&fcollcode="+n.user.fcollcode);case 3:"object"!==typeof(i=e.sent).data?(l={header:"Error",content:"Something went wrong"},t(Object(o.A)(l))):-1===i.data.error_code?(u={header:"Error",content:i.data.data.msg},t(Object(o.A)(u))):t({type:"ALL_DEGREE_LIST",payload:i.data});case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},l=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,l,u,s;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n(),t.next=3,a.a.get("app.php?a=getexamno&univcode="+i.univ.funivcode+"°="+e);case 3:"object"!==typeof(l=t.sent).data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1===l.data.error_code?(s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s))):r({type:"STUDY_EXAMNO",payload:l.data});case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},u=function(e,t){return function(){var r=Object(n.a)(c().mark(function r(n,i){var l,u,s,f;return c().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return l=i(),r.next=3,a.a.get("app.php?a=getstudysub&univcode="+l.univ.funivcode+"°="+t+"&exmno="+e);case 3:"object"!==typeof(u=r.sent).data?(s={header:"Error",content:"Something went wrong"},n(Object(o.A)(s))):-1===u.data.error_code?(f={header:"Error",content:u.data.data.msg},n(Object(o.A)(f))):n({type:"STUDY_SUBJECT",payload:u.data});case 5:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()},s=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var o,i,l;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n(),r({type:"SET_LOADER"}),(i=new FormData).set("filefield",e,e.name),i.set("body",JSON.stringify(o.user)),t.next=7,a.a.post("upload_study_material.php",i,{headers:{"Content-type":"multipart/form-data"}});case 7:l=t.sent,r({type:"UNSET_LOADER"}),r({type:"SET_UPLOAD_DOC",payload:l.data});case 10:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},f=function(e,t,r,i){return function(){var e=Object(n.a)(c().mark(function e(n,l){var u,s,f,d;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=l(),e.next=3,a.a.get("app.php?a=getstudymat&univcode="+u.univ.funivcode+"&fstudydeg="+r+"&studyExamno="+t+"&studySubject="+i+"&fcollcode="+u.user.fcollcode);case 3:"object"!==typeof(s=e.sent).data?(f={header:"Error",content:"Something went wrong"},n(Object(o.A)(f))):-1===s.data.error_code?(d={header:"Error",content:s.data.data.msg},n(Object(o.A)(d))):n({type:"GET_STUDY_MATERIAL",payload:s.data});case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}},420:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=(r(277),r(268)),c=r.n(o),i=r(2),l=r.n(i),u=r(349),s=r(613),f=r(611),d=r(269),p=r(616),h=r(290),m=r.n(h);function v(e){var t=e.children,r=e.className,n=e.color,o=e.content,i=e.horizontal,p=e.inverted,h=e.items,y=e.size,g=e.widths,b=c()("ui",n,y,Object(u.a)(i,"horizontal"),Object(u.a)(p,"inverted"),Object(u.g)(g),"statistics",r),E=Object(s.a)(v,e),w=Object(f.a)(v,e);return d.a.isNil(t)?d.a.isNil(o)?l.a.createElement(w,a()({},E,{className:b}),m()(h,function(e){return O.create(e)})):l.a.createElement(w,a()({},E,{className:b}),o):l.a.createElement(w,a()({},E,{className:b}),t)}v.handledProps=["as","children","className","color","content","horizontal","inverted","items","size","widths"],v.propTypes={};var y=v;function g(e){var t=e.children,r=e.className,n=e.content,o=c()("label",r),i=Object(s.a)(g,e),u=Object(f.a)(g,e);return l.a.createElement(u,a()({},i,{className:o}),d.a.isNil(t)?n:t)}g.handledProps=["as","children","className","content"],g.propTypes={},g.create=Object(p.e)(g,function(e){return{content:e}});var b=g;function E(e){var t=e.children,r=e.className,n=e.content,o=e.text,i=c()(Object(u.a)(o,"text"),"value",r),p=Object(s.a)(E,e),h=Object(f.a)(E,e);return l.a.createElement(h,a()({},p,{className:i}),d.a.isNil(t)?n:t)}E.handledProps=["as","children","className","content","text"],E.propTypes={},E.create=Object(p.e)(E,function(e){return{content:e}});var w=E;function j(e){var t=e.children,r=e.className,n=e.color,o=e.content,i=e.floated,p=e.horizontal,h=e.inverted,m=e.label,v=e.size,y=e.text,g=e.value,E=c()("ui",n,v,Object(u.e)(i,"floated"),Object(u.a)(p,"horizontal"),Object(u.a)(h,"inverted"),"statistic",r),O=Object(s.a)(j,e),x=Object(f.a)(j,e);return d.a.isNil(t)?d.a.isNil(o)?l.a.createElement(x,a()({},O,{className:E}),w.create(g,{defaultProps:{text:y},autoGenerateKey:!1}),b.create(m,{autoGenerateKey:!1})):l.a.createElement(x,a()({},O,{className:E}),o):l.a.createElement(x,a()({},O,{className:E}),t)}j.handledProps=["as","children","className","color","content","floated","horizontal","inverted","label","size","text","value"],j.propTypes={},j.Group=y,j.Label=b,j.Value=w,j.create=Object(p.e)(j,function(e){return{content:e}});var O=t.a=j},510:function(e,t,r){"use strict";var n=r(100),a=r(101),o=r(103),c=r(102),i=r(104),l=r(2),u=r.n(l),s=r(1155),f=r(1338),d=r(105),p=r(267),h=(r(304),r(171),function(e){function t(){var e,r;Object(n.a)(this,t);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return(r=Object(o.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(i)))).state={studyMaterialList:[],searchVal:""},r.searchTable=function(e,t){var n=t.value,a=r.props.reportdet.filter(function(e){return Object.keys(e).some(function(t){return e[t].toLowerCase().includes(n.toLowerCase())})});r.setState({colgdet:a,searchVal:t.value})},r.renderTable=function(){var e=r.props.studyMaterialList;return u.a.createElement("div",{className:"mt-3"},u.a.createElement("hr",null),u.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},u.a.createElement(s.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:r.searchTable,value:r.state.searchVal,style:{fontSize:"1.1em"}})),u.a.createElement("div",null,u.a.createElement(f.a,{celled:!0,padded:!0,selectable:!0,size:"medium",color:"olive",className:"tbl sticky"},u.a.createElement(f.a.Header,null,u.a.createElement(f.a.Row,{textAlign:"center"},u.a.createElement(f.a.HeaderCell,null,"Sl.No."),u.a.createElement(f.a.HeaderCell,null,"Uploded Date"),u.a.createElement(f.a.HeaderCell,null,"Teacher Name"),u.a.createElement(f.a.HeaderCell,null,"Semester"),u.a.createElement(f.a.HeaderCell,null,"Subject Name"),u.a.createElement(f.a.HeaderCell,null,"Chapter/Unit"),u.a.createElement(f.a.HeaderCell,null,"Students Viewed"),u.a.createElement(f.a.HeaderCell,null,"View"),u.a.createElement(f.a.HeaderCell,null,"Delete"))),u.a.createElement(f.a.Body,null,e.map(function(e,t){return u.a.createElement(f.a.Row,{key:t,style:{overflow:"hidden"}},u.a.createElement(f.a.Cell,{textAlign:"center"},t+1),u.a.createElement(f.a.Cell,null,e.upddate),u.a.createElement(f.a.Cell,null,e.FUPDTEACH),u.a.createElement(f.a.Cell,{textAlign:"center"},e.fexamname),u.a.createElement(f.a.Cell,{textAlign:"center"},e.fsubname),u.a.createElement(f.a.Cell,null,e.fchapter),u.a.createElement(f.a.Cell,{textAlign:"center"},e.viewed),u.a.createElement(f.a.Cell,{textAlign:"center"},u.a.createElement("a",{href:"https://online-univ-study-material.s3.ap-south-1.amazonaws.com/"+r.props.user.fcuruniv+"/"+e.fpath,target:"_blank"},"View")),u.a.createElement(f.a.Cell,{textAlign:"center"},u.a.createElement("a",null,"Delete")))})))))},r}return Object(i.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){}},{key:"render",value:function(){return null==this.props.reportdet?null:this.renderTable()}}]),t}(l.Component));t.a=Object(d.b)(function(e){return{studyMaterialList:e.getstudyMaterial,user:e.user}},{showError:p.A})(h)}}]);
//# sourceMappingURL=34.6131f8f4.chunk.js.map
|