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 : 3.139.86.53
(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{1084:function(e,t,n){"use strict";n.r(t);var a=n(41),r=n.n(a),o=n(68),s=n(69),l=n(1),i=n.n(l),u=n(269),c=n(104),p=n(1096),f=n(1106),d=n(1134),m=n(1007),h=n(1139),v=n(272),g=n(1098),k=n(1100),w=n(858),O=n(266),b=n(108),y=(n(167),n(273)),S=n.n(y);t.default=Object(c.b)(function(e){return console.log("from exam app: ",e),{user:e.user,univ:e.univ,deggrp:e.deggrp}},{})(function(e){var t=Object(l.useState)(""),n=Object(s.a)(t,2),a=n[0],c=n[1],y=Object(l.useState)(""),E=Object(s.a)(y,2),C=E[0],M=E[1],x=Object(l.useState)(""),D=Object(s.a)(x,2),I=D[0],j=D[1],P=Object(l.useState)(""),V=Object(s.a)(P,2),N=V[0],F=V[1],A=Object(l.useState)(""),L=Object(s.a)(A,2),B=L[0],R=L[1],_=Object(l.useContext)(b.a).err_msg,T=Object(s.a)(_,2),z=T[0],X=T[1],G=function(){var e=Object(o.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c(""),M(""),j(""),F("");case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),U=function(){var t=Object(o.a)(r.a.mark(function t(){var n,o;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(""!=a){t.next=3;break}return X({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Select Acount"}}),t.abrupt("return");case 3:if(""!=C){t.next=6;break}return X({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Select Payment Gateway"}}),t.abrupt("return");case 6:if(""!=I){t.next=9;break}return X({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Enter From Date"}}),t.abrupt("return");case 9:if(""!=N){t.next=12;break}return X({type:"OPEN_MSG_BOX",payload:{header:"Error",message:"Enter To Date"}}),t.abrupt("return");case 12:return R("active"),t.next=15,u.a.post("/app.php?a=downloadSettlement&univcode="+e.univ.funivcode,{data:{banktype:C,tdate:N,fdate:I,type:a}});case 15:if(n=t.sent,R(""),"object"===typeof n.data){t.next=23;break}return o={header:"Error",content:"Something went wrong"},Object(O.w)(o),t.abrupt("return");case 23:if(0!==n.data.error_code){t.next=29;break}return console.log(n.data.data.msg),X({type:"OPEN_MSG_BOX",payload:{header:"Success",message:n.data.data.msg}}),t.abrupt("return");case 29:return X({type:"OPEN_MSG_BOX",payload:{header:"Error",message:n.data.data.msg}}),t.abrupt("return");case 31:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),q={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"};return i.a.createElement(i.a.Fragment,null,i.a.createElement(p.a,{size:"mini",open:z.open,dimmer:"inverted",style:{height:"180px"}},i.a.createElement(p.a.Header,{style:{backgroundColor:z.color,color:"#fff"}},z.header),i.a.createElement(p.a.Content,null,i.a.createElement("div",{dangerouslySetInnerHTML:{__html:z.message}})),i.a.createElement(p.a.Actions,null,i.a.createElement(f.a,{positive:!0,onClick:function(){return X({type:"CLOSE_MSG_BOX"})}},"OK"))),i.a.createElement(d.a,{active:B},i.a.createElement(m.a,null)),i.a.createElement("div",{className:"animated fadeIn"},i.a.createElement(h.a,{fluid:!0,style:{minHeight:"82vh"}},i.a.createElement(h.a.Content,null,i.a.createElement(h.a.Header,{style:{display:"flex"},className:"sticky"},i.a.createElement("h4",null,"Download Settlement Report"),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(f.a,{basic:!0,color:"black",content:"Cancel",icon:"ban",onClick:function(){G()}}),i.a.createElement(w.a,{to:"/dashboard"},i.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),i.a.createElement(v.a,null),i.a.createElement("div",{className:"col-md-6"},i.a.createElement(g.a,null,i.a.createElement(g.a.Field,{width:16},i.a.createElement("label",null,"Account"),i.a.createElement(k.a,{placeholder:"Select Account",name:"Accounttype",value:a,selection:!0,search:!0,options:[{key:"0",text:"Select",value:""},{key:"1",text:"Exam Account",value:"exam"},{key:"2",text:"Admission Account",value:"adm"}],onChange:function(e,t){c(t.value)}})),i.a.createElement(g.a.Field,{width:16},i.a.createElement("label",null,"Payment Gateway"),i.a.createElement(k.a,{placeholder:"Select gateway",name:"gatewaytype",value:C,selection:!0,search:!0,options:[{key:"0",text:"Select",value:""},{key:"1",text:"Paytm",value:"Paytm"},{key:"2",text:"Razorpay",value:"Razorpay"},{key:"3",text:"Axis",value:"Axis"}],onChange:function(e,t){M(t.value)}})),i.a.createElement(g.a.Group,null,i.a.createElement(g.a.Field,{width:8},i.a.createElement("label",null,"Date Range"),i.a.createElement(S.a,{type:"text",value:I,formatChars:q,mask:"ed/nm/zyyy",placeholder:"From Date",name:"fdate",onChange:function(e){return j(e.target.value)}})),i.a.createElement(g.a.Field,{width:8},i.a.createElement(S.a,{type:"text",value:N,placeholder:"To Date",name:"tdate",formatChars:q,mask:"ed/nm/zyyy",style:{marginTop:"22px"},onChange:function(e){return F(e.target.value)}}))),i.a.createElement("p",null,i.a.createElement("b",null,"Note: Only Last 6 months data can be downloaded. at a time only 30 days can be downloaded")),i.a.createElement(f.a,{color:"blue",onClick:U},"Download")))))))})},272:function(e,t,n){"use strict";var a=n(268),r=n.n(a),o=n(265),s=n.n(o),l=n(1),i=n.n(l),u=n(333),c=n(551),p=n(549),f=n(267);function d(e){var t=e.children,n=e.className,a=e.clearing,o=e.content,l=e.fitted,m=e.hidden,h=e.horizontal,v=e.inverted,g=e.section,k=e.vertical,w=s()("ui",Object(u.a)(a,"clearing"),Object(u.a)(l,"fitted"),Object(u.a)(m,"hidden"),Object(u.a)(h,"horizontal"),Object(u.a)(v,"inverted"),Object(u.a)(g,"section"),Object(u.a)(k,"vertical"),"divider",n),O=Object(c.a)(d,e),b=Object(p.a)(d,e);return i.a.createElement(b,r()({},O,{className:w}),f.a.isNil(t)?o:t)}d.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],d.propTypes={},t.a=d},273:function(e,t,n){e.exports=n(274)},274:function(e,t,n){"use strict";var a,r=(a=n(1))&&"object"==typeof a&&"default"in a?a.default:a,o=n(105);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function l(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var r=n[a],o=Object.getOwnPropertyDescriptor(t,r);o&&o.configurable&&void 0===e[r]&&Object.defineProperty(e,r,o)}}(e.prototype.constructor=e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e,t,n,a,r,o,s,l){if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,r,o,s,l],c=0;(i=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}};function c(e,t,n){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=n;else{var a=e.createTextRange();a.collapse(!0),a.moveStart("character",t),a.moveEnd("character",n-t),a.select()}}var p={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},f="_";function d(e,t,n){var a="",r="",o=null,s=[];if(void 0===t&&(t=f),null==n&&(n=p),!e||"string"!=typeof e)return{maskChar:t,formatChars:n,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var l=!1;return e.split("").forEach(function(e){l=!l&&"\\"===e||(l||!n[e]?(s.push(a.length),a.length===s.length-1&&(r+=e)):o=a.length+1,a+=e,!1)}),{maskChar:t,formatChars:n,prefix:r,mask:a,lastEditablePosition:o,permanents:s}}function m(e,t){return-1!==e.permanents.indexOf(t)}function h(e,t,n){var a=e.mask,r=e.formatChars;if(!n)return!1;if(m(e,t))return a[t]===n;var o=r[a[t]];return new RegExp(o).test(n)}function v(e,t){return t.split("").every(function(t,n){return m(e,n)||!h(e,n,t)})}function g(e,t){var n=e.maskChar,a=e.prefix;if(!n){for(;t.length>a.length&&m(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var r=a.length,o=t.length;o>=a.length;o--){var s=t[o];if(!m(e,o)&&h(e,o,s)){r=o+1;break}}return r}function k(e,t){return g(e,t)===e.mask.length}function w(e,t){var n=e.maskChar,a=e.mask,r=e.prefix;if(!n){for((t=O(e,"",t,0)).length<r.length&&(t=r);t.length<a.length&&m(e,t.length);)t+=a[t.length];return t}if(t)return O(e,w(e,""),t,0);for(var o=0;o<a.length;o++)m(e,o)?t+=a[o]:t+=n;return t}function O(e,t,n,a){var r=e.mask,o=e.maskChar,s=e.prefix,l=n.split(""),i=k(e,t);return!o&&a>t.length&&(t+=r.slice(t.length,a)),l.every(function(n){for(;c=n,m(e,u=a)&&c!==r[u];){if(a>=t.length&&(t+=r[a]),l=n,o&&m(e,a)&&l===o)return!0;if(++a>=r.length)return!1}var l,u,c;return!h(e,a,n)&&n!==o||(a<t.length?t=o||i||a<s.length?t.slice(0,a)+n+t.slice(a+1):(t=t.slice(0,a)+n+t.slice(a),w(e,t)):o||(t+=n),++a<r.length)}),t}function b(e,t){for(var n=e.mask,a=t;a<n.length;++a)if(!m(e,a))return a;return null}function y(e){return e||0===e?e+"":""}function S(e,t,n,a,r){var o=e.mask,s=e.prefix,l=e.lastEditablePosition,i=t,u="",c=0,p=0,f=Math.min(r.start,n.start);return n.end>r.start?p=(c=function(e,t,n,a){var r=e.mask,o=e.maskChar,s=n.split(""),l=a;return s.every(function(t){for(;s=t,m(e,n=a)&&s!==r[n];)if(++a>=r.length)return!1;var n,s;return(h(e,a,t)||t===o)&&a++,a<r.length}),a-l}(e,0,u=i.slice(r.start,n.end),f))?r.length:0:i.length<a.length&&(p=a.length-i.length),i=a,p&&(1!==p||r.length||(f=r.start===n.start?b(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!m(e,n))return n;return null}(e,n.start)),i=function(e,t,n,a){var r=n+a,o=e.maskChar,s=e.mask,l=e.prefix,i=t.split("");if(o)return i.map(function(t,a){return a<n||r<=a?t:m(e,a)?s[a]:o}).join("");for(var u=r;u<i.length;u++)m(e,u)&&(i[u]="");return n=Math.max(l.length,n),i.splice(n,r-n),t=i.join(""),w(e,t)}(e,i,f,p)),i=O(e,i,u,f),(f+=c)>=o.length?f=o.length:f<s.length&&!c?f=s.length:f>=s.length&&f<l&&c&&(f=b(e,f)),u||(u=null),{value:i=w(e,i),enteredString:u,selection:{start:f,end:f}}}function E(e){return"function"==typeof e}function C(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function M(e){return(C()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function x(e){(C()||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=M(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(x(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=o.findDOMNode(i(i(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=b(n.maskOptions,e);null!==t&&n.setCursorPosition(t)},n.setSelection=function(e,t,a){void 0===a&&(a={});var r=n.getInputDOMNode(),o=n.isFocused();r&&o&&(a.deferred||c(r,e,t),null!==n.selectionDeferId&&x(n.selectionDeferId),n.selectionDeferId=M(function(){n.selectionDeferId=null,c(r,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 a=document.selection.createRange();a.parentElement()===e&&(t=-a.moveStart("character",-e.value.length),n=-a.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,a=e.maskChar,r=e.permanents,o=e.formatChars;return{mask:t,maskChar:a,permanents:r,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:o}},n.isInputAutofilled=function(e,t,a,r){var o=n.getInputDOMNode();try{if(o.matches(":-webkit-autofill"))return!0}catch(u){}return!n.focused||r.end<a.length&&t.end===e.length},n.onChange=function(e){var t=i(i(n)).beforePasteState,a=i(i(n)).previousSelection,r=n.props.beforeMaskedValueChange,o=n.getInputValue(),s=n.value,l=n.getSelection();n.isInputAutofilled(o,l,s,a)&&(s=w(n.maskOptions,""),a={start:0,end:0,length:0}),t&&(a=t.selection,s=t.value,l={start:a.start+o.length,end:a.start+o.length,length:0},o=s.slice(0,a.start)+o+s.slice(a.end),n.beforePasteState=null);var u=S(n.maskOptions,o,l,s,a),c=u.enteredString,p=u.selection,f=u.value;if(E(r)){var d=r({value:f,selection:p},{value:s,selection:a},c,n.getBeforeMaskedValueChangeConfig());f=d.value,p=d.selection}n.setInputValue(f),E(n.props.onChange)&&n.props.onChange(e),n.isWindowsPhoneBrowser?n.setSelection(p.start,p.end,{deferred:!0}):n.setSelection(p.start,p.end)},n.onFocus=function(e){var t=n.props.beforeMaskedValueChange,a=n.maskOptions,r=a.mask,o=a.prefix;if(n.focused=!0,n.mounted=!0,r){if(n.value)g(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var s=w(n.maskOptions,o),l=w(n.maskOptions,s),i=g(n.maskOptions,l),u=b(n.maskOptions,i),c={start:u,end:u};if(E(t)){var p=t({value:l,selection:c},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());l=p.value,c=p.selection}var f=l!==n.getInputValue();f&&n.setInputValue(l),f&&E(n.props.onChange)&&n.props.onChange(e),n.setSelection(c.start,c.end)}n.runSaveSelectionLoop()}E(n.props.onFocus)&&n.props.onFocus(e)},n.onBlur=function(e){var t=n.props.beforeMaskedValueChange,a=n.maskOptions.mask;if(n.stopSaveSelectionLoop(),n.focused=!1,a&&!n.props.alwaysShowMask&&v(n.maskOptions,n.value)){var r="";E(t)&&(r=t({value:r,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var o=r!==n.getInputValue();o&&n.setInputValue(r),o&&E(n.props.onChange)&&n.props.onChange(e)}E(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 a=Math.abs(t.clientX-n.mouseDownX),r=Math.abs(t.clientY-n.mouseDownY),o=Math.max(a,r),s=(new Date).getTime()-n.mouseDownTime;(o<=10&&s<=200||o<=5&&s<=300)&&n.setCursorToEnd()}})}E(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){E(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&&E(n.props.inputRef)&&n.props.inputRef(e)};var a=t.mask,r=t.maskChar,s=t.formatChars,l=t.alwaysShowMask,u=t.beforeMaskedValueChange,p=t.defaultValue,f=t.value;n.maskOptions=d(a,r,s),null==p&&(p=""),null==f&&(f=p);var m=y(f);if(n.maskOptions.mask&&(l||m)&&(m=w(n.maskOptions,m),E(u))){var h=t.value;null==t.value&&(h=p),m=u({value:m,selection:null},{value:h=y(h),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=m,n}l(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,a=t.alwaysShowMask,r=t.mask,o=t.maskChar,s=t.formatChars,l=this.maskOptions,i=a||this.isFocused(),u=null!=this.props.value,c=u?y(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=d(r,o,s),this.maskOptions.mask){!l.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==l.mask;if(l.mask||u||(c=this.getInputValue()),(f||this.maskOptions.mask&&(c||i))&&(c=w(this.maskOptions,c)),f){var m=g(this.maskOptions,c);(null===p||m<p)&&(p=k(this.maskOptions,c)?m:b(this.maskOptions,m))}!this.maskOptions.mask||!v(this.maskOptions,c)||i||u&&this.props.value||(c="");var h={start:p,end:p};if(E(n)){var O=n({value:c,selection:h},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());c=O.value,h=O.selection}this.value=c;var S=this.getInputValue()!==this.value;S?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var C=!1;null!=h.start&&null!=h.end&&(C=!e||e.start!==h.start||e.end!==h.end),(C||S)&&this.setSelection(h.start,h.end)}else l.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&x(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),a=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],0<=t.indexOf(n)||(r[n]=e[n]);return r}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){E(n)||u(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],l=s({},a);o.forEach(function(e){return delete l[e]}),e=n(l),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==a[t]}).length&&u(!1)}else e=r.createElement("input",s({ref:this.handleRef},a));var i={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(a.disabled||a.readOnly||(i.onChange=this.onChange,i.onPaste=this.onPaste,i.onMouseDown=this.onMouseDown),null!=a.value&&(i.value=this.value)),e=r.cloneElement(e,i)},t}(r.Component);e.exports=D}}]);
//# sourceMappingURL=86.ffb40315.chunk.js.map
|