1"use strict";(self.webpackChunkwishwa_portal=self.webpackChunkwishwa_portal||[]).push([[994,1593,5065,5703],{24590:(e,t,s)=>{s.d(t,{A:()=>n});s(65043);var a=s(10151),r=s(70579);let i={back:()=>(0,r.jsxs)("div",{onClick:()=>{a.A.goBack()},style:{color:"#DA4C76",cursor:"pointer"},children:[(0,r.jsx)("i",{class:"fas fa-chevron-left"})," Back"]})};const n=i},25703:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});var a=s(89379),r=(s(65043),s(70579));const i=e=>{let{title:t,hide:s,children:i,style:n,id:o}=e;return s?null:(0,r.jsxs)("div",{id:o||null,style:(0,a.A)((0,a.A)({},n),{},{marginTop:"10px",marginBottom:"30px",maxWidth:"100%",marginLeft:"20px",marginRight:"20px"}),children:[(0,r.jsx)("h4",{style:{fontStyle:"normal",fontWeight:"600",fontSize:"20px",lineHeight:"34px",color:"#1E1053"},children:t}),(0,r.jsx)("div",{style:{background:"#FFFFFF",boxShadow:"0px 5px 24px rgba(0, 0, 0, 0.1)",borderRadius:"10px",marginTop:"20px",marginBottom:"20px",padding:"28px 30px"},children:i})]})}},61271:(e,t,s)=>{s.d(t,{Ay:()=>n});var a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,r=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4}
1)?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,i=/[^-+\dA-Z]/g;function n(e,t,s,r){if(1!==arguments.length||"string"!==typeof e||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var i=(t=String(o[t]||t||o.default)).slice(0,4);"UTC:"!==i&&"GMT:"!==i||(t=t.slice(4),s=!0,"GMT:"===i&&(r=!0));var n=function(){return s?"getUTC":"get"},m=function(){return e[n()+"Date"]()},g=function(){return e[n()+"Day"]()},f=function(){return e[n()+"Month"]()},x=function(){return e[n()+"FullYear"]()},y=function(){return e[n()+"Hours"]()},v=function(){return e[n()+"Minutes"]()},N=function(){return e[n()+"Seconds"]()},j=function(){return e[n()+"Milliseconds"]()},b=function(){return s?0:e.getTimezoneOffset()},w=function(){return h(e)},S={d:function(){return m()},dd:function(){return d(m())},ddd:function(){return l.dayNames[g()]},DDD:function(){return c({y:x(),m:f(),d:m(),_:n(),dayName:l.dayNames[g()],short:!0})},dddd:function(){return l.dayNames[g()+7]},DDDD:function(){return c({y:x(),m:f(),d:m(),_:n(),dayName:l.dayNames[g()+7]})},m:function(){return f()+1},mm:function(){return d(f()+1)},mmm:function(){return l.monthNames[f()]},mmmm:function(){return l.monthNames[f()+12]},yy:function(){return String(x()).slice(2)},yyyy:function(){return d(x(),4)},h:function(){return y()%12||12},hh:function(){return d(y()%12||12)},H:function(){return y()},HH:function(){return d(y())},M:function(){return v()},MM:function(){return d(v())},s:function(){return N()},ss:function(){return d(N())},l:function(){return d(j(),3)},L:function(){return d(Math.floor(j()/10))},t:function(){return y()<12?l.timeNames[0]:l.timeNames[1]},tt:function(){return y()<12?l.timeNames[2]:l.timeNames[3]},T:function(){return y()<12?l.timeNames[4]:l.timeNames[5]},TT:function(){return y()<12?l.timeNames[6]:l.timeNames[7]},Z:function(){return r?"GMT":s?"UTC":p(e)},o:function(){return(b()>0?"-":"+")+d(100*Math.floor(Math.abs(b())/60)+Math.abs(b())%60,4)},p:function(){return(b()>0?"-":"+")+d(Math.floor(Math.abs(b())/60),2)+":"+d(Math.floor(Math.abs(b())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return w()},WW:function(){return d(w())},N:function(){return u(e)}};return t.replace(a,function(e){return e in S?S[e]():e.slice(1,e.length-1)})}var o={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},l={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(e).padStart(t,"0")},c=function(e){var t=e.y,s=e.m,a=e.d,r=e._,i=e.dayName,n=e.short,o=void 0!==n&&n,l=new Date,d=new Date;d.setDate(d[r+"Date"]()-1);var c=new Date;c.setDate(c[r+"Date"]()+1);return l[r+"FullYear"]()===t&&l[r+"Month"]()===s&&l[r+"Date"]()===a?o?"Tdy":"Today":d[r+"FullYear"]()===t&&d[r+"Month"]()===s&&d[r+"Date"]()===a?o?"Ysd":"Yesterday":c[r+"FullYear"]()===t&&c[r+"Month"]()===s&&c[r+"Date"]()===a?o?"Tmw":"Tomorrow":i},h=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var s=new Date(t.getFullYear(),0,4);s.setDate(s.getDate()-(s.getDay()+6)%7+3);var a=t.getTimezoneOffset()-s.getTimezoneOffset();t.setHours(t.getHours()-a);var r=(t-s)/6048e5;return 1+Math.floor(r)},u=function(e){var t=e.getDay();return 0===t&&(t=7),t},p=function(e){return(String(e).match(r)||[""]).pop().replace(i,"").replace(/GMT\+0000/g,"UTC")}},71593:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var a=s(89379),r=s(65043),i=s(79456),n=s(61271),o=s(99542),l=s.n(o),d=s(48365),c=s(7560
15),h=s(86178),u=s.n(h),p=s(70579);class m extends r.Component{constructor(e){super(e),this.edit=async(e,t)=>{this.forceRefresh=new Date,await this.setState({isEdit:e,updateMessage:t.message,updateId:t.id})},this.state={updating:!1,lastUpdated:new Date,updates:null,currentPage:1,loaded:!1,total:0,isEdit:!1},this.onInputchange=this.onInputchange.bind(this),this.postUpdate=this.postUpdate.bind(this),this.getData=this.getData.bind(this),this.getErrorMessage=this.getErrorMessage.bind(this),this.reactQuillRef=(0,r.createRef)(),this.forceRefresh=new Date}componentDidMount(){this.getData()}componentDidUpdate(e,t){t.currentPage!==this.state.currentPage&&this.getData()}async postUpdate(){await this.setState({errors:{}});let e=new(l())((0,a.A)((0,a.A)({},this.state),{},{updateMessage:this.reactQuillRef.current.getEditorContents()}),{updateMessage:"required|min:15"},{"required.updateMessage":"Provide the message","min.updateMessage":"Message should be minimum of 15 characters"});e.fails()?this.setState({errors:(0,a.A)((0,a.A)({},this.state.errors),e.errors.all())}):(this.setState({updating:!0}),i.Ay.postUpdate(this.props.campaignId,this.reactQuillRef.current.getEditorContents(),"title",[],this.state.isEdit?this.state.updateId:null).then(e=>{this.setState({currentPage:1,updating:!1,updateMessage:"",isEdit:!1,updateId:null,errors:e.data.errors||null}),this.getData(),this.reactQuillRef.current.setEditorContents(this.reactQuillRef.current.getEditor(),"")}).catch(e=>{this.setState({updating:!1},()=>{this.reactQuillRef.current.setEditorContents(this.reactQuillRef.current.getEditor(),"")})}))}onInputchange(e){this.setState({errorMessage:"",[e.target.name]:e.target.value})}getData(){i.Ay.fetchData("/updates/get-updates/"+this.props.campaignId+"?pageNo="+this.state.currentPage).then(e=>{this.setState({updates:e.data.items,total:e.data.total,userRole:e.meta.user.role,loaded:!0},()=>{})}).catch(e=>{})}getErrorMessage(e){return this.state.errors&&this.state.errors[e]?(0,p.jsx)("div",{className:"invalid-feedback",style:{display:"block"},children:this.state.errors[e]}):null}render(){return(0,p.jsxs)("div",{className:"row",children:[(0,p.jsxs)("div",{className:"col-md-8",style:{padding:"20px 20px"},children:[(0,p.jsx)("h6",{children:"Have an update for your Fundraiser? "}),(0,p.jsx)("p",{style:{fontSize:"13px"},children:"Updating your Fundraiser could invite new donations !"}),(0,p.jsxs)("div",{style:{marginTop:"10px",marginBottom:"10px"},children:[(0,p.jsx)(c.xf,{label:" ",forceRefresh:this.forceRefresh,label2:"Maximum 2000 Characters",maxLength:2e3,defaultValue:this.state.updateMessage,value:this.state.updateMessage,className:"wide-100",name:"updateMessage",onChange:this.onInputchange,errors:this.state.errors,rows:"10",quillRef:this.reactQuillRef,S3RequestUrl:"/campaigner/get-image-upload-url"}),this.getErrorMessage("updateMessage")]}),(0,p.jsx)("div",{children:(0,p.jsx)("button",{className:"btn btn-primary-color",style:{fontSize:"12px",margin:"0px",textTransform:"capitalize",padding:"5px 20px"},onClick:this.postUpdate,children:this.state.updating?"POSTING UPDATE. . . ":this.state.isEdit?"SAVE":"POST UPDATE"})})]}),(0,p.jsxs)("div",{className:"col-md-4",style:{padding:"20px 20px",background:"#FFFFFF",boxShadow:"0px 0px 14px rgba(0, 0, 0, 0.08)",borderRadius:"10px"},children:[(0,p.jsx)("h6",{children:"Previous Updates"}),(0,p.jsx)(g,{getData:e=>{this.setState({currentPage:e})},currentPage:this.state.currentPage,total:this.state.total,data:this.state.updates,campaignId:this.props.campaignId,lastUpdated:this.state.lastUpdated,edit:this.edit,userRole:this.state.userRole})]})]})}}class g extends r.Component{constructor(e){super(e),this.state={currentPage:e.currentPage,total:e.total}}static getDerivedStateFromProps(e){return{currentPage:e.currentPage,total:e.total}}render(){if(!this.props.data||this.props.data.length<=0)return(0,p.jsx)("div",{className:"alert alert-warning",style:{width:"fit-content",margin:"auto"},children:"No Data"});let e=this.state.total/3;return(0,p.jsxs)("div",{className:"campaign-update-list",children:[(0,p.jsx)("div",{className:"list-container",children:this.props.data.map((e,t)=>(0,p.jsx)(f,{data:e,edit:this.props.edit,userRole:this.props.userRole},"cupdateitem_"+e.id))}),(0,p.jsxs)("div",{className:"pagination",children:[(0,p.jsx)("i",{className:"fas fa-chevron-left"+(1===this.state.currentPage?" inactive":""),onClick:()=>{this.state.currentPage>1&&(this.state.currentPage=this.state.currentPage-1,this.props.getData(this.state.currentPage))}}),(0,p.jsx)("div",{children:this.state.currentPage}),(0,p.jsx)("i",{className:"fas fa-chevron-right"+(this.state.currentPage<=e?"":" inactive"),onClick:()=>{this.state.currentPage<=e&&(this.state.currentPage=this.state.currentPage+1,this.props.getData(this.state.currentPage))}})]})]})}}class f extends r.Component{render(){let e=null,t=null;return 2===this.props.data.status&&(e=(0,p.jsx)("div",{style:{paddingBottom:"10px",color:"#E5643E"},children:"Pending for review"})),"manager"===this.props.userRole&&(t=(0,p.jsx)("div",{className:"col-md-2",style:{color:"#DA4C76",fontWeight:"bold",cursor:"pointer",height:"fit-content"},onClick:()=>{this.props.edit(!0,this.props.data)},children:"EDIT"})),(0,p.jsxs)("div",{style:{background:"rgba(30, 16, 83, 0.05)",borderRadius:"8px",fontSize:"11px",padding:"10px 10px",marginTop:"10px"},children:[e,(0,p.jsxs)("div",{className:"row",children:[(0,p.jsxs)("div",{className:"col-md-10",children:[(()=>u()(this.props.data.createdAt).isBefore(u()("2021-12-23"))?(0,p.jsx)("div",{style:{paddingBottom:"5px"},children:this.props.data.message}):(0,p.jsx)(p.Fragment,{children:this.props.data.message.length>150?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{class:"campaign-story",style:{fontSize:"12px"},dangerouslySetInnerHTML:{__html:(this.props.data.message.substring(0,150).trim()+"...").replace(/&#\d+;/gm,function(e){return String.fromCharCode(e.match(/\d+/gm)[0])})}}),(0,p.jsx)("div",{className:"campaign-story",style:{fontWeight:"600",cursor:"pointer",marginBottom:"10px"},onClick:()=>{(0,d.yp)({title:"Message",content:(0,p.jsx)("div",{class:"campaign-story",style:{fontSize:"12px",maxWidth:"80vh",maxHeight:"75vh",overflow:"auto"},dangerouslySetInnerHTML:{__html:this.props.data.message.replace(/&#\d+;/gm,function(e){return String.fromCharCode(e.match(/\d+/gm)[0])})}})})},children:"Read more..."})]}):(0,p.jsx)("div",{class:"campaign-story",style:{fontSize:"12px"},dangerouslySetInnerHTML:{__html:this.props.data.message.replace(/&#\d+;/gm,function(e){return String.fromCharCode(e.match(/\d+/gm)[0])})}})}))(),(0,p.jsxs)("div",{children:["Submitted"," ",(0,p.jsx)("strong",{children:(0,n.Ay)(this.props.data.createdAt,"dd mmm yyyy")})]})]}),t]})]})}}},99640:(e,t,s)=>{s.r(t),s.d(t,{default:()=>N});var a=s(89379),r=s(65043),i=s(97508),n=s(98093),o=s(10151),l=s(12014),d=(s(71593),s(79456)),c=s(8619),h=(s(61271),s(25703),s(24590)),u=s(6995),p=(s(58613),s(65758)),m=s(75605),g=(s(27146),s(43550)),f=s(99542),x=s.n(f),y=s(70579);class v extends r.Component{constructor(e){super(e),this.onOTPVerify=async e=>{let t={otp:e,withdrawalId:this.state.withdrawalId};return await d.Ay.verifyWithdrawalOTP(t).then(e=>!!e.status&&(g.oR.success("Request Posted Successfully",{position:"top-right",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0}),this.setState({showVerify:!1}),o.A.push("/user/fundraiser/".concat(this.props.match.params.id)),!0))},this.getErrorMessage=e=>this.state.errors&&this.state.errors[e]?(0,y.jsx)("div",{className:"invalid-feedback",style:{display:"block"},children:this.state.errors[e]}):null,this.state={loaded:!1,recepientTypes:[],showVerify:!1,withdrawalId:null,withdrawalAmount:null,withdrawalAmountError:!1,readOnly:!1,submitDisabled:!1},this.states=[],this.cities=[],this.bank_cities=[],this.files=[],this.onInputchange=this.onInputchange.bind(this),this.postWithdrawalRequest=this.postWithdrawalRequest.bind(this)}componentDidMount(){d.Ay.getWithdrawalOptions(this.props.match.params.id).then(e=>{this.setState({loaded:!0,recepientTypes:e.data.types,infoMessage:e.data.infoMessage,readOnly:e.data.readOnly,orgInfo:e.data.orgInfo})}),d.Ay.fetchData("/withdrawal/get-withdrawal-amount/"+this.props.match.params.id).then(e=>{e.status&&this.setState({userMobileNo:e.data.mobile_no||"",withdrawalAmount:e.data.withdrawalAmount})})}onInputchange(e){if("amountRequested"===e.target.name){let t=JSON.parse(JSON.stringify(this.state.errors?this.state.errors:{}));e.target.value&&0!=e.target.value?this.setState({submitDisabled:!1}):this.setState({submitDisabled:!0}),this.state.withdrawalAmount&&e.target.value>this.state.withdrawalAmount?(t.amountRequested="Exceeding Maximum Withdrawable Amou
1nt",this.setState({submitDisabled:!0})):t.amountRequested="",this.setState({errors:t,[e.target.name]:e.target.value})}else if("acc_no_repeat"===e.target.name)this.state.accountNumber!=e.target.value?this.setState({[e.target.name]:e.target.value,errors:(0,a.A)((0,a.A)({},this.state.errors),{},{acc_no_repeat:["Account numbers doesn't match"]})}):this.setState({[e.target.name]:e.target.value,errors:(0,a.A)((0,a.A)({},this.state.errors),{},{acc_no_repeat:""})});else{if("checkbox"===e.target.type)return console.log(e.target),void(e.target.checked?this.setState({[e.target.name]:!0}):this.setState({[e.target.name]:!1}));if("file"===e.target.type)return this.files[e.target.name]=e.target.files[0],void this.setState({curDate:new Date});if("causes[]"===e.target.name){let t=this.state.causes;t.push(e.target.value),this.setState({causes:[...new Set(t)]})}else this.setState({errorMessage:"",[e.target.name]:e.target.value})}}async postWithdrawalRequest(){const e={fullName:"required",area:"required",location:"required",accountName:"required",accountNumber:"required",bankName:"required",ifscCode:"required",branch:"required"};this.state.readOnly||(e.bank_location="required"),this.state.showPincode&&(e.pincode="required|numeric|min:100000|max:999999");let t={campaignId:this.props.match.params.id,recipientType:"0",recipientDetail:"",fullName:"",area:"",location:"",pincode:"",city:"",state:"",country:"",proofId:"1",accountName:"",accountNumber:"",bankName:"",ifscCode:"",branch:"",bank_location:"",chequeId:"1",amountRequested:"",currency:"0",association:"0",readOnly:this.state.readOnly};if(this.state.readOnly){let e=await c.Ay.fetchData("/locations/pincode-info/"+this.state.orgInfo.reg_pincode);console.log(e),t=(0,a.A)((0,a.A)({},t),{},{amountRequested:parseInt(this.state.amountRequested)?this.state.amountRequested:0,accountName:this.state.orgInfo.Info80G._80G_ACC_NAME,fullName:this.state.orgInfo.name,location:this.state.orgInfo.reg_location,pincode:this.state.orgInfo.reg_pincode,city:this.state.orgInfo.reg_city,state:this.state.orgInfo.reg_state,proofId:this.state.orgInfo.Info80G._80G_CERT,accountNumber:this.state.orgInfo.Info80G._80G_ACC_NO,ifscCode:this.state.orgInfo.Info80G._80G_IFSC,branch:this.state.orgInfo.Info80G._80G_BRANCH,bankCity:e.data.city_name,bankState:this.state.orgInfo.reg_state,area:this.state.orgInfo.reg_address,recipientAddress:{area:"body.area"},bankName:"BANKNAMENOT CAPTURED IN 80G",recipientBank:{bankCountry:1,chequeId:this.state.orgInfo.Info80G._80G_CHEQUE}})}let s=new(x())(this.state.readOnly?t:this.state,e,{"numeric.pincode":"Enter a valid pincode","min.pincode":"Enter a valid pincode","max.pincode":"Enter a valid pincode","required.fullName":"Full name is required","required.area":"Area / Street is required","required.location":"Locality is required","required.pincode":"Pincode is required","integer.pincode":"Pincode should be a number","required.city":"Please select a city","required.state":"Please select a state","required.proofId":"Please upload an ID proof","required.accountName":"Account name is required","required.accountNumber":"Account number is required","required.bankName":"Bank name is required","required.ifscCode":"IFSC Code is required","required.branch":"Branch is required","required.bankCity":"City of branch is required","required.bankState":"State of branch is required"});if(this.state.accountNumber!=this.state.acc_no_repeat)return void this.setState({errors:(0,a.A)((0,a.A)({},this.state.errors),{},{acc_no_repeat:["Account numbers doesn't match"]})});if(s.fails())return console.log(s.errors.all()),this.setState({errorMessage:"",errors:s.errors.all()}),void console.log(s.errors.all());if(!parseInt(this.state.amountRequested))return void this.setState({errorMessage:"",errors:{amountRequested:["Enter an amount to be withdrawn"]}});let r,i=null;if(!this.state.readOnly){r=await d.Ay.UploadWithdrawalFile(this.files.cheque_leaf,this.props.match.params.id),i=await d.Ay.UploadWithdrawalFile(this.files.id_proof,this.props.match.params.id);let e=!1,t=!1;if(r.status?this.setState({chequeId:r.data.id}):(console.log(r),e=!0,this.setState({errorMessage:r.message,errors:(0,a.A)((0,a.A)({},this.state.errors),{},{cheque_leaf:["".concat(r.message)]})})),i.status?this.setState({proofId:i.data.id}):(console.log(i),t=!0,this.setState({errorMessage:i.message,errors:(0,a.A)((0,a.A)({},this.state.errors),{},{id_proof:["".concat(i.message)]})})),e||t)return}this.state.location&&!this.state.location.pinCode&&this.state.pincode&&(this.state.location.pinCode=this.state.pincode),Object.keys(t).map(e=>{void 0!==this.state[e]&&null!==this.state[e]&&(t[e]=this.state[e])}
1),d.Ay.postWithdrawalRequest(t).then(e=>{console.log(e),e.status?this.setState({showVerify:!0,withdrawalId:e.data.withdrawalId}):e.data&&e.data.errors&&this.setState({errors:e.data.errors})})}render(){return this.state.loaded?(0,y.jsxs)("div",{id:"fundraiser-view",children:[(0,y.jsx)("div",{className:"container top-links",children:(0,y.jsx)(h.A.back,{})}),(0,y.jsx)("div",{className:"content curved-box",style:{boxShadow:"rgba(0, 0, 0, 0.1) 0px 5px 24px"},children:(0,y.jsx)("div",{className:" ",style:{paddingBottom:"40px"},children:(0,y.jsxs)("div",{id:"create-withdrawal-request",style:{padding:"0px"},children:[(()=>{if(this.state.showVerify)return(0,y.jsx)(b,{onOTPVerify:this.onOTPVerify,mobile_no:this.state.userMobileNo||"",close:()=>{this.setState({showVerify:!1})}})})(),(0,y.jsxs)("div",{className:"box",style:{padding:"0px"},children:[(0,y.jsx)("h1",{style:{color:"#000"},children:"Withdrawal Request"}),this.state.readOnly?(0,y.jsx)(w,{infoMessage:this.state.infoMessage,data:this.state.orgInfo}):(0,y.jsx)(j,{no:"1",title:"Select Recepient",children:(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(p.A,{children:(0,y.jsx)(p.A.Group,{controlId:"exampleForm.SelectCustom",children:(0,y.jsx)(p.A.Control,{as:"select",name:"recepientType",readOnly:!!this.state.readOnly&&this.state.readOnly,value:this.state.recepientType,defaultValue:this.state.recepientType,onChange:this.onInputchange,children:this.state.recepientTypes.map(e=>(0,y.jsx)("option",{value:e.id,children:e.name}))})})})}),(0,y.jsx)("div",{className:"col-md-6",children:this.state.infoMessage?(0,y.jsxs)("div",{className:"alert alert-info",style:{padding:"5px 10px",fontSize:"12px"},children:[(0,y.jsx)("i",{className:"fa fa-info-circle"}),"\xa0",this.state.infoMessage]}):null})]})}),this.state.readOnly?null:(0,y.jsx)(j,{no:"2",title:"Recepient Details",children:(0,y.jsxs)(p.A,{children:[(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-md-6",children:(0,y.jsx)(m.uv,{label:"Full Name",value:this.state.fullName,className:"",name:"fullName",onChange:this.onInputchange,errors:this.state.errors})}),(()=>{let e=[{name:"PARENT",id:0},{name:"CHILD",id:1},{name:"SPOUSE",id:2},{name:"OTHER",id:4},{name:"FRIEND",id:4}];if(1==this.state.recepientType)return(0,y.jsx)("div",{className:"col-md-6",children:(0,y.jsx)(p.A,{children:(0,y.jsxs)(p.A.Group,{controlId:"exampleForm.SelectCustom",children:[(0,y.jsx)(p.A.Label,{children:"Association with Beneficiary"}),(0,y.jsx)(p.A.Control,{as:"select",name:"association",value:this.state.association,defaultValue:this.state.association,onChange:this.onInputchange,children:e.map(e=>(0,y.jsx)("option",{value:e.id,children:e.name}))})]})})})})()]}),(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-md-6",children:(0,y.jsx)(m.uv,{label:"Address",value:this.state.area,className:"",name:"area",onChange:this.onInputchange,errors:this.state.errors,placeholder:"Area / Street"})}),(0,y.jsxs)("div",{className:"col-md-6",children:[(0,y.jsx)("div",{className:"label-group",children:(0,y.jsxs)("label",{for:"exampleInputorg_type",style:{width:"100%"},children:["Location",(0,y.jsx)("span",{className:"required",children:"*"}),(0,y.jsx)("span",{style:{float:"right",fontSize:"12px",color:"rgba(0, 0, 0, 0.6)"},children:"( Search your village / town / locality )"})]})}),(0,y.jsx)(u.default,{defaultValue:this.state.area||{},errors:this.state.errors&&this.state.errors.location||null,onLocationSelected:e=>{if(!e.pinCode){let e=this.state.errors||[];return e.location=["Please be more specific , try your pincode"],this.setState({errors:e})}if(!e.city){let e=this.state.errors||[];return e.location=["Please be more specific , enter your locality"],this.setState({errors:e})}e.pinCode?this.setState({location:e,errors:(0,a.A)((0,a.A)({},this.state.errors),{},{location:null,pincode:null}),showPincode:!1}):this.setState({location:e,errors:(0,a.A)((0,a.A)({},this.state.errors),{},{location:null,pincode:null}),showPincode:!0})}}),this.getErrorMessage("location")]}),(()=>{if(this.state.showPincode)return(0,y.jsxs)("div",{className:"col-md-6",style:{marginBottom:"10px"},children:[(0,y.jsx)("div",{className:"label-group",children:(0,y.jsxs)("label",{for:"exampleInputorg_type",style:{width:"100%"},children:["Pincode",(0,y.jsx)("span",{className:"required",children:"*"})]})}),(0,y.jsx)(p.A.Control,{defaultValue:this.state.pincode,value:this.state.pincode,type:"number",name:"pincode",onChange:this.onInputchange,placeholder:"Enter pincode"}),this.getErrorMessage("pincode")]})})()]}),(0,y.jsx)("div",{className:"row",style:{marginTop:"20px"},children:(0,y.jsx)("div",{className:"col-md-12",children:(0,y.jsx)(m.l0,{errors:this.state.errors,section_title:"Upload Recipient\u2019s ID proof, like Aadhar / Driver\u2019s / Passport / Voter\u2019s ID",section_title2:"",value:this.files.id_proof,onChange:this.onInputchange,name:"id_proof",title:"UPLOAD",desc:" .jpg, .png & .pdf File not more than 5mb "})})})]})}),this.state.readOnly?null:(0,y.jsxs)(j,{no:"3",title:"Recepient Bank Account Details",children:[(0,y.jsx)("div",{className:"row",children:(0,y.jsx)("div",{className:"col-md-6",children:(0,y.jsx)(m.uv,{label:"Enter Name on Recipient Bank Account",value:this.state.accountName,className:"",name:"accountName",onChange:this.onInputchange,errors:this.state.errors})})}),(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(m.uv,{label:"Account Number",value:this.state.accountNumber,className:"",name:"accountNumber",onChange:this.onInputchange,errors:this.state.errors,placeholder:""})}),(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(m.uv,{label:"Re-Type Account Number",value:this.state.acc_no_repeat,className:"",name:"acc_no_repeat",onCh
1ange:this.onInputchange,errors:this.state.errors,placeholder:""})})]}),(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(m.uv,{label:"Bank Name",value:this.state.bankName,className:"",name:"bankName",onChange:this.onInputchange,errors:this.state.errors,placeholder:""})}),(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(m.uv,{label:"IFSC Code",value:this.state.ifscCode,className:"",name:"ifscCode",onChange:this.onInputchange,errors:this.state.errors,placeholder:""})}),(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(m.uv,{label:"Branch",value:this.state.branch,className:"",name:"branch",onChange:this.onInputchange,errors:this.state.errors,placeholder:""})})]}),(0,y.jsx)("div",{className:"row",children:(0,y.jsxs)("div",{className:"col-md-6",children:[(0,y.jsx)("div",{className:"label-group",children:(0,y.jsxs)("label",{for:"exampleInputorg_type",style:{width:"100%"},children:["City",(0,y.jsx)("span",{className:"required",children:"*"}),(0,y.jsx)("span",{style:{float:"right",fontSize:"12px",color:"rgba(0, 0, 0, 0.6)"},children:"( Enter Bank city )"})]})}),(0,y.jsx)(u.default,{defaultValue:this.state.area||{},errors:this.state.errors&&this.state.errors.bank_location||null,onLocationSelected:e=>{if(!e.city){let e=this.state.errors||[];return e.bank_location=["Please be more specific , enter bank city"],this.setState({errors:e})}e.pinCode,this.setState({bank_location:e,errors:(0,a.A)((0,a.A)({},this.state.errors),{},{bank_location:null})})}}),this.getErrorMessage("bank_location")]})}),(0,y.jsx)("div",{className:"row",style:{marginTop:"20px"},children:(0,y.jsx)("div",{className:"col-md-12",children:(0,y.jsx)(m.l0,{errors:this.state.errors,section_title:"Upload Cancelled cheque leaf",section_title2:"",value:this.files.cheque_leaf,onChange:this.onInputchange,name:"cheque_leaf",title:"UPLOAD",desc:" .jpg, .png & .pdf File not more than 5mb "})})})]}),(0,y.jsxs)(j,{no:this.state.readOnly?"":"4",title:"Withdrawal Amount",children:[(0,y.jsx)("div",{className:"row",style:{marginTop:"20px"},children:(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(m.uv,{label:"Enter Amount",label2:"Amount that you wish to withdraw",value:this.state.amountRequested,className:"",name:"amountRequested",onChange:this.onInputchange,errors:this.state.errors,placeholder:""})})}),(()=>{if(this.state.withdrawalAmount)return(0,y.jsx)("div",{className:"row",style:{marginTop:"20px"},children:(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsxs)("span",{style:{color:"rgba(229, 100, 62, 1)",fontSize:"14px"},children:["Maximum available"," ",(0,y.jsx)("span",{style:{fontWeight:"bold"},children:"\u20b9"}),this.state.withdrawalAmount.toLocaleString("en-IN")]})})})})(),(0,y.jsx)("div",{className:"row",style:{marginTop:"20px"},children:(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)("div",{className:"form-group",children:(0,y.jsx)("button",{onClick:this.postWithdrawalRequest,className:"btn-primary-color",children:"SUBMIT"})})})})]})]})]})})})]}):(0,y.jsx)(l.default,{})}}const N=(0,i.Ng)(e=>({localVariable:e.authenticated}),e=>({authenticatedSample:()=>e({type:n.K_})}))(v),j=e=>{let{no:t,title:s,children:r,style:i,hide:n}=e;return n?null:(0,y.jsxs)("div",{style:(0,a.A)({},i),className:"box-titled",children:[(0,y.jsxs)("div",{className:"box-title",children:[(0,y.jsx)("span",{style:{paddingRight:"20px"},children:t}),s]}),(0,y.jsx)("div",{className:"box-content",children:r})]})};class b extends r.Component{constructor(){super(),this.inputRefs=[r.createRef(),r.createRef(),r.createRef(),r.createRef()],this.state={resendOTP:!1,verifyStatus:!0},this.onOTPVerify=this.onOTPVerify.bind(this)}async onOTPVerify(){await this.props.onOTPVerify(this.inputRefs[0].value+this.inputRefs[1].value+this.inputRefs[2].value+this.inputRefs[3].value)||(this.inputRefs[0].value="",this.inputRefs[1].value="",this.inputRefs[2].value="",this.inputRefs[3].value="",this.setState({verifyStatus:!1}))}_goNextAfterEdit(e){e<this.inputRefs.length-1&&this.inputRefs[e+1].focus()}_goPrevAfterEdit(e){e>0&&this.inputRefs[e-1].focus()}onInputchange(e){this.state.errorMessage&&this.setState({errorMessage:null}),this.setState({verifyStatus:!0}),this.setState({[e.target.name]:e.target.value})}render(){let e=null;return this.state.errorMessage&&(e=(0,y.jsx)("div",{className:"alert alert-danger",children:this.state.errorMessage})),(0,y.jsx)("div",{className:"overlay",onClick:e=>{this.props.close()},children:(0,y.jsx)("div",{className:"popup-form-container",style:{justifyContent:"space-evenly"},id:"mobileOTPVerify",onClick:e=>{e.stopPropagation()},children:(0,y.jsxs)("div",{className:"otp-form",children:[(0,y.jsxs)("div",{className:"otp-title",children:["Enter OTP sent to ",(0,y.jsx)("br",{})," ",(0,y.jsx)("strong",{children:this.props.mobile_no})]}),(0,y.jsx)("div",{className:"otp-input",children:this.inputRefs.map((e,t)=>(0,y.jsx)("input",{onKeyUp:e=>{"Backspace"===e.key&&this._goPrevAfterEdit(t)},onChange:e=>{"Backspace"===e.key&&this._goPrevAfterEdit(t),this._goNextAfterEdit(t),this.onInputchange(e)},ref:e=>this.inputRefs[t]=e,name:"otp_"+t,maxLength:"1"}))}),e,this.state.resendOTP?(0,y.jsx)("div",{className:"alert alert-success",children:"OTP Resent"}):null,this.state.verifyStatus?null:(0,y.jsx)("div",{className:"alert alert-danger",children:"Wrong OTP"}),(0,y.jsxs)("div",{className:"action-container",children:[(0,y.jsx)("buton",{className:"signinbutton",onClick:this.onOTPVerify,children:"Verify OTP"}),(0,y.jsxs)("p",{children:["Didn\u2019t recieve OTP?"," ",(0,y.jsx)("span",{onClick:()=>{this.props.resendOTP(),this.setState({resendOTP:!0}),setTimeout(()=>{this.setState({resendOTP:!1})},3e3)},children:"RESEND OTP"})]})]})]})})})}}class w extends r.Component{render(){return(0,y.jsx)("div",{children:(0,y.jsxs)("div",{className:"row",children:[(0,y.jsxs)("div",{className:"col-md-12",style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"10px"},children:[(0,y.jsx)("div",{children:(0,y.jsx)("img",{src:"/images/profile-ph.png",style:{width:"50x",height:"50px",borderRadius:"50%"}})}),(0,y.jsx)("div",{style:{fontWeight:"bold",fontSize:"16px",lineHeight:"20px",padding:"10px"},children:this.props.data.name})]}),(0,y.jsxs)("div",{className:"col-md-12",children:[(0,y.jsx)("div",{style:{fontSize:"16px",lineHeight:"20px",color:"rgba(0, 0, 0, 0.5)"},children:"Address"}),(0,y.jsxs)("div",{style:{fontweight:"600",fontSize:"16px",lineHeight:"150%",paddingBottom:"20px"},children:[this.props.data.reg_address,(0,y.jsx)("br",{}),(this.props.data.reg_location,this.props.data.reg_pincode)]})]}),(0,y.jsx)("div",{className:"col-md-12",children:this.props.infoMessage?(0,y.jsxs)("div",{className:"alert alert-info",style:{padding:"5px 10px",fontSize:"12px"},children:[(0,y.jsx)("i",{className:"fa fa-info-circle"}),"\xa0",this.props.infoMessage]}):null}),(0,y.jsx)("div",{className:"col-md-12",children:(0,y.jsx)(j,{no:"",title:(0,y.jsxs)(r.Fragment,{children:["Bank Details (",(0,y.jsxs)("small",{children:["As provided by ",this.props.data.name]}),")"]}),children:(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-md-12",children:(0,y.jsx)(S,{title:"Name",children:this.props.data.Info80G._80G_ACC_NAME})}),(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(S,{title:"Account Number",children:this.props.data.Info80G._80G_ACC_NO})}),(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(S,{title:"IFSC CODE",children:this.props.data.Info80G._80G_IFSC})}),(0,y.jsx)("div",{className:"col-md-4",children:(0,y.jsx)(S,{title:"BRANCH NAME",children:this.props.data.Info80G._80G_BRANCH})})]})})})]})})}}class S extends r.Component{render(){return(0,y.jsxs)("div",{style:{paddingBottom:"30px"},children:[(0,y.jsx)("div",{style:{fontSize:"16px",lineHeight:"20px",color:"rgba(0, 0, 0, 0.5)",paddingBottom:"10px"},children:this.props.title}),(0,y.jsx)("div",{children:this.props.children})]})}}}}]); 2//# sourceMappingURL=994.9cf8eb1b.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.