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.25.100
(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{1155:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),l=a(68),o=a(3),s=a(99),i=a(100),c=a(102),u=a(101),p=a(103),m=a(1),d=a.n(m),h=a(858),f=a(1139),g=a(1106),v=a(272),y=a(1098),C=a(1100),E=a(1101),w=a(104),x=a(271),k=a(266),T=a(273),b=a.n(T),S=a(270),R=a(284),F=a.n(R),O={dateFilter:function(e){return-1==e.indexOf("_")},qpCodeFilter:function(e){return 1==e.length||5==e.length},regNoFilter:function(e){return 1==e.length||8==e.length},filterFields:function(){var e=Object(l.a)(r.a.mark(function e(t){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],n=[],e.next=4,t.forEach(function(e){(e.type=e.type.toUpperCase(),"DATEFROM"==e.type||"DATETO"==e.type||"DATE"==e.type)&&(0==O.dateFilter(e.data)?a.push(e.type):n.push(e.type));"QPCODEFROM"!=e.type&&"QPCODETO"!=e.type&&"QPCODE"!=e.type||(0==O.qpCodeFilter(e.data)?a.push(e.type):n.push(e.type));"REGNOFROM"!=e.type&&"REGNOTO"!=e.type&&"REGNO"!=e.type||(0==O.regNoFilter(e.data)?a.push(e.type.toUpperCase()):n.push(e.type))});case 4:if(!(a.length>0)){e.next=12;break}if(!(a.length>1)){e.next=9;break}return e.abrupt("return",{status:!1,fields:a,msg:a+" fields are incorrect!"});case 9:return e.abrupt("return",{status:!1,fields:a,msg:a+" field is incorrect!"});case 10:e.next=13;break;case 12:return e.abrupt("return",{status:!0,fields:n,msg:""});case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},D=a(288),P=function(e){function t(){var e,a,n;Object(s.a)(this,t);for(var i=arguments.length,p=new Array(i),m=0;m<i;m++)p[m]=arguments[m];return(n=Object(c.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(p)))).state=(a={showtable:!1,frmDeggrp:"",reportType:"datewWiseValDet",frmSubmit:!1,rftype:"PDF",tcodefrom:"0000",tcodeto:"zzzz",vdatefrom:F()().format("DD/MM/YYYY"),vdateto:F()().format("DD/MM/YYYY"),qpcodeFrom:"0",qpcodeTo:"ZZZZZ",regnoFrom:"0",regnoTo:"ZZZZZZZZ",degFrom:"0",degTo:"ZZZZZ",correctionType:"ALL",status:"ALL"},Object(o.a)(a,"reportType","QPSummary"),Object(o.a)(a,"Examno","ABCDEF"),Object(o.a)(a,"fyear",""),Object(o.a)(a,"fexamtype",""),Object(o.a)(a,"fdeggrp",""),Object(o.a)(a,"fexamdate",""),a),n.changeDeggrp=function(e,t){console.log(t.value);var a=n.props.deggrp.filter(function(e,a){return e.fdeggrp===t.value})[0];n.setState({fyear:a.fyear,fexamtype:a.fexamtype,fexamdate:a.fexamdate,fdeggrp:t.value,frmSubmit:!1})},n.handleReport=function(){var e=n.props.user.fcuruniv,t={};t.dateFrom=n.state.vdatefrom,t.dateTo=n.state.vdateto,t.qpcodeFrom=n.state.qpcodeFrom,t.qpcodeTo=n.state.qpcodeTo,t.regnoFrom=n.state.regnoFrom,t.regnoTo=n.state.regnoTo,t.correctionType=n.state.correctionType,t.status=n.state.status,t.reportType=n.state.reportType,t.degFrom=n.state.degFrom,t.degTo=n.state.degTo,t.Examno=n.state.Examno,"Detail"==t.reportType?window.open(x.c+"getRvPcReportList&univcode="+e+"&dateFrom="+t.dateFrom+"&dateTo="+t.dateTo+"&qpcodeFrom="+t.qpcodeFrom+"&qpcodeTo="+t.qpcodeTo+"®noFrom="+t.regnoFrom+"®noTo="+t.regnoTo+"&correctionType="+t.correctionType+"&status="+t.status+"&reportType="+t.reportType+"&fdeggrp="+n.state.fdeggrp+"&fyear="+n.state.fyear+"&fexamtype="+n.state.fexamtype,"_blank"):"CheckList"==t.reportType||"QPSummary"==t.reportType?window.open(x.c+"getRvPcSummaryList&univcode="+e+"&dateFrom="+t.dateFrom+"&dateTo="+t.dateTo+"&qpcodeFrom="+t.qpcodeFrom+"&qpcodeTo="+t.qpcodeTo+"®noFrom="+t.regnoFrom+"®noTo="+t.regnoTo+"°From="+t.degFrom+"°To="+t.degTo+"&correctionType="+t.correctionType+"&status="+t.status+"&reportType="+t.reportType+"&fexamrange="+t.Examno+"&fdeggrp="+n.state.fdeggrp+"&fyear="+n.state.fyear+"&fexamtype="+n.state.fexamtype,"_blank"):"DEGSummary"==t.reportType?window.open(x.c+"getRvPcDEGSummaryList&univcode="+e+"&dateFrom="+t.dateFrom+"&dateTo="+t.dateTo+"&qpcodeFrom="+t.qpcodeFrom+"&qpcodeTo="+t.qpcodeTo+"®noFrom="+t.regnoFrom+"®noTo="+t.regnoTo+"°from="+t.degFrom+"°to="+t.degTo+"&examno="+t.Examno+"&correctionType="+t.correctionType+"&status="+t.status+"&reportType="+t.reportType+"&fdeggrp="+n.state.fdeggrp+"&fyear="+n.state.fyear+"&fexamtype="+n.state.fexamtype,"_blank"):"RVRTPCSUM"==t.reportType&&window.open(x.c+"getrvrtpcsum&univcode="+e+"°from="+t.degFrom+"°to="+t.degTo+"&examno="+t.Examno+"&reportType="+t.reportType+"&fdeggrp="+n.state.fdeggrp+"&fyear="+n.state.fyear+"&fexamtype="+n.state.fexamtype,"_blank")},n.handleChange=function(e,t){switch(t.type){case"text":"regnoFrom"!==t.name&&"regnoTo"!==t.name&&"qpcodeFrom"!==t.name&&"qpcodeTo"!==t.name||(t.value=t.value.toUpperCase()),n.setState(Object(o.a)({},t.name,t.value));default:n.setState(Object(o.a)({},t.name,t.value))}n.setState({frmSubmit:!1})},n.handleSubmit=Object(l.a)(r.a.mark(function e(){var t,a,l,o,s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.props.user,a=t.fdeggrp,t.fcuruniv,(l={}).dateFrom=n.state.vdatefrom,l.dateTo=n.state.vdateto,l.qpcodeFrom=n.state.qpcodeFrom,l.qpcodeTo=n.state.qpcodeTo,l.regnoFrom=n.state.regnoFrom,l.regnoTo=n.state.regnoTo,l.correctionType=n.state.correctionType,l.status=n.state.status,l.reportType=n.state.reportType,l.fdeggrp=a,l.actionType="GET_RV_PC_REPORT",o=[{type:"dateFrom",data:l.dateFrom},{type:"dateTo",data:l.dateTo},{type:"regnoFrom",data:l.regnoFrom},{type:"regnoTo",data:l.regnoTo},{type:"qpcodeFrom",data:l.qpcodeFrom},{type:"qpcodeTo",data:l.qpcodeTo}],e.next=16,O.filterFields(o);case 16:if(0!=(s=e.sent).status){e.next=21;break}alert(s.msg),e.next=24;break;case 21:return e.next=23,n.props.fetchRvPcReport(l);case 23:n.props.dailyRvPcReport.length>0&&n.setState({frmSubmit:!0});case 24:case"end":return e.stop()}},e)})),n.handleChangedate=function(e){n.setState(Object(o.a)({},e.target.name,e.target.value))},n.handleCancel=function(){n.setState({reportType:"",reportFormat:"",frmDeggrp:""})},n.renderHeader=function(){return d.a.createElement(f.a.Header,{style:{display:"flex"}},d.a.createElement("h3",null,"RV/PC Daily Report"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(g.a,{basic:!0,color:"blue",onClick:n.handleReport,content:"Report",icon:"file"}),d.a.createElement(g.a,{basic:!0,color:"black",icon:"ban",onClick:n.handleCancel,content:"Cancel"}),d.a.createElement(h.a,{to:"/dashboard"},d.a.createElement(g.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},n}return Object(p.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchDegGrp()}},{key:"render",value:function(){var e=this.state,t=e.vdatefrom,a=e.vdateto,n=e.qpcodeFrom,r=e.qpcodeTo,l=e.regnoFrom,o=e.regnoTo,s=e.correctionType,i=e.status,c=e.reportType,u=e.frmSubmit,p=e.degFrom,m=e.degTo,h=e.Examno,g=e.fyear,w=e.fexamtype,x=e.fdeggrp,k=e.fexamdate,T={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},R=(Number(this.props.user.fcurtype),Object(S.i)());return d.a.createElement("div",{className:"animated fadeIn"},d.a.createElement(f.a,{fluid:!0},d.a.createElement(f.a.Content,null,this.renderHeader(),d.a.createElement(v.a,null),d.a.createElement(f.a.Description,{style:{overflowY:"auto",height:"".concat(R,"px")}},d.a.createElement("div",{className:"col-md-6"},d.a.createElement(y.a,null,d.a.createElement(D.a,{pdeggrp:{fdeggrp:x,fyear:g,fexamtype:w,fexamdate:k},changeDeggrp:this.changeDeggrp}),d.a.createElement(y.a.Field,{width:16},d.a.createElement("label",null,"Report Type"),d.a.createElement(C.a,{placeholder:"Report Type",name:"reportType",value:c,selection:!0,search:!0,options:[{value:"RVRTPCSUM",text:"RV/RT/PC Summary"},{value:"QPSummary",text:"QP Wise Summary"},{value:"DEGSummary",text:"Degree Wise Summary"},{value:"Detail",text:"Detail"},{value:"CheckList",text:"CheckList"}],onChange:this.handleChange})),"RVRTPCSUM"!==c?d.a.createElement(y.a.Group,null,d.a.createElement(y.a.Field,{width:8},d.a.createElement("label",null," Date Range "),d.a.createElement(b.a,{formatChars:T,type:"text",value:t,mask:"ed/nm/zyyy",placeholder:"Date From",name:"vdatefrom",onChange:this.handleChangedate})),d.a.createElement(y.a.Field,{width:8},d.a.createElement(b.a,{formatChars:T,type:"text",value:a,mask:"ed/nm/zyyy",placeholder:"To",name:"vdateto",onChange:this.handleChangedate,style:{marginTop:"1.6em"}}))):null,"RVRTPCSUM"!==c?d.a.createElement(y.a.Group,null,d.a.createElement(y.a.Field,{width:8},d.a.createElement("label",null," QP Code Range "),d.a.createElement(y.a.Input,{type:"text",value:n,maxLength:5,placeholder:"QP Code From",name:"qpcodeFrom",onChange:this.handleChange})),d.a.createElement(y.a.Field,{width:8},d.a.createElement(y.a.Input,{type:"text",value:r,maxLength:5,placeholder:"QP Code To",name:"qpcodeTo",onChange:this.handleChange,style:{marginTop:"1.6em"}}))):null,"Detail"===c?d.a.createElement(y.a.Group,null,d.a.createElement(y.a.Field,{width:8},d.a.createElement("label",null," Regno Range "),d.a.createElement(y.a.Input,{type:"text",value:l,maxLength:8,placeholder:"Regno From",name:"regnoFrom",onChange:this.handleChange})),d.a.createElement(y.a.Field,{width:8},d.a.createElement(y.a.Input,{type:"text",value:o,placeholder:"RegNo To",name:"regnoTo",maxLength:8,onChange:this.handleChange,style:{marginTop:"1.6em"}}))):null,"DEGSummary"===c||"RVRTPCSUM"===c||"CheckList"===c?d.a.createElement(y.a.Group,null,d.a.createElement(y.a.Field,{width:8},d.a.createElement("label",null," Degree Range "),d.a.createElement(y.a.Input,{type:"text",value:p,maxLength:8,placeholder:"Degree From",name:"degFrom",onChange:this.handleChange})),d.a.createElement(y.a.Field,{width:8},d.a.createElement(y.a.Input,{type:"text",value:m,placeholder:"Degree To",name:"degTo",maxLength:8,onChange:this.handleChange,style:{marginTop:"1.6em"}}))):null,"RVRTPCSUM"!==c?d.a.createElement(y.a.Group,null,d.a.createElement(y.a.Field,{width:8},d.a.createElement("label",null,"Application Type"),d.a.createElement(C.a,{placeholder:"Application Type",name:"correctionType",value:s,selection:!0,search:!0,options:[{value:"RV",text:"Revaluation"},{value:"RT",text:"Retotaling"},{value:"PC",text:"Photo Copy"},{value:"RI",text:"Result Improvement"},{value:"ALL",text:"ALL"}],onChange:this.handleChange})),d.a.createElement(y.a.Field,{width:8},d.a.createElement("label",null,"Status"),d.a.createElement(C.a,{placeholder:"Status",name:"status",value:i,selection:!0,search:!0,options:[{value:"ALL",text:"ALL"},{value:"NotPulled",text:"Not Pulled"},{value:"Pulled",text:"Pulled"},{value:"Sent",text:"Sent"},{value:"NotSent",text:"Not Sent"}],onChange:this.handleChange}))):null,"DEGSummary"===c||"RVRTPCSUM"===c||"CheckList"===c?d.a.createElement(y.a.Group,null,d.a.createElement(y.a.Field,{width:8},d.a.createElement("label",null," Examno "),d.a.createElement(y.a.Input,{type:"text",value:h,maxLength:8,placeholder:"Examno",name:"Examno",onChange:this.handleChange}))):null,d.a.createElement("br",null))),0!=this.props.dailyRvPcReport.length&&"Detail"==this.state.reportType&&1==u&&d.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky1"},d.a.createElement(E.a.Header,{style:{backgroundColor:"bule !important"}},d.a.createElement(E.a.Row,null,d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center",rowSpan:"2"},"Sl. No."),d.a.createElement(E.a.HeaderCell,{style:{width:"10%"},textAlign:"center",rowSpan:"2"},"Date"),d.a.createElement(E.a.HeaderCell,{style:{width:"10%"},textAlign:"center",rowSpan:"2"},"QP Code"),d.a.createElement(E.a.HeaderCell,{style:{width:"15%"},textAlign:"center",rowSpan:"2"},"Subject Name"),d.a.createElement(E.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Application No."),d.a.createElement(E.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Reg No."),d.a.createElement(E.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Name"),d.a.createElement(E.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Application Type"),d.a.createElement(E.a.HeaderCell,{textAlign:"center",style:{width:"10%"}},"Amount"))),d.a.createElement(E.a.Body,null,this.props.dailyRvPcReport.map(function(e,t){return"RV"==e.fcorrtype?e.fcorrtype="Revaluation":"RT"==e.fcorrtype?e.fcorrtype="Retotalling":e.fcorrtype="Photo Copy",d.a.createElement(E.a.Row,{key:t,style:{overflow:"hidden",textAlign:"center"}},d.a.createElement(E.a.Cell,{textAlign:"center"},t+1),d.a.createElement(E.a.Cell,{style:{textAlign:"center"}},e.fappdate),d.a.createElement(E.a.Cell,{style:{textAlign:"center"}},e.fqpcode),d.a.createElement(E.a.Cell,{style:{textAlign:"left"}},e.fsubname),d.a.createElement(E.a.Cell,{style:{textAlign:"center"}},e.appno),d.a.createElement(E.a.Cell,{style:{textAlign:"center"}},e.fregno),d.a.createElement(E.a.Cell,{style:{textAlign:"left"}},e.fname),d.a.createElement(E.a.Cell,null,e.fcorrtype),d.a.createElement(E.a.Cell,null,e.famount))}))),0!=this.props.dailyRvPcReport.length&&"Summary"==this.state.reportType&&1==u&&d.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky1"},d.a.createElement(E.a.Header,{style:{backgroundColor:"bule !important"}},d.a.createElement(E.a.Row,null,d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center"},"Sl. No."),d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"Date"),d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},textAlign:"center"},"QP Code"),d.a.createElement(E.a.HeaderCell,{style:{width:"30%"},textAlign:"center"},"Subject Name"),d.a.createElement(E.a.HeaderCell,{textAlign:"center"},"Application Type"),d.a.createElement(E.a.HeaderCell,{textAlign:"center"},"Application Count"),d.a.createElement(E.a.HeaderCell,{textAlign:"center"},"Pulled Count"),d.a.createElement(E.a.HeaderCell,{textAlign:"center"},"Sent Count"),d.a.createElement(E.a.HeaderCell,{textAlign:"center"},"Not Pulled Count"),d.a.createElement(E.a.HeaderCell,{textAlign:"center"},"Not Sent Count"))),d.a.createElement(E.a.Body,null,this.props.dailyRvPcReport.map(function(e,t){"RV"==e.fcorrtype?e.fcorrtype="Revaluation":"RT"==e.fcorrtype?e.fcorrtype="Retotalling":e.fcorrtype="Photo Copy";var a=Number(e.fappcount)-Number(e.fpullcnt),n=Number(e.fappcount)-Number(e.fsentcnt);return d.a.createElement(E.a.Row,{key:t,style:{overflow:"hidden",textAlign:"center"}},d.a.createElement(E.a.Cell,{textAlign:"center"},t+1),d.a.createElement(E.a.Cell,{style:{textAlign:"center"}},e.fappdate),d.a.createElement(E.a.Cell,{style:{textAlign:"center"}},e.fqpcode),d.a.createElement(E.a.Cell,{style:{textAlign:"left"}},e.fsubname),d.a.createElement(E.a.Cell,null,e.fcorrtype),d.a.createElement(E.a.Cell,null,e.fappcount),d.a.createElement(E.a.Cell,null,e.fpullcnt),d.a.createElement(E.a.Cell,null,e.fsentcnt),d.a.createElement(E.a.Cell,null,a),d.a.createElement(E.a.Cell,null,n))}))),0!=this.props.dailyRvPcReport.length&&"CheckList"==this.state.reportType&&1==u&&d.a.createElement(E.a,{celled:!0,padded:!0,selectable:!0,size:"small",color:"olive",className:"tbl sticky1"},d.a.createElement(E.a.Header,{style:{backgroundColor:"bule !important"}},d.a.createElement(E.a.Row,null,d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},singleLine:!0,textAlign:"center",rowSpan:"2"},"Sl. No."),d.a.createElement(E.a.HeaderCell,{style:{width:"15%"},textAlign:"center",rowSpan:"2"},"Subject Name"),d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},textAlign:"center",rowSpan:"2"},"QP Code"),d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},textAlign:"center",rowSpan:"2"},"Packet"),d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},textAlign:"center",rowSpan:"2"},"Bundle No."),d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},textAlign:"center",rowSpan:"2"},"Bundle SL.NO."),d.a.createElement(E.a.HeaderCell,{style:{width:"5%"},textAlign:"center",rowSpan:"2"},"Pull Status"))),d.a.createElement(E.a.Body,null,this.props.dailyRvPcReport.map(function(e,t){return d.a.createElement(E.a.Row,{key:t,style:{overflow:"hidden",textAlign:"center"}},d.a.createElement(E.a.Cell,{textAlign:"center"},t+1),d.a.createElement(E.a.Cell,{style:{textAlign:"center"}},e.fappdate),d.a.createElement(E.a.Cell,{style:{textAlign:"left"}},e.fsubname),d.a.createElement(E.a.Cell,{style:{textAlign:"center"}},e.fqpcode),d.a.createElement(E.a.Cell,null,e.fpacket),d.a.createElement(E.a.Cell,null,e.fbundleno),d.a.createElement(E.a.Cell,null,e.fregcode),d.a.createElement(E.a.Cell,null,e.fpullstatus))})))))))}}]),t}(m.Component);t.default=Object(w.b)(function(e){return{user:e.user,deggrp:e.deggrp,dailyRvPcReport:e.dailyRvPcReport}},{showError:k.w,fetchRvPcReport:k.n,clearDailyValuation:k.d,fetchDegGrp:k.j})(P)},273:function(e,t,a){e.exports=a(274)},274:function(e,t,a){"use strict";var n,r=(n=a(1))&&"object"==typeof n&&"default"in n?n.default:n,l=a(105);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),function(e,t){for(var a=Object.getOwnPropertyNames(t),n=0;n<a.length;n++){var r=a[n],l=Object.getOwnPropertyDescriptor(t,r);l&&l.configurable&&void 0===e[r]&&Object.defineProperty(e,r,l)}}(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 c=function(e,t,a,n,r,l,o,s){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 c=[a,n,r,l,o,s],u=0;(i=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}};function u(e,t,a){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=a;else{var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t),n.moveEnd("character",a-t),n.select()}}var p={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},m="_";function d(e,t,a){var n="",r="",l=null,o=[];if(void 0===t&&(t=m),null==a&&(a=p),!e||"string"!=typeof e)return{maskChar:t,formatChars:a,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var s=!1;return e.split("").forEach(function(e){s=!s&&"\\"===e||(s||!a[e]?(o.push(n.length),n.length===o.length-1&&(r+=e)):l=n.length+1,n+=e,!1)}),{maskChar:t,formatChars:a,prefix:r,mask:n,lastEditablePosition:l,permanents:o}}function h(e,t){return-1!==e.permanents.indexOf(t)}function f(e,t,a){var n=e.mask,r=e.formatChars;if(!a)return!1;if(h(e,t))return n[t]===a;var l=r[n[t]];return new RegExp(l).test(a)}function g(e,t){return t.split("").every(function(t,a){return h(e,a)||!f(e,a,t)})}function v(e,t){var a=e.maskChar,n=e.prefix;if(!a){for(;t.length>n.length&&h(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var r=n.length,l=t.length;l>=n.length;l--){var o=t[l];if(!h(e,l)&&f(e,l,o)){r=l+1;break}}return r}function y(e,t){return v(e,t)===e.mask.length}function C(e,t){var a=e.maskChar,n=e.mask,r=e.prefix;if(!a){for((t=E(e,"",t,0)).length<r.length&&(t=r);t.length<n.length&&h(e,t.length);)t+=n[t.length];return t}if(t)return E(e,C(e,""),t,0);for(var l=0;l<n.length;l++)h(e,l)?t+=n[l]:t+=a;return t}function E(e,t,a,n){var r=e.mask,l=e.maskChar,o=e.prefix,s=a.split(""),i=y(e,t);return!l&&n>t.length&&(t+=r.slice(t.length,n)),s.every(function(a){for(;u=a,h(e,c=n)&&u!==r[c];){if(n>=t.length&&(t+=r[n]),s=a,l&&h(e,n)&&s===l)return!0;if(++n>=r.length)return!1}var s,c,u;return!f(e,n,a)&&a!==l||(n<t.length?t=l||i||n<o.length?t.slice(0,n)+a+t.slice(n+1):(t=t.slice(0,n)+a+t.slice(n),C(e,t)):l||(t+=a),++n<r.length)}),t}function w(e,t){for(var a=e.mask,n=t;n<a.length;++n)if(!h(e,n))return n;return null}function x(e){return e||0===e?e+"":""}function k(e,t,a,n,r){var l=e.mask,o=e.prefix,s=e.lastEditablePosition,i=t,c="",u=0,p=0,m=Math.min(r.start,a.start);return a.end>r.start?p=(u=function(e,t,a,n){var r=e.mask,l=e.maskChar,o=a.split(""),s=n;return o.every(function(t){for(;o=t,h(e,a=n)&&o!==r[a];)if(++n>=r.length)return!1;var a,o;return(f(e,n,t)||t===l)&&n++,n<r.length}),n-s}(e,0,c=i.slice(r.start,a.end),m))?r.length:0:i.length<n.length&&(p=n.length-i.length),i=n,p&&(1!==p||r.length||(m=r.start===a.start?w(e,a.start):function(e,t){for(var a=t;0<=a;--a)if(!h(e,a))return a;return null}(e,a.start)),i=function(e,t,a,n){var r=a+n,l=e.maskChar,o=e.mask,s=e.prefix,i=t.split("");if(l)return i.map(function(t,n){return n<a||r<=n?t:h(e,n)?o[n]:l}).join("");for(var c=r;c<i.length;c++)h(e,c)&&(i[c]="");return a=Math.max(s.length,a),i.splice(a,r-a),t=i.join(""),C(e,t)}(e,i,m,p)),i=E(e,i,c,m),(m+=u)>=l.length?m=l.length:m<o.length&&!u?m=o.length:m>=o.length&&m<s&&u&&(m=w(e,m)),c||(c=null),{value:i=C(e,i),enteredString:c,selection:{start:m,end:m}}}function T(e){return"function"==typeof e}function b(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function S(e){return(b()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function R(e){(b()||clearTimeout)(e)}var F=function(e){function t(t){var a=e.call(this,t)||this;a.focused=!1,a.mounted=!1,a.previousSelection=null,a.selectionDeferId=null,a.saveSelectionLoopDeferId=null,a.saveSelectionLoop=function(){a.previousSelection=a.getSelection(),a.saveSelectionLoopDeferId=S(a.saveSelectionLoop)},a.runSaveSelectionLoop=function(){null===a.saveSelectionLoopDeferId&&a.saveSelectionLoop()},a.stopSaveSelectionLoop=function(){null!==a.saveSelectionLoopDeferId&&(R(a.saveSelectionLoopDeferId),a.saveSelectionLoopDeferId=null,a.previousSelection=null)},a.getInputDOMNode=function(){if(!a.mounted)return null;var e=l.findDOMNode(i(i(a))),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},a.getInputValue=function(){var e=a.getInputDOMNode();return e?e.value:null},a.setInputValue=function(e){var t=a.getInputDOMNode();t&&(a.value=e,t.value=e)},a.setCursorToEnd=function(){var e=v(a.maskOptions,a.value),t=w(a.maskOptions,e);null!==t&&a.setCursorPosition(t)},a.setSelection=function(e,t,n){void 0===n&&(n={});var r=a.getInputDOMNode(),l=a.isFocused();r&&l&&(n.deferred||u(r,e,t),null!==a.selectionDeferId&&R(a.selectionDeferId),a.selectionDeferId=S(function(){a.selectionDeferId=null,u(r,e,t)}),a.previousSelection={start:e,end:t,length:Math.abs(t-e)})},a.getSelection=function(){return function(e){var t=0,a=0;if("selectionStart"in e&&"selectionEnd"in e)t=e.selectionStart,a=e.selectionEnd;else{var n=document.selection.createRange();n.parentElement()===e&&(t=-n.moveStart("character",-e.value.length),a=-n.moveEnd("character",-e.value.length))}return{start:t,end:a,length:a-t}}(a.getInputDOMNode())},a.getCursorPosition=function(){return a.getSelection().start},a.setCursorPosition=function(e){a.setSelection(e,e)},a.isFocused=function(){return a.focused},a.getBeforeMaskedValueChangeConfig=function(){var e=a.maskOptions,t=e.mask,n=e.maskChar,r=e.permanents,l=e.formatChars;return{mask:t,maskChar:n,permanents:r,alwaysShowMask:!!a.props.alwaysShowMask,formatChars:l}},a.isInputAutofilled=function(e,t,n,r){var l=a.getInputDOMNode();try{if(l.matches(":-webkit-autofill"))return!0}catch(c){}return!a.focused||r.end<n.length&&t.end===e.length},a.onChange=function(e){var t=i(i(a)).beforePasteState,n=i(i(a)).previousSelection,r=a.props.beforeMaskedValueChange,l=a.getInputValue(),o=a.value,s=a.getSelection();a.isInputAutofilled(l,s,o,n)&&(o=C(a.maskOptions,""),n={start:0,end:0,length:0}),t&&(n=t.selection,o=t.value,s={start:n.start+l.length,end:n.start+l.length,length:0},l=o.slice(0,n.start)+l+o.slice(n.end),a.beforePasteState=null);var c=k(a.maskOptions,l,s,o,n),u=c.enteredString,p=c.selection,m=c.value;if(T(r)){var d=r({value:m,selection:p},{value:o,selection:n},u,a.getBeforeMaskedValueChangeConfig());m=d.value,p=d.selection}a.setInputValue(m),T(a.props.onChange)&&a.props.onChange(e),a.isWindowsPhoneBrowser?a.setSelection(p.start,p.end,{deferred:!0}):a.setSelection(p.start,p.end)},a.onFocus=function(e){var t=a.props.beforeMaskedValueChange,n=a.maskOptions,r=n.mask,l=n.prefix;if(a.focused=!0,a.mounted=!0,r){if(a.value)v(a.maskOptions,a.value)<a.maskOptions.mask.length&&a.setCursorToEnd();else{var o=C(a.maskOptions,l),s=C(a.maskOptions,o),i=v(a.maskOptions,s),c=w(a.maskOptions,i),u={start:c,end:c};if(T(t)){var p=t({value:s,selection:u},{value:a.value,selection:null},null,a.getBeforeMaskedValueChangeConfig());s=p.value,u=p.selection}var m=s!==a.getInputValue();m&&a.setInputValue(s),m&&T(a.props.onChange)&&a.props.onChange(e),a.setSelection(u.start,u.end)}a.runSaveSelectionLoop()}T(a.props.onFocus)&&a.props.onFocus(e)},a.onBlur=function(e){var t=a.props.beforeMaskedValueChange,n=a.maskOptions.mask;if(a.stopSaveSelectionLoop(),a.focused=!1,n&&!a.props.alwaysShowMask&&g(a.maskOptions,a.value)){var r="";T(t)&&(r=t({value:r,selection:null},{value:a.value,selection:a.previousSelection},null,a.getBeforeMaskedValueChangeConfig()).value);var l=r!==a.getInputValue();l&&a.setInputValue(r),l&&T(a.props.onChange)&&a.props.onChange(e)}T(a.props.onBlur)&&a.props.onBlur(e)},a.onMouseDown=function(e){if(!a.focused&&document.addEventListener){a.mouseDownX=e.clientX,a.mouseDownY=e.clientY,a.mouseDownTime=(new Date).getTime();document.addEventListener("mouseup",function e(t){if(document.removeEventListener("mouseup",e),a.focused){var n=Math.abs(t.clientX-a.mouseDownX),r=Math.abs(t.clientY-a.mouseDownY),l=Math.max(n,r),o=(new Date).getTime()-a.mouseDownTime;(l<=10&&o<=200||l<=5&&o<=300)&&a.setCursorToEnd()}})}T(a.props.onMouseDown)&&a.props.onMouseDown(e)},a.onPaste=function(e){T(a.props.onPaste)&&a.props.onPaste(e),e.defaultPrevented||(a.beforePasteState={value:a.getInputValue(),selection:a.getSelection()},a.setInputValue(""))},a.handleRef=function(e){null==a.props.children&&T(a.props.inputRef)&&a.props.inputRef(e)};var n=t.mask,r=t.maskChar,o=t.formatChars,s=t.alwaysShowMask,c=t.beforeMaskedValueChange,p=t.defaultValue,m=t.value;a.maskOptions=d(n,r,o),null==p&&(p=""),null==m&&(m=p);var h=x(m);if(a.maskOptions.mask&&(s||h)&&(h=C(a.maskOptions,h),T(c))){var f=t.value;null==t.value&&(f=p),h=c({value:h,selection:null},{value:f=x(f),selection:null},null,a.getBeforeMaskedValueChangeConfig()).value}return a.value=h,a}s(t,e);var a=t.prototype;return a.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=function(){var e=new RegExp("windows","i"),t=new RegExp("phone","i"),a=navigator.userAgent;return e.test(a)&&t.test(a)}(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},a.componentDidUpdate=function(){var e=this.previousSelection,t=this.props,a=t.beforeMaskedValueChange,n=t.alwaysShowMask,r=t.mask,l=t.maskChar,o=t.formatChars,s=this.maskOptions,i=n||this.isFocused(),c=null!=this.props.value,u=c?x(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=d(r,l,o),this.maskOptions.mask){!s.mask&&this.isFocused()&&this.runSaveSelectionLoop();var m=this.maskOptions.mask&&this.maskOptions.mask!==s.mask;if(s.mask||c||(u=this.getInputValue()),(m||this.maskOptions.mask&&(u||i))&&(u=C(this.maskOptions,u)),m){var h=v(this.maskOptions,u);(null===p||h<p)&&(p=y(this.maskOptions,u)?h:w(this.maskOptions,h))}!this.maskOptions.mask||!g(this.maskOptions,u)||i||c&&this.props.value||(u="");var f={start:p,end:p};if(T(a)){var E=a({value:u,selection:f},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());u=E.value,f=E.selection}this.value=u;var k=this.getInputValue()!==this.value;k?(this.setInputValue(this.value),this.forceUpdate()):m&&this.forceUpdate();var b=!1;null!=f.start&&null!=f.end&&(b=!e||e.start!==f.start||e.end!==f.end),(b||k)&&this.setSelection(f.start,f.end)}else s.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},a.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&R(this.selectionDeferId),this.stopSaveSelectionLoop()},a.render=function(){var e,t=this.props,a=(t.mask,t.alwaysShowMask,t.maskChar,t.formatChars,t.inputRef,t.beforeMaskedValueChange,t.children),n=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],0<=t.indexOf(a)||(r[a]=e[a]);return r}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(a){T(a)||c(!1);var l=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],s=o({},n);l.forEach(function(e){return delete s[e]}),e=a(s),l.filter(function(t){return null!=e.props[t]&&e.props[t]!==n[t]}).length&&c(!1)}else e=r.createElement("input",o({ref:this.handleRef},n));var i={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(n.disabled||n.readOnly||(i.onChange=this.onChange,i.onPaste=this.onPaste,i.onMouseDown=this.onMouseDown),null!=n.value&&(i.value=this.value)),e=r.cloneElement(e,i)},t}(r.Component);e.exports=F},288:function(e,t,a){"use strict";var n=a(41),r=a.n(n),l=a(68),o=a(99),s=a(100),i=a(102),c=a(101),u=a(103),p=a(1),m=a.n(p),d=a(104),h=a(1098),f=a(1100),g=a(266),v=function(e){function t(){return Object(o.a)(this,t),Object(i.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=Object(l.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props.deggrp.map(function(e,t){return{key:t,value:e.fdeggrp,text:"".concat(e.fdeggrp," - ").concat(e.fdescpn)}});console.log(this.props.pdeggrp);var t=this.props.pdeggrp,a=t.fdeggrp,n=t.fyear,r=t.fexamtype,l=t.fexamdate;return m.a.createElement("div",null,m.a.createElement(h.a.Field,null,m.a.createElement("label",null,"Degree Group"),m.a.createElement(f.a,{size:"mini",fluid:!0,search:!0,selection:!0,value:a,onChange:this.props.changeDeggrp,placeholder:"Select Degree Group",disabled:this.props.disabled,openOnFocus:!1,options:e,selectOnBlur:!1})),m.a.createElement(h.a.Group,null,m.a.createElement(h.a.Input,{placeholder:"Year",value:n,width:4,label:"Year",readOnly:!0}),m.a.createElement(h.a.Input,{placeholder:"Type",value:r,width:3,label:"Type",readOnly:!0}),m.a.createElement(h.a.Input,{placeholder:"Exam Date",label:"Exam Date",width:10,value:l,readOnly:!0})))}}]),t}(p.Component);t.a=Object(d.b)(function(e){return{deggrp:e.deggrp,user:e.user}},{fetchDegGrp:g.j})(v)}}]);
//# sourceMappingURL=76.62793fce.chunk.js.map
|