0xV3NOMx
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.147.126.199


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/182.fe821f61.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[182],{1114:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),c=a(68),o=a(99),l=a(100),s=a(102),i=a(101),u=a(103),p=a(1),g=a.n(p),d=a(638),h=a.n(d),m=(a(639),a(104)),f=a(266),E=a(270),v=a(269),w=function(e,t){return console.log("daaaa",e,t),function(){var a=Object(c.a)(r.a.mark(function a(n,c){var o,l,s,i,u;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:"SET_LOADER"}),o=c(),a.next=4,v.a.post("app.php?a=saveCropedPhoto&univcode="+o.univ.funivcode+"&collcode="+t,{data:e});case 4:l=a.sent,n({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},n(Object(f.w)(s))):-1===l.data.error_code?(i={header:"Error",content:l.data.data.msg},n(Object(f.w)(i))):(u={header:"Success",content:l.data.data.msg},n(Object(f.w)(u)));case 7:case"end":return a.stop()}},a)}));return function(e,t){return a.apply(this,arguments)}}()},y=a(1139),b=a(1106),x=a(1096),S=a(1135),C={},O=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,l=new Array(n),u=0;u<n;u++)l[u]=arguments[u];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(l)))).state={path:"",checkboxvalue:"ALL",show_degree_drop:!1,clgcode:"",showCropImage:!1,showdrop:!1,showSubmitButton:!1,withoutDegree:!1,currentindex:0,last:!1,deggrp:"ALL",show:!1,arraystuddata:[],RangeTo:"",RangeFrom:"",Tabledata:!1,modalContent:!1,showimg:!1},a.handleSave=Object(c.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t={fregno:C.fregno,img64:a.state.path},a.props.savePhtoto(t,a.props.collcode);case 2:case"end":return e.stop()}},e)})),a.showdata=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.cropImage(a.props.collcode,a.props.deggrp,a.props.item.fregno);case 2:return e.next=4,a.props.cropImagedata;case 4:if(C=e.sent,console.log("imagedata",C,"lenthhh",C.length),!(C.fregno.length>0)){e.next=9;break}return e.next=9,a.setState({showimg:!0});case 9:console.log("iamsajhsauhsajn",C.fregno,a.state.showimg);case 10:case"end":return e.stop()}},e)})),a.renderHeader=function(){return g.a.createElement(y.a.Header,{style:{display:"flex"}},g.a.createElement("div",{className:"ml-auto"},g.a.createElement(b.a,{basic:!0,color:"green",icon:"file",onClick:a.handleSave,content:"save"})))},a}return Object(u.a)(t,e),Object(l.a)(t,[{key:"_crop",value:function(){this.setState({path:this.refs.cropper.getCroppedCanvas().toDataURL()})}},{key:"render",value:function(){return g.a.createElement("div",null,g.a.createElement(x.a,{style:{width:"90%"},trigger:g.a.createElement(b.a,{onClick:this.showdata},"Select Image")},this.state.showimg&&g.a.createElement(g.a.Fragment,null,g.a.createElement(x.a.Header,null,g.a.createElement("div",{className:"row"},g.a.createElement("div",{className:"col-lg-6"},"Select area to crop"),g.a.createElement("div",{className:"col-lg-6"},this.renderHeader()," "))),g.a.createElement(x.a.Content,{image:!0},g.a.createElement(x.a.Description,null,g.a.createElement(S.a,null,g.a.createElement("b",{style:{margin:"0px 5px"}},"Student Name:"),this.props.item.fname," ",g.a.createElement("br",null),g.a.createElement("b",null,"Student Register Number :"),this.props.item.fregno),g.a.createElement("div",{className:"row"},g.a.createElement("div",{className:"col-lg-6"},g.a.createElement(h.a,{ref:"cropper",src:C.img64,style:{height:400,width:"100%"},guides:!1,crop:this._crop.bind(this)})),g.a.createElement("div",{className:"col-lg-6"},g.a.createElement("img",{src:this.state.path,style:{height:"400px",width:"400px"}}))))))))}}]),t}(p.Component),L=Object(m.b)(function(e){return{cropImagedata:e.cropImage}},{cropImage:function(e,t,a){return console.log("app.php?a=photoCropDet&univcode=&collcode="+e+"&fdegree="+t),function(){var t=Object(c.a)(r.a.mark(function t(n,c){var o,l;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=c(),n({type:"SET_LOADER"}),t.next=4,v.a.get("app.php?a=photoCropDet&univcode="+o.univ.funivcode+"&collcode="+e+"&fregno="+a);case 4:l=t.sent,n({type:"UNSET_LOADER"}),"object"!==typeof l.data?n({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):n({type:"CROP_IMAGE",payload:l.data});case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},savePhtoto:w})(O),R=a(272),j=a(1098),D=a(847),_=a(1100),T=a(1101),A=[],k=[{value:"Active College List",text:"Active colleges"},{value:"Center College List",text:"Center List"},{value:"Center List With Tagged Colleges",text:"Tagged colleges"}],N={f:"s",img64:""},I=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,l=new Array(n),u=0;u<n;u++)l[u]=arguments[u];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(l)))).state={path:"",clgdgerData:[],checkboxvalue:"ALL",show_degree_drop:!1,clgcode:"",showCropImage:!1,showdrop:!1,showSubmitButton:!1,withoutDegree:!1,currentindex:0,last:!1,deggrp:"ALL",show:!1,arraystuddata:[],RangeTo:"zzzzz",RangeFrom:"0",Tabledata:!1},a.getImageData=Object(c.a)(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.props.getStudentPhotosDegreeWise(a.state.clgcode,a.state.deggrp,a.state.RangeFrom,a.state.RangeTo);case 2:(A=a.props.degreeWiseStudentList).length>0&&a.setState({Tabledata:!0}),N.img64&&a.setState({showCropImage:!0});case 5:case"end":return e.stop()}},e)})),a.changeclg=function(){var e=Object(c.a)(r.a.mark(function e(t,n){var c;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.name,c=n.value,e.next=3,a.setState({clgcode:c});case 3:return e.next=5,a.setState({withoutDegree:!0});case 5:return e.next=7,a.setState({checkboxvalue:"Specific"});case 7:return e.next=9,a.props.collegeWiseDegreeList(a.state.clgcode);case 9:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a.handleSave=Object(c.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t={fregno:N.fregno,img64:a.state.path},a.props.savePhtoto(t,a.state.clgcode);case 2:case"end":return e.stop()}},e)})),a.renderHeader=function(){return g.a.createElement(y.a.Header,{style:{display:"flex"}},g.a.createElement("h3",null,"Crop image"))},a}return Object(u.a)(t,e),Object(l.a)(t,[{key:"_crop",value:function(){this.setState({path:this.refs.cropper.getCroppedCanvas().toDataURL()})}},{key:"componentDidMount",value:function(){var e=Object(c.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.props.getCollegeList();case 2:t=this.props.allclglist,k=[],t.length>0&&this.setState({showdrop:!0}),t.map(function(e){k.push({value:e.fcollcode,text:"".concat(e.fcollcode,"  ").concat(e.fcollname," ")})});case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=Object(E.i)(),a=this.props.specificCollgeDregree.map(function(e,t){return{value:e.fdegree,text:"".concat(e.fdegree,"  ").concat(e.fdescpn," ")}});return g.a.createElement("div",null,g.a.createElement(y.a,{fluid:!0},g.a.createElement(y.a.Content,null,this.renderHeader(),g.a.createElement(R.a,null),g.a.createElement(y.a.Description,{style:{overflowY:"auto",height:"".concat(t,"px")}},g.a.createElement("div",{className:"col-md-12"},g.a.createElement(j.a,null,g.a.createElement(D.a,null,g.a.createElement(j.a.Field,{width:12},g.a.createElement("label",null,"Select College "),this.state.showdrop&&g.a.createElement(_.a,{placeholder:"Select college",name:"reportType",selection:!0,search:!0,options:k,onChange:this.changeclg}))),g.a.createElement(D.a,null,g.a.createElement(j.a.Field,{width:12},g.a.createElement("label",null,"Select Degree "),g.a.createElement(_.a,{placeholder:"Select degree",name:"reportType",selection:!0,search:!0,options:a,onChange:function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n.name,c=n.value,e.setState({show_degree_drop:!0}),t.next=4,e.setState({deggrp:c});case 4:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}))),g.a.createElement(D.a,null,g.a.createElement(j.a.Field,{width:6},g.a.createElement(j.a.Input,{defaultValue:"0000",fluid:!0,onChange:function(){var t=Object(c.a)(r.a.mark(function t(a){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setState({RangeFrom:a.target.value});case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),placeholder:"Range From",label:"Reg. No. Range "})),g.a.createElement(j.a.Field,{width:6},g.a.createElement("br",null),g.a.createElement(j.a.Input,{defaultValue:"zzzz",onChange:function(){var t=Object(c.a)(r.a.mark(function t(a){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setState({RangeTo:a.target.value});case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),fluid:!0,placeholder:"Range To"}))),g.a.createElement(D.a,null,g.a.createElement(b.a,{style:{margin:"5px"},color:"green",onClick:this.getImageData},"Submit")))),g.a.createElement("div",{className:"col-md-12"},this.state.Tabledata&&g.a.createElement(T.a,{celled:!0},g.a.createElement(T.a.Header,null,g.a.createElement(T.a.Row,null,g.a.createElement(T.a.HeaderCell,{style:{width:"25%"},singleLine:!0,textAlign:"center"},"Sl. No."),g.a.createElement(T.a.HeaderCell,{style:{width:"25%"},singleLine:!0,textAlign:"center"},"Register No"),g.a.createElement(T.a.HeaderCell,{style:{width:"25%"},textAlign:"center"},"Student Name"),g.a.createElement(T.a.HeaderCell,{style:{width:"25%"},textAlign:"center"},"Photo"),g.a.createElement(T.a.HeaderCell,{style:{width:"25%"},textAlign:"center"},"Crop Data"))),g.a.createElement(T.a.Body,null,A.length>0&&A.map(function(t,a){return g.a.createElement(T.a.Row,{key:a},g.a.createElement(T.a.Cell,{textAlign:"center"},a+1),g.a.createElement(T.a.Cell,{textAlign:"center"},t.fregno),g.a.createElement(T.a.Cell,{textAlign:"center",singleLine:!0},t.fname),g.a.createElement(T.a.Cell,{textAlign:"center",singleLine:!0},g.a.createElement("img",{src:t.fphotopath,style:{height:"200px",width:"200px"}})),g.a.createElement(T.a.Cell,{textAlign:"center",singleLine:!0},g.a.createElement(L,{item:t,collcode:e.state.clgcode,deggrp:e.state.deggrp})))}))))))))}}]),t}(p.Component);t.default=Object(m.b)(function(e){return{allclglist:e.allcollegeList,specificCollgeDregree:e.collegeWiseDegreeList,degreeWiseStudentList:e.getStudentPhotosDegreeWise}},{showError:f.w,getCollegeList:function(){return function(){var e=Object(c.a)(r.a.mark(function e(t,a){var n,c,o,l;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(),t({type:"SET_LOADER"}),e.next=4,v.a.get("app.php?a=GetAllCollegeList&univcode="+n.univ.funivcode);case 4:c=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof c.data?(o={header:"Error",content:"Something went wrong"},t(Object(f.w)(o))):-1===c.data.error_code?(l={header:"Error",content:c.data.data.msg},t(Object(f.w)(l))):t({type:"ALL_COLLEGE_LIST",payload:c.data});case 7:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}()},savePhtoto:w,collegeWiseDegreeList:function(e){return function(){var t=Object(c.a)(r.a.mark(function t(a,n){var c,o;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),a({type:"SET_LOADER"}),console.log("api hit",e,"app.php?a=getCollegeDegrees&univcode="+c.univ.funivcode+"&collcode="+e+"&fdeggrp"+c.user.fdeggrp),t.next=5,v.a.get("app.php?a=getCollegeDegrees&univcode="+c.univ.funivcode+"&collcode="+e+"&fdeggrp="+c.user.fdeggrp);case 5:o=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof o.data?a({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):a({type:"COLLEGE_WISE_DEGREE_GROUP",payload:o.data});case 8:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},getStudentPhotosDegreeWise:function(e,t,a,n){return function(){var o=Object(c.a)(r.a.mark(function c(o,l){var s,i;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s=l(),o({type:"SET_LOADER"}),r.next=4,v.a.get("app.php?a=getStudentPhotosDegreeWise&univcode="+s.univ.funivcode+"&collcode="+e+"&fdeggrp="+s.user.fdeggrp+"&fdegree="+t+"&regfrom="+a+"&regto="+n);case 4:i=r.sent,o({type:"UNSET_LOADER"}),"object"!==typeof i.data?o({type:"SET_ERROR",payload:{error_code:-1,data:{msg:"Something went wrong"},status:"failure"}}):o({type:"GET_STUDENT_PHOTO_LIST",payload:i.data});case 7:case"end":return r.stop()}},c)}));return function(e,t){return o.apply(this,arguments)}}()}})(I)}}]);
//# sourceMappingURL=182.fe821f61.chunk.js.map