0xV3NOMx
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.221.217.100


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/50.37acbf19.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[50,307],{1173: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),u=r(104),l=r(2),s=r.n(l),f=r(941),h=r(1377),d=r(1343),p=r(272),m=r(1335),y=r(1337),v=r(105),g=r(267),b=r(510),w=r(274),E=r(273),x=r(399);function j(){j=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",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,c=Object.create(o.prototype),i=new N(n||[]);return a(c,"_invoke",{value:_(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 h="suspendedStart",d="suspendedYield",p="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};l(w,c,function(){return this});var E=Object.getPrototypeOf,x=E&&E(E(A([])));x&&x!==r&&n.call(x,c)&&(w=x);var L=b.prototype=v.prototype=Object.create(w);function O(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function r(a,o,c,i){var u=f(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.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){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(u.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 _(t,r,n){var a=h;return function(o,c){if(a===p)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 u=C(i,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=p;var l=f(t,r,n);if("normal"===l.type){if(a=n.done?m:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.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=f(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(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(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(e,u,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(S.prototype),l(S.prototype,i,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new S(s(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},O(L),l(L,u,"Generator"),l(L,c,function(){return this}),l(L,"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=A,N.prototype={constructor:N,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),!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 u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)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),T(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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}var L=function(e){function t(){var e,r;Object(a.a)(this,t);for(var o=arguments.length,u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];return(r=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(u)))).state={fstudydeg:"",displayTbl:!1,studyExamno:"",studySubject:""},r.getDegrees=function(e,t){r.setState({frmDeggrp:t.value})},r.handleChangedeg=function(){var e=Object(n.a)(j().mark(function e(t,n){return j().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)(j().mark(function e(t,n){return j().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)(j().mark(function e(t,n){return j().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.displayTbl,a=t.studyExamno,o=t.fstudydeg,c=t.studySubject;if(""!==e)r.props.getstudymat(n,a,o,c),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(w.c+n+"&univcode="+r.props.univcode+"&deggrp="+e+"&deggrpfrm="+a+"&deggrpto="+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.renderHeader=function(){return s.a.createElement(h.a.Header,{style:{display:"flex"}},s.a.createElement("h3",null,"Study Material"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(f.a,{to:"/study/uploadstudymaterial"},s.a.createElement(d.a,{basic:!0,color:"blue",content:"Upload",icon:"upload"})),s.a.createElement(d.a,{basic:!0,color:"black",icon:"ban",onClick:r.handleCancel,content:"Cancel"}),s.a.createElement(f.a,{to:"/dashboard"},s.a.createElement(d.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=r.props.degreeList.map(function(e){return{value:e.fdegree,text:"".concat(e.fdegree," ").concat(e.fdescpn)}}),i=r.props.examno.map(function(e){return{value:e.fexamno,text:" ".concat(e.fexamname)}}),u=r.props.Subject.map(function(e){return{value:e.fsubcode,text:" ".concat(e.fsubname)}}),l=Object(E.i)();return s.a.createElement("div",{className:"animated fadeIn"},s.a.createElement(h.a,{fluid:!0},s.a.createElement(h.a.Content,null,r.renderHeader(),s.a.createElement(p.a,null),s.a.createElement(h.a.Description,{style:{overflowY:"auto",height:"".concat(l,"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(y.a,{placeholder:"Select Degree",name:"deg",value:a,selection:!0,search:!0,options:c,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(y.a,{placeholder:"Select Exam No.",name:"exmno",value:n,selection:!0,search:!0,options:i,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(y.a,{placeholder:"Select Subject",name:"sub",value:o,selection:!0,search:!0,options:u,onChange:r.handleChangesub}))),s.a.createElement(d.a,{color:"blue",onClick:r.handleSubmit},"View"),s.a.createElement("br",null))),t?s.a.createElement(b.a,{reportdet:r.props.collegeReport}):null))))},r}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.props.getDegreeList()}},{key:"render",value:function(){return this.renderForm()}}]),t}(l.Component);t.default=Object(v.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:x.c,fetchexamno:x.a,fetchsub:x.b,getstudymat:x.d,fetchDegGrp:g.j,showError:g.A})(L)},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),u=r.n(i),l=r(349),s=r(613),f=r(611),h=r(269);function d(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,i=e.fitted,p=e.hidden,m=e.horizontal,y=e.inverted,v=e.section,g=e.vertical,b=c()("ui",Object(l.a)(n,"clearing"),Object(l.a)(i,"fitted"),Object(l.a)(p,"hidden"),Object(l.a)(m,"horizontal"),Object(l.a)(y,"inverted"),Object(l.a)(v,"section"),Object(l.a)(g,"vertical"),"divider",r),w=Object(s.a)(d,e),E=Object(f.a)(d,e);return u.a.createElement(E,a()({},w,{className:b}),h.a.isNil(t)?o:t)}d.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],d.propTypes={},t.a=d},304:function(e,t,r){},399:function(e,t,r){"use strict";r.d(t,"c",function(){return i}),r.d(t,"a",function(){return u}),r.d(t,"b",function(){return l}),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",u=o.asyncIterator||"@@asyncIterator",l=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 N(n||[]);return a(c,"_invoke",{value:_(e,r,i)}),c}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var d="suspendedStart",p="suspendedYield",m="executing",y="completed",v={};function g(){}function b(){}function w(){}var E={};s(E,i,function(){return this});var x=Object.getPrototypeOf,j=x&&x(x(A([])));j&&j!==r&&n.call(j,i)&&(E=j);var L=w.prototype=g.prototype=Object.create(E);function O(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function r(a,o,c,i){var u=h(e[a],e,o);if("throw"!==u.type){var l=u.arg,s=l.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){l.value=e,c(l)},function(e){return r("throw",e,c,i)})}i(u.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 _(t,r,n){var a=d;return function(o,c){if(a===m)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw c;return{value:e,done:!0}}for(n.method=o,n.arg=c;;){var i=n.delegate;if(i){var u=C(i,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var l=h(t,r,n);if("normal"===l.type){if(a=n.done?y:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=y,n.method="throw",n.arg=l.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=h(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(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=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=s(w,l,"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,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(S.prototype),s(S.prototype,u,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var c=new S(f(e,r,n,a),o);return t.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},O(L),s(L,l,"Generator"),s(L,i,function(){return this}),s(L,"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=A,N.prototype={constructor:N,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),!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 u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return a(c.catchLoc,!0);if(this.prev<c.finallyLoc)return a(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return a(c.catchLoc,!0)}else{if(!l)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),T(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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var i=function(){return function(){var e=Object(n.a)(c().mark(function e(t,r){var n,i,u,l;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?(u={header:"Error",content:"Something went wrong"},t(Object(o.A)(u))):-1===i.data.error_code?(l={header:"Error",content:i.data.data.msg},t(Object(o.A)(l))):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)}}()},u=function(e){return function(){var t=Object(n.a)(c().mark(function t(r,n){var i,u,l,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+"&deg="+e);case 3:"object"!==typeof(u=t.sent).data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"STUDY_EXAMNO",payload:u.data});case 5:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},l=function(e,t){return function(){var r=Object(n.a)(c().mark(function r(n,i){var u,l,s,f;return c().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return u=i(),r.next=3,a.a.get("app.php?a=getstudysub&univcode="+u.univ.funivcode+"&deg="+t+"&exmno="+e);case 3:"object"!==typeof(l=r.sent).data?(s={header:"Error",content:"Something went wrong"},n(Object(o.A)(s))):-1===l.data.error_code?(f={header:"Error",content:l.data.data.msg},n(Object(o.A)(f))):n({type:"STUDY_SUBJECT",payload:l.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,u;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:u=t.sent,r({type:"UNSET_LOADER"}),r({type:"SET_UPLOAD_DOC",payload:u.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,u){var l,s,f,h;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l=u(),e.next=3,a.a.get("app.php?a=getstudymat&univcode="+l.univ.funivcode+"&fstudydeg="+r+"&studyExamno="+t+"&studySubject="+i+"&fcollcode="+l.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?(h={header:"Error",content:s.data.data.msg},n(Object(o.A)(h))):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)}}()}},510:function(e,t,r){"use strict";var n=r(100),a=r(101),o=r(103),c=r(102),i=r(104),u=r(2),l=r.n(u),s=r(1155),f=r(1338),h=r(105),d=r(267),p=(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),u=0;u<a;u++)i[u]=arguments[u];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 l.a.createElement("div",{className:"mt-3"},l.a.createElement("hr",null),l.a.createElement("div",{style:{marginBottom:"1em",backgroundColor:"white"},className:"stick"},l.a.createElement(s.a,{icon:"search",fluid:!0,placeholder:"Search...",onChange:r.searchTable,value:r.state.searchVal,style:{fontSize:"1.1em"}})),l.a.createElement("div",null,l.a.createElement(f.a,{celled:!0,padded:!0,selectable:!0,size:"medium",color:"olive",className:"tbl sticky"},l.a.createElement(f.a.Header,null,l.a.createElement(f.a.Row,{textAlign:"center"},l.a.createElement(f.a.HeaderCell,null,"Sl.No."),l.a.createElement(f.a.HeaderCell,null,"Uploded Date"),l.a.createElement(f.a.HeaderCell,null,"Teacher Name"),l.a.createElement(f.a.HeaderCell,null,"Semester"),l.a.createElement(f.a.HeaderCell,null,"Subject Name"),l.a.createElement(f.a.HeaderCell,null,"Chapter/Unit"),l.a.createElement(f.a.HeaderCell,null,"Students Viewed"),l.a.createElement(f.a.HeaderCell,null,"View"),l.a.createElement(f.a.HeaderCell,null,"Delete"))),l.a.createElement(f.a.Body,null,e.map(function(e,t){return l.a.createElement(f.a.Row,{key:t,style:{overflow:"hidden"}},l.a.createElement(f.a.Cell,{textAlign:"center"},t+1),l.a.createElement(f.a.Cell,null,e.upddate),l.a.createElement(f.a.Cell,null,e.FUPDTEACH),l.a.createElement(f.a.Cell,{textAlign:"center"},e.fexamname),l.a.createElement(f.a.Cell,{textAlign:"center"},e.fsubname),l.a.createElement(f.a.Cell,null,e.fchapter),l.a.createElement(f.a.Cell,{textAlign:"center"},e.viewed),l.a.createElement(f.a.Cell,{textAlign:"center"},l.a.createElement("a",{href:"https://online-univ-study-material.s3.ap-south-1.amazonaws.com/"+r.props.user.fcuruniv+"/"+e.fpath,target:"_blank"},"View")),l.a.createElement(f.a.Cell,{textAlign:"center"},l.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}(u.Component));t.a=Object(h.b)(function(e){return{studyMaterialList:e.getstudyMaterial,user:e.user}},{showError:d.A})(p)}}]);
//# sourceMappingURL=50.37acbf19.chunk.js.map