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.220.7.116
(window.webpackJsonp=window.webpackJsonp||[]).push([[211],{1397:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(68),o=n(100),i=n(101),l=n(103),u=n(102),c=n(104),s=n(2),h=n.n(s),p=n(1433),d=n(1335),f=n(1337),m=n(1377),v=n(1374),g=n(1343),y=n(272),w=n(275),E=n.n(w),C=n(941),b=n(271),k=n(267);function x(){x=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,a){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(a||[]);return r(i,"_invoke",{value:S(e,n,l)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",f="executing",m="completed",v={};function g(){}function y(){}function w(){}var E={};c(E,i,function(){return this});var C=Object.getPrototypeOf,b=C&&C(C(j([])));b&&b!==n&&a.call(b,i)&&(E=b);var k=w.prototype=g.prototype=Object.create(E);function O(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){function n(r,o,i,l){var u=h(e[r],e,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&a.call(s,"__await")?t.resolve(s.__await).then(function(e){n("next",e,i,l)},function(e){n("throw",e,i,l)}):t.resolve(s).then(function(e){c.value=e,i(c)},function(e){return n("throw",e,i,l)})}l(u.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t(function(t,r){n(e,a,t,r)})}return o=o?o.then(r,r):r()}})}function S(t,n,a){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var u=L(l,a);if(u){if(u===v)continue;return u}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===p)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var c=h(t,n,a);if("normal"===c.type){if(r=a.done?m:d,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function L(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=h(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;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,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function j(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 r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],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,r(k,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:y,configurable:!0}),y.displayName=c(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,c(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},O(I.prototype),c(I.prototype,l,function(){return this}),t.AsyncIterator=I,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new I(s(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(k),c(k,u,"Generator"),c(k,i,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=j,P.prototype={constructor:P,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(F),!t)for(var n in this)"t"===n.charAt(0)&&a.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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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,v):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),v},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),F(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;F(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:j(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var O=n(105),I=n(273);function S(){S=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,a){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),l=new P(a||[]);return r(i,"_invoke",{value:I(e,n,l)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",f="executing",m="completed",v={};function g(){}function y(){}function w(){}var E={};c(E,i,function(){return this});var C=Object.getPrototypeOf,b=C&&C(C(j([])));b&&b!==n&&a.call(b,i)&&(E=b);var k=w.prototype=g.prototype=Object.create(E);function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){function n(r,o,i,l){var u=h(e[r],e,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&a.call(s,"__await")?t.resolve(s.__await).then(function(e){n("next",e,i,l)},function(e){n("throw",e,i,l)}):t.resolve(s).then(function(e){c.value=e,i(c)},function(e){return n("throw",e,i,l)})}l(u.arg)}var o;r(this,"_invoke",{value:function(e,a){function r(){return new t(function(t,r){n(e,a,t,r)})}return o=o?o.then(r,r):r()}})}function I(t,n,a){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return{value:e,done:!0}}for(a.method=o,a.arg=i;;){var l=a.delegate;if(l){var u=L(l,a);if(u){if(u===v)continue;return u}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===p)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var c=h(t,n,a);if("normal"===c.type){if(r=a.done?m:d,c.arg===v)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function L(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var o=h(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;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,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function D(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 F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function j(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 r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],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,r(k,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:y,configurable:!0}),y.displayName=c(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,c(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(O.prototype),c(O.prototype,l,function(){return this}),t.AsyncIterator=O,t.async=function(e,n,a,r,o){void 0===o&&(o=Promise);var i=new O(s(e,n,a,r),o);return t.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},x(k),c(k,u,"Generator"),c(k,i,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=j,P.prototype={constructor:P,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(F),!t)for(var n in this)"t"===n.charAt(0)&&a.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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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,v):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),v},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),F(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;F(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:j(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),v}},t}var L=function(e){function t(){var e,n;Object(o.a)(this,t);for(var i=arguments.length,c=new Array(i),s=0;s<i;s++)c[s]=arguments[s];return(n=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).state={fdob:"",shwDet:!1,fregno:"",sendSms:!1,activeIndex:0},n.handleSubmit=Object(r.a)(S().mark(function e(){var t;return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t={header:"Error",content:"Please enter Reg. No."},!(n.state.fregno.length<8)){e.next=7;break}return e.next=4,n.props.showError(t);case 4:e.t0=e.sent,e.next=11;break;case 7:return e.next=9,n.props.getCnvDet(n.state.fregno);case 9:n.setState({disabled:!0}),e.t0=""!=n.props.convoDet?n.setState({shwDet:!0}):""==n.props.convoDet.fname?alert(n.props.convoDet.fname):n.setState({shwDet:!1});case 11:e.t0;case 12:case"end":return e.stop()}},e)})),n.handleChangedate=function(){var e=Object(r.a)(S().mark(function e(t){return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({fdob:t.target.value},function(){return n.props.changeConvoDetails("fdob",n.state.fdob)});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleChange=function(){var e=Object(r.a)(S().mark(function e(t,r){var o,i;return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=r.name,i=r.value,"fregno"==o?n.setState(Object(a.a)({},o,i.toUpperCase())):n.props.changeConvoDetails(o,i);case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleMultiple=function(e,t){var a=t.name,r=t.value,o="";r.map(function(e,t){return t<r.length&&""!=e?o="".concat(e,"*").concat(o):null}),n.props.changeConvoDetails(a,o)},n.changeCheckBox=function(){n.state.sendSms?n.setState({sendSms:!1}):n.setState({sendSms:!0})},n.handleSave=Object(r.a)(S().mark(function e(){var t;return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.props.convoDet,n.state.shwDet||(t={header:"Error",content:"No Details to Update."}),"undefined"!=typeof t){e.next=8;break}return e.next=5,n.props.saveConvoDet(n.state.sendSms);case 5:n.setState({shwDet:!1}),e.next=10;break;case 8:return e.next=10,n.props.showError(t);case 10:case"end":return e.stop()}},e)})),n.handleCancel=function(){n.setState({shwDet:!1,disabled:!1,fregno:""})},n.handleTabChange=function(e,t){var a=t.activeIndex;n.setState({activeIndex:a})},n}return Object(c.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t={n:"[0-1]",m:"[0-9]",e:"[0-3]",d:"[0-9]",z:"[1-2]",y:"[0-9]"},n=[{value:"",text:"-Select-"},{value:"In Absentia",text:"In Absentia"},{value:"In Presence",text:"In Presence"}],a=[{value:"",text:"-Select-"},{value:"GM",text:"GM"},{value:"IIA",text:"IIA"},{value:"IIB",text:"IIB"},{value:"IIIA",text:"IIIA"},{value:"IIIB",text:"IIIB"},{value:"SC",text:"SC"},{value:"ST",text:"ST"}],r=this.props.convoDet,o=(this.props.user,this.state.activeIndex),i=[{menuItem:"Personal",render:function(){return h.a.createElement(p.a.Pane,null,h.a.createElement(d.a,null,h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:8},h.a.createElement(d.a.Input,{type:"text",placeholder:"Candidate Name",label:"Candidate Name",name:"fname",value:r.fname,readOnly:!0,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:5},h.a.createElement(d.a.Input,{type:"text",placeholder:"Father Name",label:"Father Name",name:"fatname",value:r.fatname,readOnly:!0,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:5},h.a.createElement("label",null,"Mother Name"),h.a.createElement(E.a,{type:"text",placeholder:"Mother Name",name:"motname",value:r.motname,readOnly:!0,onChange:e.handleChangedate}))),h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:2},h.a.createElement("label",null,"Reg. No."),h.a.createElement(E.a,{type:"text",placeholder:"Reg. No.",name:"regno",value:r.regno,readOnly:!0,onChange:e.handleChangedate})),h.a.createElement(d.a.Field,{width:4},h.a.createElement("label",null,"Gender"),h.a.createElement(E.a,{type:"text",placeholder:"Gender",name:"gender",value:r.gender,readOnly:!0,onChange:e.handleChangedate})),h.a.createElement(d.a.Field,{width:2},h.a.createElement("label",null,"Date of Birth"),h.a.createElement(E.a,{type:"text",placeholder:"DOB",name:"fdob",mask:"ed/nm/zyyy",formatChars:t,value:r.fdob,onChange:e.handleChangedate})),h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{id:"fmobile",name:"fmobile",maxLength:"10",minLength:"10",onChange:e.handleChange,label:"Contact No.",placeholder:"Contact No.",value:r.fmobile})),h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{type:"text",placeholder:"National",label:"National",name:"fnational",value:r.fnational,onChange:e.handleChange}))),h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:6},h.a.createElement(d.a.Input,{id:"femail",name:"femail",onChange:e.handleChange,label:"Email ID",value:r.femail,placeholder:"abc@xyz.com"})),h.a.createElement(d.a.Field,{width:5},h.a.createElement(d.a.Input,{type:"text",placeholder:"Aadahr",label:"Aadahr",name:"aadahr",value:r.aadahr,onChange:e.handleChange}))),h.a.createElement(d.a.Field,{width:2},h.a.createElement("label",null,"Category"),h.a.createElement(f.a,{placeholder:"Category",name:"fcatcode",value:r.fcatcode,selection:!0,search:!0,options:a,onChange:e.handleChange}))))}},{menuItem:"Academic",render:function(){return h.a.createElement(p.a.Pane,null,h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:2},h.a.createElement("label",null,"Reg. No."),h.a.createElement(E.a,{type:"text",placeholder:"Reg. No.",name:"regno",value:r.regno,readOnly:!0,onChange:e.handleChangedate})),h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Degree",label:"Degree",name:"degree",value:r.degree,readOnly:!0,onChange:e.handleChange}))),h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"College",label:"College",name:"collname",value:r.collname,readOnly:!0,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:5},h.a.createElement("label",null,"Certificate Type"),h.a.createElement(f.a,{placeholder:"Certificate Type",name:"freccer",value:r.freccer,selection:!0,search:!0,options:n,onChange:e.handleChange}))))}},{menuItem:"Communication",render:function(){return h.a.createElement(p.a.Pane,null,h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{type:"text",placeholder:"City",label:"City",name:"city",value:r.city,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{type:"text",placeholder:"State",label:"State",name:"state",value:r.state,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:2},h.a.createElement(d.a.Input,{type:"text",placeholder:"Pin code",label:"Pin Code",name:"pincode",value:r.pincode,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{type:"text",placeholder:"Contry",label:"Contry",name:"contry",value:r.contry,onChange:e.handleChange}))),h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Permanent Address",label:"Permanent Address",name:"peradd1",value:r.peradd1,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Communication Address",label:"Communication Address",name:"postadd1",value:r.postadd1,onChange:e.handleChange}))),h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Permanent Address",name:"peradd2",value:r.peradd2,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Communication Address",name:"postadd2",value:r.postadd2,onChange:e.handleChange})))," ",h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Permanent Address",name:"peradd3",value:r.peradd3,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Communication Address",name:"postadd3",value:r.postadd3,onChange:e.handleChange}))),h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Permanent Address",name:"peradd3",value:r.peradd3,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:10},h.a.createElement(d.a.Input,{type:"text",placeholder:"Communication Address",name:"postadd4",value:r.postadd4,onChange:e.handleChange}))))}},{menuItem:"Payment",render:function(){return h.a.createElement(p.a.Pane,null,h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{type:"text",placeholder:"Application No.",label:"Application No.",name:"fappno",value:r.fappno,readOnly:!0,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{type:"text",placeholder:"Amount Paid",label:"Amount Paid",name:"famount",value:r.famount,readOnly:!0,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:2},h.a.createElement("label",null,"Payment Type"),h.a.createElement(E.a,{type:"text",placeholder:"Payment Type",name:"fpaytype",readOnly:!0,value:r.fpaytype,onChange:e.handleChangedate}))),h.a.createElement(d.a.Group,null,h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{type:"text",placeholder:"Payment Date",label:"Payment Date",name:"fpaydate",value:r.fpaydate,readOnly:!0,onChange:e.handleChange})),h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{type:"text",placeholder:"Payment ID",label:"Payment ID",name:"ftranid",value:r.ftranid,readOnly:!0,onChange:e.handleChange}))))}}],l=Object(I.i)();return h.a.createElement(h.a.Fragment,null,h.a.createElement(m.a,{fluid:!0},h.a.createElement(m.a.Content,null,h.a.createElement(m.a.Header,{style:{display:"flex"}},h.a.createElement(v.a,{as:"h3"},"Convocation Application Correction"),h.a.createElement("div",{className:"ml-auto"},h.a.createElement(g.a,{basic:!0,color:"blue",content:"Update",onClick:this.handleSave,icon:"upload"}),h.a.createElement(g.a,{basic:!0,color:"black",icon:"ban",onClick:this.handleCancel,content:"Cancel"}),h.a.createElement(C.a,{to:"/dashboard"},h.a.createElement(g.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),h.a.createElement(y.a,null),h.a.createElement(m.a.Description,{style:{overflowY:"auto",height:"".concat(l,"px"),width:"100%"}},h.a.createElement(d.a,null,h.a.createElement(d.a.Field,{width:4},h.a.createElement(d.a.Input,{id:"fregno",label:"Enter Register No.",placeholder:"Register No.",name:"fregno",value:this.state.fregno,readOnly:this.state.disabled,onChange:this.handleChange})),h.a.createElement(g.a,{content:"Submit",color:"blue",onClick:this.handleSubmit})),h.a.createElement(y.a,null),this.state.shwDet&&h.a.createElement(d.a,null,h.a.createElement(p.a,{panes:i,activeIndex:o,onTabChange:this.handleTabChange}))))))}}]),t}(s.Component);t.default=Object(O.b)(function(e){return{convoDet:e.convoDet,user:e.user,univs:e.univs}},{getCnvDet:function(e){return function(){var t=Object(r.a)(x().mark(function t(n,a){var r,o,i,l,u;return x().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=a(),n({type:"SET_LOADER"}),t.next=4,b.a.get("/app.php",{params:{a:"getCnvDet",univcode:r.univ.funivcode,fregno:e,fusertype:r.user.fcurtype,fcurtype:r.user.fcurtype}});case 4:o=t.sent,n({type:"UNSET_LOADER"}),"object"!==typeof o.data?(i={header:"Error",content:"Something went wrong"},n(Object(k.A)(i))):-1===o.data.error_code?(l={header:"Error",content:o.data.data.msg},n(Object(k.A)(l))):1===o.data.error_code?(u={header:"Error",content:o.data.data.msg},n(Object(k.A)(u))):n({type:"CONVO_DETAILS",payload:o.data});case 7:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},changeConvoDetails:function(e,t){return{type:"CHANGE_CONVO_DETAILS",payload:{name:e,value:t}}},saveConvoDet:function(){return function(){var e=Object(r.a)(x().mark(function e(t,n){var a,r,o,i,l;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n(),e.next=3,b.a.post("/app.php?a=saveConvoDet&univcode="+a.univ.funivcode,{data:a.convoDet});case 3:"object"!==typeof(r=e.sent).data?(o={header:"Error",content:"Something went wrong"},t(Object(k.A)(o))):-1===r.data.error_code?(i={header:"Error",content:r.data.data.msg},t(Object(k.A)(i))):(l={header:"Success",content:r.data.data.msg},t(Object(k.A)(l)));case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},showError:k.A})(L)},275:function(e,t,n){e.exports=n(276)},276:function(e,t,n){"use strict";var a,r=(a=n(2))&&"object"==typeof a&&"default"in a?a.default:a,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 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 u(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,n,a,r,o,i,l){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 c=[n,a,r,o,i,l],s=0;(u=new Error(t.replace(/%s/g,function(){return c[s++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}};function s(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 h={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},p="_";function d(e,t,n){var a="",r="",o=null,i=[];if(void 0===t&&(t=p),null==n&&(n=h),!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]?(i.push(a.length),a.length===i.length-1&&(r+=e)):o=a.length+1,a+=e,!1)}),{maskChar:t,formatChars:n,prefix:r,mask:a,lastEditablePosition:o,permanents:i}}function f(e,t){return-1!==e.permanents.indexOf(t)}function m(e,t,n){var a=e.mask,r=e.formatChars;if(!n)return!1;if(f(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 f(e,n)||!m(e,n,t)})}function g(e,t){var n=e.maskChar,a=e.prefix;if(!n){for(;t.length>a.length&&f(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 i=t[o];if(!f(e,o)&&m(e,o,i)){r=o+1;break}}return r}function y(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=E(e,"",t,0)).length<r.length&&(t=r);t.length<a.length&&f(e,t.length);)t+=a[t.length];return t}if(t)return E(e,w(e,""),t,0);for(var o=0;o<a.length;o++)f(e,o)?t+=a[o]:t+=n;return t}function E(e,t,n,a){var r=e.mask,o=e.maskChar,i=e.prefix,l=n.split(""),u=y(e,t);return!o&&a>t.length&&(t+=r.slice(t.length,a)),l.every(function(n){for(;s=n,f(e,c=a)&&s!==r[c];){if(a>=t.length&&(t+=r[a]),l=n,o&&f(e,a)&&l===o)return!0;if(++a>=r.length)return!1}var l,c,s;return!m(e,a,n)&&n!==o||(a<t.length?t=o||u||a<i.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 C(e,t){for(var n=e.mask,a=t;a<n.length;++a)if(!f(e,a))return a;return null}function b(e){return e||0===e?e+"":""}function k(e,t,n,a,r){var o=e.mask,i=e.prefix,l=e.lastEditablePosition,u=t,c="",s=0,h=0,p=Math.min(r.start,n.start);return n.end>r.start?h=(s=function(e,t,n,a){var r=e.mask,o=e.maskChar,i=n.split(""),l=a;return i.every(function(t){for(;i=t,f(e,n=a)&&i!==r[n];)if(++a>=r.length)return!1;var n,i;return(m(e,a,t)||t===o)&&a++,a<r.length}),a-l}(e,0,c=u.slice(r.start,n.end),p))?r.length:0:u.length<a.length&&(h=a.length-u.length),u=a,h&&(1!==h||r.length||(p=r.start===n.start?C(e,n.start):function(e,t){for(var n=t;0<=n;--n)if(!f(e,n))return n;return null}(e,n.start)),u=function(e,t,n,a){var r=n+a,o=e.maskChar,i=e.mask,l=e.prefix,u=t.split("");if(o)return u.map(function(t,a){return a<n||r<=a?t:f(e,a)?i[a]:o}).join("");for(var c=r;c<u.length;c++)f(e,c)&&(u[c]="");return n=Math.max(l.length,n),u.splice(n,r-n),t=u.join(""),w(e,t)}(e,u,p,h)),u=E(e,u,c,p),(p+=s)>=o.length?p=o.length:p<i.length&&!s?p=i.length:p>=i.length&&p<l&&s&&(p=C(e,p)),c||(c=null),{value:u=w(e,u),enteredString:c,selection:{start:p,end:p}}}function x(e){return"function"==typeof e}function O(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function I(e){return(O()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function S(e){(O()||clearTimeout)(e)}var L=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=I(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(S(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=C(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||s(r,e,t),null!==n.selectionDeferId&&S(n.selectionDeferId),n.selectionDeferId=I(function(){n.selectionDeferId=null,s(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(c){}return!n.focused||r.end<a.length&&t.end===e.length},n.onChange=function(e){var t=u(u(n)).beforePasteState,a=u(u(n)).previousSelection,r=n.props.beforeMaskedValueChange,o=n.getInputValue(),i=n.value,l=n.getSelection();n.isInputAutofilled(o,l,i,a)&&(i=w(n.maskOptions,""),a={start:0,end:0,length:0}),t&&(a=t.selection,i=t.value,l={start:a.start+o.length,end:a.start+o.length,length:0},o=i.slice(0,a.start)+o+i.slice(a.end),n.beforePasteState=null);var c=k(n.maskOptions,o,l,i,a),s=c.enteredString,h=c.selection,p=c.value;if(x(r)){var d=r({value:p,selection:h},{value:i,selection:a},s,n.getBeforeMaskedValueChangeConfig());p=d.value,h=d.selection}n.setInputValue(p),x(n.props.onChange)&&n.props.onChange(e),n.isWindowsPhoneBrowser?n.setSelection(h.start,h.end,{deferred:!0}):n.setSelection(h.start,h.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 i=w(n.maskOptions,o),l=w(n.maskOptions,i),u=g(n.maskOptions,l),c=C(n.maskOptions,u),s={start:c,end:c};if(x(t)){var h=t({value:l,selection:s},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());l=h.value,s=h.selection}var p=l!==n.getInputValue();p&&n.setInputValue(l),p&&x(n.props.onChange)&&n.props.onChange(e),n.setSelection(s.start,s.end)}n.runSaveSelectionLoop()}x(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="";x(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&&x(n.props.onChange)&&n.props.onChange(e)}x(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),i=(new Date).getTime()-n.mouseDownTime;(o<=10&&i<=200||o<=5&&i<=300)&&n.setCursorToEnd()}})}x(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){x(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&&x(n.props.inputRef)&&n.props.inputRef(e)};var a=t.mask,r=t.maskChar,i=t.formatChars,l=t.alwaysShowMask,c=t.beforeMaskedValueChange,h=t.defaultValue,p=t.value;n.maskOptions=d(a,r,i),null==h&&(h=""),null==p&&(p=h);var f=b(p);if(n.maskOptions.mask&&(l||f)&&(f=w(n.maskOptions,f),x(c))){var m=t.value;null==t.value&&(m=h),f=c({value:f,selection:null},{value:m=b(m),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=f,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,i=t.formatChars,l=this.maskOptions,u=a||this.isFocused(),c=null!=this.props.value,s=c?b(this.props.value):this.value,h=e?e.start:null;if(this.maskOptions=d(r,o,i),this.maskOptions.mask){!l.mask&&this.isFocused()&&this.runSaveSelectionLoop();var p=this.maskOptions.mask&&this.maskOptions.mask!==l.mask;if(l.mask||c||(s=this.getInputValue()),(p||this.maskOptions.mask&&(s||u))&&(s=w(this.maskOptions,s)),p){var f=g(this.maskOptions,s);(null===h||f<h)&&(h=y(this.maskOptions,s)?f:C(this.maskOptions,f))}!this.maskOptions.mask||!v(this.maskOptions,s)||u||c&&this.props.value||(s="");var m={start:h,end:h};if(x(n)){var E=n({value:s,selection:m},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());s=E.value,m=E.selection}this.value=s;var k=this.getInputValue()!==this.value;k?(this.setInputValue(this.value),this.forceUpdate()):p&&this.forceUpdate();var O=!1;null!=m.start&&null!=m.end&&(O=!e||e.start!==m.start||e.end!==m.end),(O||k)&&this.setSelection(m.start,m.end)}else l.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&S(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){x(n)||c(!1);var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],l=i({},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&&c(!1)}else e=r.createElement("input",i({ref:this.handleRef},a));var u={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(a.disabled||a.readOnly||(u.onChange=this.onChange,u.onPaste=this.onPaste,u.onMouseDown=this.onMouseDown),null!=a.value&&(u.value=this.value)),e=r.cloneElement(e,u)},t}(r.Component);e.exports=L}}]);
//# sourceMappingURL=211.33c2b184.chunk.js.map
|