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([[89],{1410:function(e,t,n){"use strict";n.r(t);var r=n(68),a=n(100),o=n(101),i=n(103),s=n(102),u=n(104),l=n(2),c=n.n(l),f=n(941),h=n(267),p=n(1377),d=n(1343),v=n(272),m=n(1335),g=n(1337),y=n(1338),w=n(105),E=n(287),k=n.n(E),b=n(275),x=n.n(b),C=n(273),O=n(271);n(302);function S(){S=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:L(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function g(){}function y(){}function w(){}var E={};l(E,i,function(){return this});var k=Object.getPrototypeOf,b=k&&k(k(F([])));b&&b!==n&&r.call(b,i)&&(E=b);var x=w.prototype=g.prototype=Object.create(E);function C(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){function n(a,o,i,s){var u=f(e[a],e,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,i,s)},function(e){n("throw",e,i,s)}):t.resolve(c).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,s)})}s(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t(function(t,a){n(e,r,t,a)})}return o=o?o.then(a,a):a()}})}function L(t,n,r){var a=h;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var u=D(s,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===h)throw a=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=d;var l=f(t,n,r);if("normal"===l.type){if(a=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=v,r.method="throw",r.arg=l.arg)}}}function D(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function F(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=w,a(x,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=l(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},C(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new O(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},C(x),l(x,u,"Generator"),l(x,i,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=F,I.prototype={constructor:I,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(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.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 i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},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),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;M(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:F(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}var L=n(274);function D(){D=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function g(){}function y(){}function w(){}var E={};l(E,i,function(){return this});var k=Object.getPrototypeOf,b=k&&k(k(F([])));b&&b!==n&&r.call(b,i)&&(E=b);var x=w.prototype=g.prototype=Object.create(E);function C(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){function n(a,o,i,s){var u=f(e[a],e,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,i,s)},function(e){n("throw",e,i,s)}):t.resolve(c).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,s)})}s(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t(function(t,a){n(e,r,t,a)})}return o=o?o.then(a,a):a()}})}function S(t,n,r){var a=h;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var u=L(s,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===h)throw a=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=d;var l=f(t,n,r);if("normal"===l.type){if(a=r.done?v:p,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=v,r.method="throw",r.arg=l.arg)}}}function L(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function F(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=w,a(x,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=l(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},C(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new O(c(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},C(x),l(x,u,"Generator"),l(x,i,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=F,I.prototype={constructor:I,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(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function a(r,a){return s.type="throw",s.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.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 i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},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),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;M(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:F(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}var j=function(e){function t(){var e,n;Object(a.a)(this,t);for(var o=arguments.length,u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];return(n=Object(i.a)(this,(e=Object(s.a)(t)).call.apply(e,[this].concat(u)))).state={datefrm:k()().format("DD/MM/YYYY"),dateto:k()().format("DD/MM/YYYY"),type:"all",search:"",university:"",frmsubmit:!1},n.componentDidMount=Object(r.a)(D().mark(function e(){return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({frmsubmit:!1});case 2:return e.next=4,n.props.getUploadUnivs();case 4:case"end":return e.stop()}},e)})),n.dateFrmChange=function(){var e=Object(r.a)(D().mark(function e(t,r){return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({datefrm:t.target.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.dateToChange=function(){var e=Object(r.a)(D().mark(function e(t,r){return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({dateto:t.target.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.typeChange=function(){var e=Object(r.a)(D().mark(function e(t,r){return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({type:r.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.searchChange=function(){var e=Object(r.a)(D().mark(function e(t,r){return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({search:r.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.universityChange=function(){var e=Object(r.a)(D().mark(function e(t,r){return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setState({university:r.value});case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleCancel=function(){n.setState({date:k()().format("DD/MM/YYYY")})},n.genReport=function(){window.open(L.c+"generateUploadReport&datefrm="+n.state.datefrm+"&dateto="+n.state.dateto)},n.renderHeader=function(){return c.a.createElement(p.a.Header,{style:{display:"flex"}},c.a.createElement("h4",null,"View Backups"),c.a.createElement("div",{className:"ml-auto"},c.a.createElement(d.a,{basic:!0,onClick:n.genReport,color:"blue",icon:"file",content:"Report"}),c.a.createElement(d.a,{basic:!0,onClick:n.handleCancel,color:"black",icon:"ban",content:"Cancel"}),c.a.createElement(f.a,{to:"/dashboard"},c.a.createElement(d.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},n.submitHandler=Object(r.a)(D().mark(function e(){var t,r,a,o,i;return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==n.state.university){e.next=6;break}return t={header:"Error",content:"Select University"},n.props.showError(t),e.abrupt("return");case 6:if(""!==n.state.datefrm){e.next=12;break}return r={header:"Error",content:"Enter Date From"},n.props.showError(r),e.abrupt("return");case 12:if(""!==n.state.dateto){e.next=18;break}return a={header:"Error",content:"Enter Date From"},n.props.showError(a),e.abrupt("return");case 18:if(""!==n.state.type){e.next=24;break}return o={header:"Error",content:"Select Type"},n.props.showError(o),e.abrupt("return");case 24:return i=n.state,i.datefrm,i.dateto,i.type,i.university,e.next=27,n.props.viewBackups(n.state);case 27:return e.next=29,n.setState({frmsubmit:!0});case 29:case"end":return e.stop()}},e)})),n.deleteFilepath=function(){var e=Object(r.a)(D().mark(function e(t,r){return D().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.props.deleteFile(t,r);case 2:return e.next=4,n.props.viewBackups(n.state);case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.datefrm,r=t.dateto,a=t.type,o=t.search,i=t.university,s={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},u=Object(C.i)(),l=this.props.univ.map(function(e,t){return{key:t,value:"".concat(e.funivcode),text:"".concat(e.funivcode," - ").concat(e.funivname)}});return c.a.createElement("div",null,c.a.createElement(p.a,{fluid:!0},c.a.createElement(p.a.Content,null,this.renderHeader(),c.a.createElement(v.a,null),c.a.createElement(p.a.Description,{style:{height:"".concat(u,"px"),overflowY:"auto"}},c.a.createElement(m.a,null,c.a.createElement(m.a.Group,null,c.a.createElement(m.a.Field,{width:8},c.a.createElement("label",null,"Select University"),c.a.createElement(g.a,{fluid:!0,search:!0,selection:!0,value:i,options:l,allowAdditions:!0,placeholder:"Type",onChange:this.universityChange}))),c.a.createElement(m.a.Group,null,c.a.createElement(m.a.Field,{width:4},c.a.createElement("label",null,"Date From"),c.a.createElement(x.a,{formatChars:s,type:"text",value:n,mask:"ed/nm/zyyy",placeholder:"Date From",name:"datefrom",onChange:this.dateFrmChange})),c.a.createElement(m.a.Field,{width:4},c.a.createElement("label",null,"Date To"),c.a.createElement(x.a,{formatChars:s,type:"text",value:r,mask:"ed/nm/zyyy",placeholder:"Date To",name:"dateto",onChange:this.dateToChange}))),c.a.createElement(m.a.Group,null,c.a.createElement(m.a.Field,{width:8},c.a.createElement("label",null,"Backup Type"),c.a.createElement(g.a,{placeholder:"Backup Type",search:!0,selection:!0,name:"type",value:a,options:[{value:"all",text:"All"},{value:"exam/empty",text:"Exam/Empty"},{value:"convocation",text:"Convocation"},{value:"tada",text:"Tada"},{value:"cvms",text:"CVMS"},{value:"other",text:"Other"}],onChange:this.typeChange}))),c.a.createElement(m.a.Group,null,c.a.createElement(m.a.Field,null,c.a.createElement(d.a,{style:{marginRight:"470px"},basic:!0,color:"blue",content:"Submit",onClick:this.submitHandler})),c.a.createElement(m.a.Field,{width:8},c.a.createElement(m.a.Input,{placeholder:"Search",name:"search",value:o,onChange:this.searchChange})))),this.state.frmsubmit?c.a.createElement(y.a,{celled:!0,padded:!0},c.a.createElement(y.a.Header,null,c.a.createElement(y.a.Row,null,c.a.createElement(y.a.HeaderCell,{singleLine:!0},"Sl.no."),c.a.createElement(y.a.HeaderCell,null,"User"),c.a.createElement(y.a.HeaderCell,{textAlign:"center"},"Date"),c.a.createElement(y.a.HeaderCell,{textAlign:"center"},"Type"),c.a.createElement(y.a.HeaderCell,null,"Title"),c.a.createElement(y.a.HeaderCell,null,"Description"),c.a.createElement(y.a.HeaderCell,null,"File Name"),c.a.createElement(y.a.HeaderCell,{textAlign:"center"},"Action"))),c.a.createElement(y.a.Body,null,this.props.view.filter(function(e){return e.ftype.toLowerCase().includes(o)||e.fuser.toLowerCase().includes(o)||e.fdate.toLowerCase().includes(o)||e.ftitle.toLowerCase().includes(o)||e.fdesc.toLowerCase().includes(o)||e.filepath.toLowerCase().includes(o)}).map(function(t,n){var r=t.filepath.split("/");return c.a.createElement(y.a.Row,{key:n},c.a.createElement(y.a.Cell,{textAlign:"center"},n+1),c.a.createElement(y.a.Cell,null,t.fuser),c.a.createElement(y.a.Cell,{textAlign:"center"},t.fdate),c.a.createElement(y.a.Cell,{textAlign:"center"},t.ftype),c.a.createElement(y.a.Cell,null,t.ftitle),c.a.createElement(y.a.Cell,null,t.fdesc),c.a.createElement(y.a.Cell,null,r[2]),c.a.createElement(y.a.Cell,{textAlign:"center",style:{display:"flex"}},c.a.createElement(d.a,{positive:!0},c.a.createElement("a",{style:{color:"white"},href:"https://takshila-backup.s3.ap-south-1.amazonaws.com/"+t.filepath,target:"_blank"},"Download")),c.a.createElement(d.a,{negative:!0,onClick:function(){return e.deleteFilepath(t.fid,e.state.university)}},"Delete")))}))):!this.state.frmsubmit))))}}]),t}(c.a.Component);t.default=Object(w.b)(function(e){return{view:e.viewbackup,univ:e.getUnivs}},{showError:h.A,viewBackups:function(e){return function(){var t=Object(r.a)(S().mark(function t(n,r){var a,o,i,s;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=r(),n({type:"SET_LOADER"}),t.next=4,O.a.get("/app.php",{params:{a:"viewBackup",univcode:a.user.fcuruniv,datefrm:e.datefrm,dateto:e.dateto,type:e.type,university:e.university}});case 4:o=t.sent,n({type:"UNSET_LOADER"}),"object"!==typeof o.data?(i={header:"Error",content:"Something went wrong"},n(Object(h.A)(i))):-1===o.data.error_code?(s={header:"Error",content:o.data.data.msg},n(Object(h.A)(s)),n({type:"RESET_BKP",payload:o.data.data.msg})):n({type:"VIEW_BACKUP",payload:o.data.data});case 7:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},deleteFile:function(e,t){return function(){var n=Object(r.a)(S().mark(function n(r,a){var o,i;return S().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o=a(),r({type:"SET_LOADER"}),n.next=4,O.a.post("/app.php?a=deleteFile&univcode="+o.user.fcuruniv+"&university="+t+"&id="+e);case 4:i=n.sent,r({type:"UNSET_LOADER"}),r({type:"SET_QPNAME",payload:i.data});case 7:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()},getUploadUnivs:function(e){return function(){var e=Object(r.a)(S().mark(function e(t,n){var r,a,o,i;return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),t({type:"SET_LOADER"}),e.next=4,O.a.get("/app.php",{params:{a:"getUploadUnivs",univcode:r.user.fcuruniv}});case 4:a=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof a.data?(o={header:"Error",content:"Something went wrong"},t(Object(h.A)(o))):-1===a.data.error_code?(i={header:"Error",content:a.data.data.msg},t(Object(h.A)(i))):t({type:"GET_UPLOAD_UNIVS",payload:a.data});case 7:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()}})(j)},275:function(e,t,n){e.exports=n(276)},276:function(e,t,n){"use strict";var r,a=(r=n(2))&&"object"==typeof r&&"default"in r?r.default:r,o=n(106);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var a=n[r],o=Object.getOwnPropertyDescriptor(t,a);o&&o.configurable&&void 0===e[a]&&Object.defineProperty(e,a,o)}}(e.prototype.constructor=e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e,t,n,r,a,o,i,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,o,i,s],c=0;(u=new Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}};function c(e,t,n){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=n;else{var r=e.createTextRange();r.collapse(!0),r.moveStart("character",t),r.moveEnd("character",n-t),r.select()}}var f={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},h="_";function p(e,t,n){var r="",a="",o=null,i=[];if(void 0===t&&(t=h),null==n&&(n=f),!e||"string"!=typeof e)return{maskChar:t,formatChars:n,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var s=!1;return e.split("").forEach(function(e){s=!s&&"\\"===e||(s||!n[e]?(i.push(r.length),r.length===i.length-1&&(a+=e)):o=r.length+1,r+=e,!1)}),{maskChar:t,formatChars:n,prefix:a,mask:r,lastEditablePosition:o,permanents:i}}function d(e,t){return-1!==e.permanents.indexOf(t)}function v(e,t,n){var r=e.mask,a=e.formatChars;if(!n)return!1;if(d(e,t))return r[t]===n;var o=a[r[t]];return new RegExp(o).test(n)}function m(e,t){return t.split("").every(function(t,n){return d(e,n)||!v(e,n,t)})}function g(e,t){var n=e.maskChar,r=e.prefix;if(!n){for(;t.length>r.length&&d(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var a=r.length,o=t.length;o>=r.length;o--){var i=t[o];if(!d(e,o)&&v(e,o,i)){a=o+1;break}}return a}function y(e,t){return g(e,t)===e.mask.length}function w(e,t){var n=e.maskChar,r=e.mask,a=e.prefix;if(!n){for((t=E(e,"",t,0)).length<a.length&&(t=a);t.length<r.length&&d(e,t.length);)t+=r[t.length];return t}if(t)return E(e,w(e,""),t,0);for(var o=0;o<r.length;o++)d(e,o)?t+=r[o]:t+=n;return t}function E(e,t,n,r){var a=e.mask,o=e.maskChar,i=e.prefix,s=n.split(""),u=y(e,t);return!o&&r>t.length&&(t+=a.slice(t.length,r)),s.every(function(n){for(;c=n,d(e,l=r)&&c!==a[l];){if(r>=t.length&&(t+=a[r]),s=n,o&&d(e,r)&&s===o)return!0;if(++r>=a.length)return!1}var s,l,c;return!v(e,r,n)&&n!==o||(r<t.length?t=o||u||r<i.length?t.slice(0,r)+n+t.slice(r+1):(t=t.slice(0,r)+n+t.slice(r),w(e,t)):o||(t+=n),++r<a.length)}),t}function k(e,t){for(var n=e.mask,r=t;r<n.length;++r)if(!d(e,r))return r;return null}function b(e){return e||0===e?e+"":""}function x(e,t,n,r,a){var o=e.mask,i=e.prefix,s=e.lastEditablePosition,u=t,l="",c=0,f=0,h=Math.min(a.start,n.start);return n.end>a.start?f=(c=function(e,t,n,r){var a=e.mask,o=e.maskChar,i=n.split(""),s=r;return i.every(function(t){for(;i=t,d(e,n=r)&&i!==a[n];)if(++r>=a.length)return!1;var n,i;return(v(e,r,t)||t===o)&&r++,r<a.length}),r-s}(e,0,l=u.slice(a.start,n.end),h))?a.length:0:u.length<r.length&&(f=r.length-u.length),u=r,f&&(1!==f||a.length||(h=a.start===n.start?k(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!d(e,n))return n;return null}(e,n.start)),u=function(e,t,n,r){var a=n+r,o=e.maskChar,i=e.mask,s=e.prefix,u=t.split("");if(o)return u.map(function(t,r){return r<n||a<=r?t:d(e,r)?i[r]:o}).join("");for(var l=a;l<u.length;l++)d(e,l)&&(u[l]="");return n=Math.max(s.length,n),u.splice(n,a-n),t=u.join(""),w(e,t)}(e,u,h,f)),u=E(e,u,l,h),(h+=c)>=o.length?h=o.length:h<i.length&&!c?h=i.length:h>=i.length&&h<s&&c&&(h=k(e,h)),l||(l=null),{value:u=w(e,u),enteredString:l,selection:{start:h,end:h}}}function C(e){return"function"==typeof e}function O(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function S(e){return(O()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function L(e){(O()||clearTimeout)(e)}var D=function(e){function t(t){var n=e.call(this,t)||this;n.focused=!1,n.mounted=!1,n.previousSelection=null,n.selectionDeferId=null,n.saveSelectionLoopDeferId=null,n.saveSelectionLoop=function(){n.previousSelection=n.getSelection(),n.saveSelectionLoopDeferId=S(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(L(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=o.findDOMNode(u(u(n))),t="undefined"!=typeof window&&e instanceof window.Element;if(e&&!t)return null;if("INPUT"!==e.nodeName&&(e=e.querySelector("input")),!e)throw new Error("react-input-mask: inputComponent doesn't contain input node");return e},n.getInputValue=function(){var e=n.getInputDOMNode();return e?e.value:null},n.setInputValue=function(e){var t=n.getInputDOMNode();t&&(n.value=e,t.value=e)},n.setCursorToEnd=function(){var e=g(n.maskOptions,n.value),t=k(n.maskOptions,e);null!==t&&n.setCursorPosition(t)},n.setSelection=function(e,t,r){void 0===r&&(r={});var a=n.getInputDOMNode(),o=n.isFocused();a&&o&&(r.deferred||c(a,e,t),null!==n.selectionDeferId&&L(n.selectionDeferId),n.selectionDeferId=S(function(){n.selectionDeferId=null,c(a,e,t)}),n.previousSelection={start:e,end:t,length:Math.abs(t-e)})},n.getSelection=function(){return function(e){var t=0,n=0;if("selectionStart"in e&&"selectionEnd"in e)t=e.selectionStart,n=e.selectionEnd;else{var r=document.selection.createRange();r.parentElement()===e&&(t=-r.moveStart("character",-e.value.length),n=-r.moveEnd("character",-e.value.length))}return{start:t,end:n,length:n-t}}(n.getInputDOMNode())},n.getCursorPosition=function(){return n.getSelection().start},n.setCursorPosition=function(e){n.setSelection(e,e)},n.isFocused=function(){return n.focused},n.getBeforeMaskedValueChangeConfig=function(){var e=n.maskOptions,t=e.mask,r=e.maskChar,a=e.permanents,o=e.formatChars;return{mask:t,maskChar:r,permanents:a,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:o}},n.isInputAutofilled=function(e,t,r,a){var o=n.getInputDOMNode();try{if(o.matches(":-webkit-autofill"))return!0}catch(l){}return!n.focused||a.end<r.length&&t.end===e.length},n.onChange=function(e){var t=u(u(n)).beforePasteState,r=u(u(n)).previousSelection,a=n.props.beforeMaskedValueChange,o=n.getInputValue(),i=n.value,s=n.getSelection();n.isInputAutofilled(o,s,i,r)&&(i=w(n.maskOptions,""),r={start:0,end:0,length:0}),t&&(r=t.selection,i=t.value,s={start:r.start+o.length,end:r.start+o.length,length:0},o=i.slice(0,r.start)+o+i.slice(r.end),n.beforePasteState=null);var l=x(n.maskOptions,o,s,i,r),c=l.enteredString,f=l.selection,h=l.value;if(C(a)){var p=a({value:h,selection:f},{value:i,selection:r},c,n.getBeforeMaskedValueChangeConfig());h=p.value,f=p.selection}n.setInputValue(h),C(n.props.onChange)&&n.props.onChange(e),n.isWindowsPhoneBrowser?n.setSelection(f.start,f.end,{deferred:!0}):n.setSelection(f.start,f.end)},n.onFocus=function(e){var t=n.props.beforeMaskedValueChange,r=n.maskOptions,a=r.mask,o=r.prefix;if(n.focused=!0,n.mounted=!0,a){if(n.value)g(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var i=w(n.maskOptions,o),s=w(n.maskOptions,i),u=g(n.maskOptions,s),l=k(n.maskOptions,u),c={start:l,end:l};if(C(t)){var f=t({value:s,selection:c},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());s=f.value,c=f.selection}var h=s!==n.getInputValue();h&&n.setInputValue(s),h&&C(n.props.onChange)&&n.props.onChange(e),n.setSelection(c.start,c.end)}n.runSaveSelectionLoop()}C(n.props.onFocus)&&n.props.onFocus(e)},n.onBlur=function(e){var t=n.props.beforeMaskedValueChange,r=n.maskOptions.mask;if(n.stopSaveSelectionLoop(),n.focused=!1,r&&!n.props.alwaysShowMask&&m(n.maskOptions,n.value)){var a="";C(t)&&(a=t({value:a,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var o=a!==n.getInputValue();o&&n.setInputValue(a),o&&C(n.props.onChange)&&n.props.onChange(e)}C(n.props.onBlur)&&n.props.onBlur(e)},n.onMouseDown=function(e){if(!n.focused&&document.addEventListener){n.mouseDownX=e.clientX,n.mouseDownY=e.clientY,n.mouseDownTime=(new Date).getTime();document.addEventListener("mouseup",function e(t){if(document.removeEventListener("mouseup",e),n.focused){var r=Math.abs(t.clientX-n.mouseDownX),a=Math.abs(t.clientY-n.mouseDownY),o=Math.max(r,a),i=(new Date).getTime()-n.mouseDownTime;(o<=10&&i<=200||o<=5&&i<=300)&&n.setCursorToEnd()}})}C(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){C(n.props.onPaste)&&n.props.onPaste(e),e.defaultPrevented||(n.beforePasteState={value:n.getInputValue(),selection:n.getSelection()},n.setInputValue(""))},n.handleRef=function(e){null==n.props.children&&C(n.props.inputRef)&&n.props.inputRef(e)};var r=t.mask,a=t.maskChar,i=t.formatChars,s=t.alwaysShowMask,l=t.beforeMaskedValueChange,f=t.defaultValue,h=t.value;n.maskOptions=p(r,a,i),null==f&&(f=""),null==h&&(h=f);var d=b(h);if(n.maskOptions.mask&&(s||d)&&(d=w(n.maskOptions,d),C(l))){var v=t.value;null==t.value&&(v=f),d=l({value:d,selection:null},{value:v=b(v),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=d,n}s(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=function(){var e=new RegExp("windows","i"),t=new RegExp("phone","i"),n=navigator.userAgent;return e.test(n)&&t.test(n)}(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},n.componentDidUpdate=function(){var e=this.previousSelection,t=this.props,n=t.beforeMaskedValueChange,r=t.alwaysShowMask,a=t.mask,o=t.maskChar,i=t.formatChars,s=this.maskOptions,u=r||this.isFocused(),l=null!=this.props.value,c=l?b(this.props.value):this.value,f=e?e.start:null;if(this.maskOptions=p(a,o,i),this.maskOptions.mask){!s.mask&&this.isFocused()&&this.runSaveSelectionLoop();var h=this.maskOptions.mask&&this.maskOptions.mask!==s.mask;if(s.mask||l||(c=this.getInputValue()),(h||this.maskOptions.mask&&(c||u))&&(c=w(this.maskOptions,c)),h){var d=g(this.maskOptions,c);(null===f||d<f)&&(f=y(this.maskOptions,c)?d:k(this.maskOptions,d))}!this.maskOptions.mask||!m(this.maskOptions,c)||u||l&&this.props.value||(c="");var v={start:f,end:f};if(C(n)){var E=n({value:c,selection:v},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());c=E.value,v=E.selection}this.value=c;var x=this.getInputValue()!==this.value;x?(this.setInputValue(this.value),this.forceUpdate()):h&&this.forceUpdate();var O=!1;null!=v.start&&null!=v.end&&(O=!e||e.start!==v.start||e.end!==v.end),(O||x)&&this.setSelection(v.start,v.end)}else s.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&L(this.selectionDeferId),this.stopSaveSelectionLoop()},n.render=function(){var e,t=this.props,n=(t.mask,t.alwaysShowMask,t.maskChar,t.formatChars,t.inputRef,t.beforeMaskedValueChange,t.children),r=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){C(n)||l(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],s=i({},r);o.forEach(function(e){return delete s[e]}),e=n(s),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==r[t]}).length&&l(!1)}else e=a.createElement("input",i({ref:this.handleRef},r));var u={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(r.disabled||r.readOnly||(u.onChange=this.onChange,u.onPaste=this.onPaste,u.onMouseDown=this.onMouseDown),null!=r.value&&(u.value=this.value)),e=a.cloneElement(e,u)},t}(a.Component);e.exports=D},302:function(e,t,n){}}]);
//# sourceMappingURL=89.3c054199.chunk.js.map
|