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.141.41.109
(window.webpackJsonp=window.webpackJsonp||[]).push([[125],{1054:function(e,t,n){"use strict";n.r(t);var a=n(3),o=n(99),r=n(100),s=n(102),i=n(101),l=n(103),u=n(1),c=n.n(u),p=n(858),f=n(1139),h=n(1106),d=n(272),m=n(1098),v=n(104),g=n(271),k=n(266),w=n(273),C=n.n(w),S=n(270),b=n(284),O=n.n(b),E=function(e){function t(){var e,n;Object(o.a)(this,t);for(var r=arguments.length,l=new Array(r),u=0;u<r;u++)l[u]=arguments[u];return(n=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(l)))).state={frmDeggrp:"",frmSubmit:!1,ftcode:"",vdatefrom:O()().subtract(7,"days").format("DD/MM/YYYY"),vdateto:O()().format("DD/MM/YYYY")},n.handleChange=function(e,t){switch(t.type){case"text":n.setState(Object(a.a)({},t.name,t.value));default:n.setState(Object(a.a)({},t.name,t.value))}n.setState({frmSubmit:!1})},n.handleSubmit=function(){var e=n.props.user.fdeggrp,t=n.state,a=t.vdatefrom,o=t.vdateto;if(console.log(a,o,e),""!==e)n.setState({frmSubmit:!0});else{n.props.showError({header:"Error",content:"Select Degree Group"})}},n.handleReport=function(){var e=n.props.user,t=e.fdeggrp,a=e.fcuruniv,o=n.state,r=o.reportType,s=o.rftype,i=o.tcodefrom,l=o.tcodeto,u=o.vdatefrom,c=o.vdateto;if(""!==t)window.open(g.c+r+"&univcode="+a+"°grp="+t+"&tcodefrom="+i+"&tcodeto="+l+"&vdatefrom="+u+"&vdateto="+c+"&format="+s+"&user="+JSON.stringify(n.props.user),"_blank");else{n.props.showError({header:"Error",content:"Select Degree Group"})}},n.handleChangedate=function(e){n.setState(Object(a.a)({},e.target.name,e.target.value))},n.handleCancel=function(){n.setState({reportType:"",reportFormat:"",frmDeggrp:""})},n.renderHeader=function(){return c.a.createElement(f.a.Header,{style:{display:"flex"}},c.a.createElement("h3",null,"Valuation Bill"),c.a.createElement("div",{className:"ml-auto"},c.a.createElement(h.a,{basic:!0,color:"blue",onClick:n.handleReport,content:"Report",icon:"file"}),c.a.createElement(h.a,{basic:!0,color:"black",icon:"ban",onClick:n.handleCancel,content:"Cancel"}),c.a.createElement(p.a,{to:"/dashboard"},c.a.createElement(h.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},n}return Object(l.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.state,t=(e.frmSubmit,e.ftcode),n=e.vdatefrom,a=e.vdateto,o={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},r=Object(S.i)();return c.a.createElement("div",{className:"animated fadeIn"},c.a.createElement(f.a,{fluid:!0},c.a.createElement(f.a.Content,null,this.renderHeader(),c.a.createElement(d.a,null),c.a.createElement(f.a.Description,{style:{overflowY:"auto",height:"".concat(r,"px")}},c.a.createElement("div",{className:"col-md-6"},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," Date Range "),c.a.createElement(C.a,{formatChars:o,type:"text",value:n,mask:"ed/nm/zyyy",placeholder:"Date From",name:"vdatefrom",onChange:this.handleChangedate})),c.a.createElement(m.a.Field,{width:8},c.a.createElement(C.a,{formatChars:o,type:"text",value:a,mask:"ed/nm/zyyy",placeholder:"To",name:"vdateto",onChange:this.handleChangedate,style:{marginTop:"1.6em"}}))),this.props.user.fcurtype<600?c.a.createElement(m.a.Group,null,c.a.createElement(m.a.Field,{width:16},c.a.createElement("label",null," Teacher Code"),c.a.createElement(m.a.Input,{formatChars:o,type:"text",value:t,placeholder:"Enter Teacher Code",name:"ftcode",onChange:this.handleChange}))):null,c.a.createElement(h.a,{color:"blue",onClick:this.handleSubmit},"Submit")))))))}}]),t}(u.Component);t.default=Object(v.b)(function(e){return{user:e.user}},{showError:k.w})(E)},273:function(e,t,n){e.exports=n(274)},274:function(e,t,n){"use strict";var a,o=(a=n(1))&&"object"==typeof a&&"default"in a?a.default:a,r=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 i(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var o=n[a],r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable&&void 0===e[o]&&Object.defineProperty(e,o,r)}}(e.prototype.constructor=e,t)}function l(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,o,r,s,i){if(!e){var l;if(void 0===t)l=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,o,r,s,i],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};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 h(e,t,n){var a="",o="",r=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 i=!1;return e.split("").forEach(function(e){i=!i&&"\\"===e||(i||!n[e]?(s.push(a.length),a.length===s.length-1&&(o+=e)):r=a.length+1,a+=e,!1)}),{maskChar:t,formatChars:n,prefix:o,mask:a,lastEditablePosition:r,permanents:s}}function d(e,t){return-1!==e.permanents.indexOf(t)}function m(e,t,n){var a=e.mask,o=e.formatChars;if(!n)return!1;if(d(e,t))return a[t]===n;var r=o[a[t]];return new RegExp(r).test(n)}function v(e,t){return t.split("").every(function(t,n){return d(e,n)||!m(e,n,t)})}function g(e,t){var n=e.maskChar,a=e.prefix;if(!n){for(;t.length>a.length&&d(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var o=a.length,r=t.length;r>=a.length;r--){var s=t[r];if(!d(e,r)&&m(e,r,s)){o=r+1;break}}return o}function k(e,t){return g(e,t)===e.mask.length}function w(e,t){var n=e.maskChar,a=e.mask,o=e.prefix;if(!n){for((t=C(e,"",t,0)).length<o.length&&(t=o);t.length<a.length&&d(e,t.length);)t+=a[t.length];return t}if(t)return C(e,w(e,""),t,0);for(var r=0;r<a.length;r++)d(e,r)?t+=a[r]:t+=n;return t}function C(e,t,n,a){var o=e.mask,r=e.maskChar,s=e.prefix,i=n.split(""),l=k(e,t);return!r&&a>t.length&&(t+=o.slice(t.length,a)),i.every(function(n){for(;c=n,d(e,u=a)&&c!==o[u];){if(a>=t.length&&(t+=o[a]),i=n,r&&d(e,a)&&i===r)return!0;if(++a>=o.length)return!1}var i,u,c;return!m(e,a,n)&&n!==r||(a<t.length?t=r||l||a<s.length?t.slice(0,a)+n+t.slice(a+1):(t=t.slice(0,a)+n+t.slice(a),w(e,t)):r||(t+=n),++a<o.length)}),t}function S(e,t){for(var n=e.mask,a=t;a<n.length;++a)if(!d(e,a))return a;return null}function b(e){return e||0===e?e+"":""}function O(e,t,n,a,o){var r=e.mask,s=e.prefix,i=e.lastEditablePosition,l=t,u="",c=0,p=0,f=Math.min(o.start,n.start);return n.end>o.start?p=(c=function(e,t,n,a){var o=e.mask,r=e.maskChar,s=n.split(""),i=a;return s.every(function(t){for(;s=t,d(e,n=a)&&s!==o[n];)if(++a>=o.length)return!1;var n,s;return(m(e,a,t)||t===r)&&a++,a<o.length}),a-i}(e,0,u=l.slice(o.start,n.end),f))?o.length:0:l.length<a.length&&(p=a.length-l.length),l=a,p&&(1!==p||o.length||(f=o.start===n.start?S(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!d(e,n))return n;return null}(e,n.start)),l=function(e,t,n,a){var o=n+a,r=e.maskChar,s=e.mask,i=e.prefix,l=t.split("");if(r)return l.map(function(t,a){return a<n||o<=a?t:d(e,a)?s[a]:r}).join("");for(var u=o;u<l.length;u++)d(e,u)&&(l[u]="");return n=Math.max(i.length,n),l.splice(n,o-n),t=l.join(""),w(e,t)}(e,l,f,p)),l=C(e,l,u,f),(f+=c)>=r.length?f=r.length:f<s.length&&!c?f=s.length:f>=s.length&&f<i&&c&&(f=S(e,f)),u||(u=null),{value:l=w(e,l),enteredString:u,selection:{start:f,end:f}}}function E(e){return"function"==typeof e}function y(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function D(e){return(y()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function M(e){(y()||clearTimeout)(e)}var I=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=D(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(M(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=r.findDOMNode(l(l(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=S(n.maskOptions,e);null!==t&&n.setCursorPosition(t)},n.setSelection=function(e,t,a){void 0===a&&(a={});var o=n.getInputDOMNode(),r=n.isFocused();o&&r&&(a.deferred||c(o,e,t),null!==n.selectionDeferId&&M(n.selectionDeferId),n.selectionDeferId=D(function(){n.selectionDeferId=null,c(o,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,o=e.permanents,r=e.formatChars;return{mask:t,maskChar:a,permanents:o,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:r}},n.isInputAutofilled=function(e,t,a,o){var r=n.getInputDOMNode();try{if(r.matches(":-webkit-autofill"))return!0}catch(u){}return!n.focused||o.end<a.length&&t.end===e.length},n.onChange=function(e){var t=l(l(n)).beforePasteState,a=l(l(n)).previousSelection,o=n.props.beforeMaskedValueChange,r=n.getInputValue(),s=n.value,i=n.getSelection();n.isInputAutofilled(r,i,s,a)&&(s=w(n.maskOptions,""),a={start:0,end:0,length:0}),t&&(a=t.selection,s=t.value,i={start:a.start+r.length,end:a.start+r.length,length:0},r=s.slice(0,a.start)+r+s.slice(a.end),n.beforePasteState=null);var u=O(n.maskOptions,r,i,s,a),c=u.enteredString,p=u.selection,f=u.value;if(E(o)){var h=o({value:f,selection:p},{value:s,selection:a},c,n.getBeforeMaskedValueChangeConfig());f=h.value,p=h.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,o=a.mask,r=a.prefix;if(n.focused=!0,n.mounted=!0,o){if(n.value)g(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var s=w(n.maskOptions,r),i=w(n.maskOptions,s),l=g(n.maskOptions,i),u=S(n.maskOptions,l),c={start:u,end:u};if(E(t)){var p=t({value:i,selection:c},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());i=p.value,c=p.selection}var f=i!==n.getInputValue();f&&n.setInputValue(i),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 o="";E(t)&&(o=t({value:o,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var r=o!==n.getInputValue();r&&n.setInputValue(o),r&&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),o=Math.abs(t.clientY-n.mouseDownY),r=Math.max(a,o),s=(new Date).getTime()-n.mouseDownTime;(r<=10&&s<=200||r<=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,o=t.maskChar,s=t.formatChars,i=t.alwaysShowMask,u=t.beforeMaskedValueChange,p=t.defaultValue,f=t.value;n.maskOptions=h(a,o,s),null==p&&(p=""),null==f&&(f=p);var d=b(f);if(n.maskOptions.mask&&(i||d)&&(d=w(n.maskOptions,d),E(u))){var m=t.value;null==t.value&&(m=p),d=u({value:d,selection:null},{value:m=b(m),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=d,n}i(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,o=t.mask,r=t.maskChar,s=t.formatChars,i=this.maskOptions,l=a||this.isFocused(),u=null!=this.props.value,c=u?b(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=h(o,r,s),this.maskOptions.mask){!i.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==i.mask;if(i.mask||u||(c=this.getInputValue()),(f||this.maskOptions.mask&&(c||l))&&(c=w(this.maskOptions,c)),f){var d=g(this.maskOptions,c);(null===p||d<p)&&(p=k(this.maskOptions,c)?d:S(this.maskOptions,d))}!this.maskOptions.mask||!v(this.maskOptions,c)||l||u&&this.props.value||(c="");var m={start:p,end:p};if(E(n)){var C=n({value:c,selection:m},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());c=C.value,m=C.selection}this.value=c;var O=this.getInputValue()!==this.value;O?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var y=!1;null!=m.start&&null!=m.end&&(y=!e||e.start!==m.start||e.end!==m.end),(y||O)&&this.setSelection(m.start,m.end)}else i.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&M(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,o={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],0<=t.indexOf(n)||(o[n]=e[n]);return o}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){E(n)||u(!1);var r=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],i=s({},a);r.forEach(function(e){return delete i[e]}),e=n(i),r.filter(function(t){return null!=e.props[t]&&e.props[t]!==a[t]}).length&&u(!1)}else e=o.createElement("input",s({ref:this.handleRef},a));var l={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(a.disabled||a.readOnly||(l.onChange=this.onChange,l.onPaste=this.onPaste,l.onMouseDown=this.onMouseDown),null!=a.value&&(l.value=this.value)),e=o.cloneElement(e,l)},t}(o.Component);e.exports=I}}]);
//# sourceMappingURL=125.4528d150.chunk.js.map
|