1"use strict";(self.webpackChunkwishwa_portal=self.webpackChunkwishwa_portal||[]).push([[1700],{71700:(e,a,s)=>{s.r(a),s.d(a,{default:()=>Y});var t=s(89379),i=s(65043),n=s(97508),r=s(53167),o=s(98093),c=(s(41949),s(61271),s(41591)),l=s(14282),d=s(65758),h=s(86311),m=s(82573),p=s(10151),g=s(86178),x=s.n(g),u=s(79456),j=s(84043),f=s(41791),v=s(3793),b=s(65073),N=s(97339),y=s(86831),w=s(7854),D=s(75180),C=s(97128),A=s(26442),S=s(24519),I=s(97811),R=s(75605),_=s(44410),k=s(11106),T=(s(93245),s(48365)),E=s(70579);const L=(0,i.lazy)(()=>s.e(4892).then(s.bind(s,74892))),U=(0,i.lazy)(()=>Promise.all([s.e(4030),s.e(9634),s.e(4343),s.e(2564)]).then(s.bind(s,84343))),B=(0,i.lazy)(()=>s.e(1964).then(s.bind(s,51964))),O=(0,i.lazy)(()=>s.e(4456).then(s.bind(s,34456))),W=(0,i.lazy)(()=>Promise.resolve().then(s.bind(s,12014))),z=(0,i.lazy)(()=>s.e(4971).then(s.bind(s,84971))),M=(0,i.lazy)(()=>s.e(4711).then(s.bind(s,54711))),F=(0,i.lazy)(()=>s.e(3662).then(s.bind(s,33662))),P=(0,i.lazy)(()=>Promise.resolve().then(s.bind(s,48762))),G=(0,i.lazy)(()=>Promise.resolve().then(s.bind(s,35153))),H=(0,i.lazy)(()=>Promise.all([s.e(4030),s.e(6855),s.e(1400)]).then(s.bind(s,73988)));class q extends i.Component{constructor(e){super(e),this.donationCountSetter=e=>{this.setState({donationsCount:e})},this.setCount=(e,a)=>{this.setState({[e]:a})};let a={show_donate:!1,loaded:!1,slug:e.match.params.slug,showSuccess:!1,showReport:!1,campaignData:null,donationsCount:0,updatesLength:0,commentsLength:0,showGraph:!1,color:"linear-gradient(180deg, #EC801A 0%, #DA3A76 100%)",graphData:[["month","range",{role:"style"}],["jan",67,"#EC801A"],["feb",74,"#EC801A"],["mar",83,"#EC801A"],["apr",89,"#EC801A"],["may",92,"#EC801A"],["jun",104,"#EC801A"],["jul",111,"#EC801A"],["aug",103,"#EC801A"],["sep",106,"#EC801A"],["oct",108,"#EC801A"],["nov",119,"#EC801A"],["dec",128,"#EC801A"]]};const s=new URLSearchParams(window.location.search),t=s.get("payment_ref");t&&(window.localStorage.removeItem("celebration"),"celebration"==s.get("mode=")&&p.A.push("/celebrate-with-a-cause/acknowledge?payment_ref="+t),a.showSuccess=!0,s.get("request_pan")&&(a.showPan=!0)),this.state=a,this.renderImages=this.renderImages.bind(this),this.renderDocs=this.renderDocs.bind(this),this.toggleDonate=this.toggleDonate.bind(this),this.onInputchange=this.onInputchange.bind(this),this.carouselRef=(0,i.createRef)(),this.rightRef=(0,i.createRef)(),this.leftRef=(0,i.createRef)(),this.onScroll=this.onScroll.bind(this),window.onscroll=this.onScroll,this.resetTimeout=null}onScroll(e){if(!r.Fr||"MIUI Browser"==r.C0){if(null==this.rightRef.current||null==this.leftRef.current)return;let e=document.getElementById(this.leftRef.current.id).getBoundingClientRect(),a=document.getElementById(this.rightRef.current.id).getBoundingClientRect();if(e.top<=0){let s=0-e.top;e.height,a.height;s+a.height<=e.height&&(document.getElementById(this.rightRef.current.id).style.position="relative",document.getElementById(this.rightRef.current.id).style.top=s+"px")}else document.getElementById(this.rightRef.current.id).style.position="",document.getElementById(this.rightRef.current.id).style.top=""}}componentDidMount(){window.scrollTo(0,0);let e=this;u.Ay.fetchData("/campaign/"+this.state.slug).then(a=>{a.status?e.setState({loaded:!0,campaignData:a.data}):p.A.push("/fundraisers")})}componentWillUnmount(){clearTimeout(this.resetTimeout)}getSnapshotBeforeUpdate(e,a){if(e.match.params.slug!=this.props.match.params.slug){let e=this;u.Ay.fetchData("/campaign/"+this.state.slug).then(a=>{a.status?e.setState({slug:this.props.match.params.slug,loaded:!0,campaignData:a.data}):p.A.push("/")})}}onInputchange(e){this.setState({errorMessage:"",[e.target.name]:e.target.value})}onInputchange(e){this.setState({errorMessage:"",[e.target.name]:e.target.value})}static getDerivedStateFromProps(e,a){return(0,t.A)((0,t.A)({},a),{},{slug:e.match.params.slug})}toggleDonate(){this.setState({show_donate:!this.state.show_donate})}renderImages(e){return null!=e?e.map((e,a)=>e.mime.includes("video/mp4")?(0,E.jsx)("video",{style:{width:"60vh"},controls:!0,controlsList:"nodownload",children:(0,E.jsx)("source",{src:"//"+e.storageURL,t
1ype:"video/mp4"})}):e.mime.includes("application/")?e.storageURL.includes(".pdf")?(0,E.jsx)("a",{target:"_blank",href:"//"+e.storageURL,children:(0,E.jsx)("img",{src:"/images/pdf.png",className:"img img-responsive"},"top_banner_img_"+a)}):(0,E.jsx)("a",{target:"_blank",href:"//"+e.storageURL,children:(0,E.jsx)("img",{src:"/images/doc.png",className:"img img-responsive"},"top_banner_img_"+a)}):(0,E.jsx)("div",{style:{background:"url('".concat("//"+e.storageURL,"')"),width:"100%",minHeight:"300px",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",borderRadius:"15px",boxShadow:"0px 0px 24px rgb(0 0 0 / 10%)"}},"top_banner_img_"+a)):(0,E.jsx)("div",{style:{width:"100%"},children:"No image uploaded for this campaign"})}renderDocs(e){return null!=e?e.map((e,a)=>{var s;let t=null;return null!==(s=e.jsonInfo)&&void 0!==s&&s.options&&(t=(0,E.jsx)("div",{style:{fontSize:"12px",fontWeight:600,padding:"10px 0px"},children:e.jsonInfo.options.docName})),e.mime.includes("application/")?e.storageURL.includes(".pdf")?(0,E.jsxs)("a",{target:"_blank",href:"//"+e.storageURL,style:{display:"flex",flexDirection:"column"},children:[(0,E.jsx)("img",{src:"/images/pdf.png",className:"img img-responsive",style:{maxWidth:"50px"}},"top_banner_img_"+a),t]}):(0,E.jsxs)("a",{target:"_blank",href:"//"+e.storageURL,style:{display:"flex",flexDirection:"column"},children:[(0,E.jsx)("img",{src:"/images/doc.png",className:"img img-responsive",style:{maxWidth:"50px"}},"top_banner_img_"+a),t]}):(0,E.jsxs)("div",{className:"document-preview-image",children:[(0,E.jsx)(O,{small:"//"+e.storageURL,large:"//"+e.storageURL,alt:""},"top_banner_img_"+a),t]})}):(0,E.jsx)("div",{style:{width:"100%"},children:"No image uploaded for this campaign"})}render(){let e=null;if(window.location.hash&&window.location.hash.startsWith("#highlight_update_")&&(e=window.location.hash.split("_").pop()),!this.state.loaded)return(0,E.jsx)("div",{className:"content",children:(0,E.jsx)(W,{})});Math.abs(new Date(this.state.campaignData.endDate).getTime()-(new Date).getTime()),this.state.campaignData.campaignId.toString().padStart(6,"0");let a=x().duration(x()(this.state.campaignData.endDate).endOf("day").diff(x()())
1).asDays().toFixed(0),s=0;s=this.state.campaignData.percentage<10?340:(100-this.state.campaignData.percentage)/100*360;let t=null;this.state.show_donate&&(t=(0,E.jsx)(B,{onClose:this.toggleDonate,campaignId:this.state.campaignData.campaignId}));let n=null;this.state.showReport&&(n=(0,E.jsx)(G,{showWindow:this.state.showReport,showCloseButton:!1,title:"Report Fundraiser",buttonContainerClass:"center",buttons:[{class:"btn btn-primary",text:"Report",onClick:async e=>{u.Ay.reportFundraiser({campaignId:this.state.campaignData.campaignId,reason:this.state.reportReason}).then(()=>{this.setState({reportReason:null})}),this.state.reportReason&&""!==this.state.reportReason&&this.setState({showReport:!1})}},{class:"btn btn-primary-inverse",text:"Cancel",onClick:e=>{this.setState({showReport:!1})}}],children:(0,E.jsx)("div",{style:{minWidth:"300px"},children:(0,E.jsx)(R.Zd,{label:"Reason for reporting ( Max 100 Chars)",label2:"",maxLength:300,value:this.state.reportReason,className:"wide-100",name:"reportReason",onChange:this.onInputchange,errors:this.state.errors,rows:"5"})})}));let o={};r.Fr&&(o.renderArrow=(e,a,s)=>(0,E.jsx)("span",{}));const l=()=>{console.log(this.props),p.A.push("/fundraisers/donate/".concat(this.state.slug))};return(0,E.jsxs)("div",{children:[(0,E.jsxs)(c.m,{children:[(0,E.jsx)("title",{children:this.state.campaignData.seoObject?this.state.campaignData.seoObject.title:this.state.campaignData.title}),this.state.campaignData.seoObject.keywords?(0,E.jsx)("meta",{name:"keywords",content:this.state.campaignData.seoObject.keywords}):null,this.state.campaignData.seoObject.desc?(0,E.jsx)("meta",{name:"description",content:this.state.campaignData.seoObject.desc}):null]}),(0,E.jsx)(F,{onRefresh:()=>{this.setState({date:new Date})},type:"fundraiser",id:this.state.campaignData.campaignId,titleSlug:this.state.campaignData.titleSlug,mediaItems:this.state.campaignData.metaMedia}),(()=>this.state.campaignData.isPreview?(0,E.jsx)("div",{className:"campaign-preview-notice",children:"Note: This is a preview for backend user"}):this.state.campaignData.viewAsBackend?(0,E.jsx)("div",{className:"campaign-preview-notice",children:"Note: You are viewing as a backend user"}):null)(),(()=>{if(this.state.showSuccess)return(0,E.jsx)(z,{showWindow:this.state.showSuccess,autoClose:"40",showCloseButton:!0,onClose:()=>{this.setState({showSuccess:!1})},children:(0,E.jsxs)("div",{className:"custom-popup",children:[(0,E.jsx)("div",{style:{textAlign:"center",justifySelf:"flex-start",alignSelf:"stretch"},children:(0,E.jsx)("i",{class:"fas fa-thumbs-up"})}),(0,E.jsx)("div",{children:(0,E.jsx)("h3",{style:{textAlign:"center"},children:"Thank you for your Donation"})}),(0,E.jsx)("div",{children:(0,E.jsx)("h4",{style:{textAlign:"center"},children:"You\u2019re helping people change their lives"})}),(0,E.jsx)("div",{children:(0,E.jsxs)("h5",{style:{textAlign:"center"},children:["Tell your friends about Wishwa!",(0,E.jsx)("br",{}),"More the reach, merrier the results"]})}),(0,E.jsx)("div",{children:(0,E.jsx)("div",{style:{width:"60%",margin:"auto",textAlign:"center"},children:(0,E.jsx)($,{})})})]})})})(),t,n,(0,E.jsx)("div",{className:"content",children:(0,E.jsx)("div",{id:"content-detail",children:(0,E.jsxs)("div",{className:"container",children:[(0,E.jsx)(P,{template:"dark",items:[{name:"Ongoing Fundraisers",link:"/fundraisers/ongoing"},{name:this.state.campaignData.title}]}),(0,E.jsxs)("div",{className:"row",children:[(0,E.jsxs)("div",{className:"col-md-8 fadeInAnim",id:"leftRef",ref:this.leftRef,children:[(0,E.jsxs)("div",{className:"rounded-box",id:"campaign-body",children:[(0,E.jsxs)("div",{className:"campaign-title-container",children:[(0,E.jsxs)("p",{children:[(0,E.jsx)("span",{className:"category",style:{borderRight:"none"},children:this.state.campaignData.cause.name}),(0,E.jsxs)("span",{onClick:()=>{this.props.authenticated?this.setState({showReport:!0}):this.props.showLoginWindow()},style:{cursor:"pointer",float:"right",color:"#E5643E"},children:[(0,E.jsx)("i",{class:"fas fa-flag"})," ","Report Fundraiser"]})]}),(0,E.jsx)("h1",{children:this.state.campaignData.title})]}),(0,E.jsx)("div",{id:"slider",children:(0,E.jsx)(H,{mediaItems:this.state.campaignData.metaMedia},"campaign_media"+this.state.campaignData.campaignId)}),(()=>r.Fr||"MIUI Browser"==r.C0?(0,E.jsx)("div",{className:"rounded-box",id:"campaign-sidebar-detail",style:{position:"fixed",bottom:"0px",left:"0px",width:"100vw",zIndex:"298",marginBottom:"0px",background:"rgba(255, 255, 255, 0.9)",borderTop:"lightcoral 3px solid",borderRadius:"0px"},children:(0,E.jsxs)("div",{className:"campaign-status",children:[(0,E.jsx)("div",{className:"time-remaining",children:(-0==a&&(a=0),a<0?(0,E.jsx)("span",{className:"bold",children:"Fundraiser Ended"}):(0,E.jsx)(i.Fragment,{children:(0,E.jsxs)("span",{className:"bold",children:[a<=0?"Ends ":a+" DAYS",a<=0?"Today":" TO GO"]})}))}),(0,E.jsxs)("div",{className:"donation-status",style:{fontSize:"16px",padding:"0px"},children:[(0,E.jsx)("strong",{children:this.state.campaignData.achieved?(0,k.u)(this.state.campaignData.achieved,0):"\u20b90"})," ","Raised of"," ",(0,E.jsxs)("strong",{children:[" ",(0,k.u)(this.state.campaignData.target,0)]})," ","Goal"]}),this.state.campaignData.is80G?(0,E.jsxs)("div",{className:"indian-tax",children:[(0,E.jsx)("i",{className:"fa fa-info-circle"})," ","Indian Tax Benefits Available"]}):null,(()=>3===this.state.campaignData.status?(0,E.jsx)("div",{children:(0,E.jsx)("button",{className:"donate-now",onClick:()=>{(0,_.s)("donation_cick",this.state.campaignData.titleSlug,"fixed_donate_bar"),this.toggleDonate()},children:"DONATE NOW"})}):(0,E.jsxs)("div",{children:[(0,E.jsx)("button",{className:"donate-now donate-now-disabled",children:"DONATE NOW"}),(0,E.jsx)("div",{className:"donations-closed-msg",children:(0,E.jsx)("span",{children:"Donations Are Currently Closed"})})]}))()]})}):null)(),(0,E.jsxs)("div",{className:"campaign-actor-container",children:[(0,E.jsxs)("div",{className:"campaign-actor",children:[(0,E.jsx)("div",{className:"actor-image",children:(0,E.jsx)("img",{src:"/images/profile-ph.png",alt:""})}),(0,E.jsxs)("div",{className:"actor-info",onClick:()=>{(0,T.dK)({content:(0,E.jsx)(M,{id:this.state.campaignData.user.id})})},children:[(0,E.jsxs)("h4",{children:["Campaigner"," ",0==this.state.campaignData.beneficiaryType?"& Beneficiary":""," "]}),(0,E.jsxs)("div",{className:"actor-meta",children:[(0,E.jsx)("p",{className:"actor-name",children:1==this.state.campaignData.beneficiaryType?this.state.campaignData.beneficiaries.name:this.state.campaignData.user.fullname}),(0,E.jsx)("p",{children:(0,E.jsxs)("span",{className:"location",children:[" ",(0,E.jsx)("i",{className:"fas fa-map-marker-alt"})," ",this.state.campaignData.city?this.state.campaignData.city.city_name:"Hyderabad"]})})]})]})]}),(0,E.jsx)(K,{beneficiaryType:this.state.campaignData.beneficiaryType,data:this.state.campaignData.beneficiaries})]}),(0,E.jsxs)("div",{className:"campaign-body-container",children:[(0,E.jsxs)("ul",{className:"nav nav-tabs",id:"campiagn-body-tab",role:"tablist",children:[(0,E.jsx)("li",{className:"nav-item",children:(0,E.jsx)("a",{className:"nav-link ".concat(e?"":"active"),id:"home-tab","data-toggle":"tab",href:"#home",role:"tab","aria-controls":"home","aria-selected":"true",children:"About"})}),(0,E.jsx)("li",{className:"nav-item",children:(0,E.jsxs)("a",{className:"nav-link ".concat(e?"active":""),id:"profile-tab","data-toggle":"tab",href:"#profile",role:"tab","aria-controls":"profile","aria-selected":"false",children:["Updates",this.state.updatesLength>0?"(".concat(this.state.updatesLength,")"):null]})}),(0,E.jsx)("li",{className:"nav-item",children:(0,E.jsxs)("a",{className:"nav-link",id:"contact-tab","data-toggle":"tab",href:"#contact",role:"tab","aria-controls":"contact","aria-selected":"false",children:["Comments",this.state.commentsLength>0?"(".concat(this.state.commentsLength,")"):null]})})]}),(0,E.jsxs)("div",{className:"tab-content",id:"myTabContent",children:[(0,E.jsxs)("div",{className:"tab-pane ".concat(e?"fade":"show active"),id:"home",role:"tabpanel","aria-labelledby":"home-tab",children:[(()=>x()(this.state.campaignData.createAt).isBefore(x()("2021-12-24"))?(0,E.jsx)("p",{dangerouslySetInnerHTML:{__html:this.state.campaignData.details}}):(0,E.jsx)("div",{class:"campaign-story",style:{fontSize:"12px"},dangerouslySetInnerHTML:{__html:this.state.campaignData.details.replace(/&#\d+;/gm,function(e){return String.fromCharCode(e.match(/\d+/gm)[0])})}}))(),(0,E.jsxs)("div",{className:"doc-container",children:[(0,E.jsx)("h5",{children:"Documents"}),(0,E.jsx)("div",{className:"camp-doc-box",children:this.renderDocs(this.state.campaignData.docs)}),null!=this.state.campaignData.metaMedia?(0,E.jsx)("div",{className:"more-docs",style:{display:"none"},children:"More Documents"}
1,"campaign_key_"+this.state.campaignData.campaignId):null]})]}),(0,E.jsx)("div",{className:"tab-pane ".concat(e?"show active":"fade"),id:"profile",role:"tabpanel","aria-labelledby":"profile-tab",children:(0,E.jsx)(Q,{campaignId:this.state.campaignData.campaignId,setCount:this.setCount},"key_".concat(this.state.campaignData.campaignId))}),(0,E.jsx)("div",{className:"tab-pane fade",id:"contact",role:"tabpanel","aria-labelledby":"contact-tab",children:(0,E.jsx)(L,{config:{enableLike:!1},CommentService:u.Ay,id:this.state.campaignData.campaignId,setCount:this.setCount})})]})]})]}),(0,E.jsx)("div",{className:"donation-details",children:(0,E.jsx)(Z,{campaignId:this.state.campaignData.campaignId,donationCountSetter:this.donationCountSetter},"donation_block_".concat(this.state.campaignData.campaignId))})]}),(0,E.jsx)("div",{className:"col-md-4 fadeInAnim",style:{paddingRight:"0px !important"},children:(0,E.jsx)("div",{className:"",id:"campaign-sidebar-detail",ref:this.rightRef,children:(0,E.jsxs)("div",{className:"campaign-status rounded-box",children:[(0,E.jsx)("div",{className:"time-remaining",children:(-0==a&&(a=0),a<0?(0,E.jsx)("span",{className:"bold",children:"Fundraiser Ended"}):(0,E.jsxs)(i.Fragment,{children:[(0,E.jsx)("span",{className:"bold",children:a<=0?"Ends ":a+" DAYS"}),(0,E.jsx)("span",{children:a<=0?"Today":" TO GO"})]}))}),(0,E.jsxs)("div",{className:"campaign-progress",children:[(0,E.jsxs)("svg",{width:"200",height:"200",viewBox:"0 0 120 120",style:{position:"absolute",top:"0px",left:"0px",transform:"rotate(-90deg)"},children:[(0,E.jsx)("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"#e6e6e6",strokeWidth:"6"}),(0,E.jsx)("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"url(#paint0_linear)",strokeWidth:"6",strokeDasharray:"339.292",strokeDashoffset:s}),(0,E.jsx)("defs",{children:(0,E.jsxs)("linearGradient",{id:"paint0_linear",x1:"67.6651",y1:"237.107",x2:"212.132",y2:"115.068",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#F19400"}),(0,E.jsx)("stop",{offset:".45",stopColor:"#E5643E"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#DA3976"})]})})]}),(0,E.jsxs)("span",{className:"percentage",children:[this.state.campaignData.percentage,"%"]}),(0,E.jsxs)("span",{className:"number",children:[(0,E.jsx)("strong",{})," ","Goal Amount",(0,E.jsx)("br",{})," Achieved"]})]}),(0,E.jsxs)("div",{className:"donation-status",style:{padding:"0px"},children:[(0,E.jsx)("strong",{children:this.state.campaignData.achieved?(0,k.u)(this.state.campaignData.achieved,0):"\u20b90"})," ","Raised of ",(0,E.jsx)("br",{}),(0,E.jsx)("strong",{children:(0,k.u)(this.state.campaignData.target,0)})," ","Goal"]}),this.state.campaignData.hasTaxBenefit?(0,E.jsxs)("div",{className:"indian-tax",children:[(0,E.jsx)("i",{className:"fa fa-info-circle"})," ","Indian Tax Benefits Available"]}):null,(()=>3===this.state.campaignData.status?(0,E.jsx)("div",{children:(0,E.jsx)("button",{className:"donate-now",onClick:l,children:"DONATE NOW"})}):(0,E.jsxs)("div",{children:[(0,E.jsx)("button",{className:"donate-now donate-now-disabled",children:"DONATE NOW"}),(0,E.jsx)("div",{className:"donations-closed-msg",children:(0,E.jsx)("span",{children:"Donations Are Currently Closed"})})]}))(),(0,E.jsx)($,{}),(0,E.jsx)("hr",{})]})},"campaign_stat_box_".concat(this.state.campaignData.campaignId))})]})]})})}),(0,E.jsx)(J,{}),(0,E.jsx)("div",{className:"content2",style:{paddingTop:"40px"},children:(0,E.jsx)(U,{title:"Similar Fundraisers",theme:"light",mode:"carousel",data_source:"/list/similar-fundraisers/".concat(this.state.campaignData.campaignId)})})]})}}const Y=(0,n.Ng)(e=>({authenticated:e.root.authenticated}),e=>({showLoginWindow:()=>e({type:o.$1})}))(q);class K extends i.Component{render(){if(null==this.props.beneficiaryType)return null;let e="NoDATA",a="/images/profile-ph.png";if(0==this.props.beneficiaryType)return null;if(2==this.props.beneficiaryType){let s="Friend";switch(this.props.data.relationship){case 1:s="Friend";break;case 2:s="Relative";break;case 1:s="Neighbour";break;case 2:s="Colleague";break;case 5:s=this.props.data.relation}e=(0,E.jsx)("div",{className:"actor-meta",children:(0,E.jsx)("p",{className:"actor-name",children:this.props.data.name})}),a=(this.props.data.media.storageURL.startsWith("htt")?"":"//")+this.props.data.media.storageURL}return 4==this.props.beneficiaryType&&(e=(0,E.jsxs)("div",{className:"actor-meta",children:[(0,E.jsx)("p",{className:"actor-name",children:this.props.data.name}),(0,E.jsx)("p",{children:(0,E.jsx)("span",{className:"location",children:"(Organisation)"})})]})),1==this.props.beneficiaryType&&(e=(0,E.jsxs)("div",{className:"actor-meta",children:[(0,E.jsx)("p",{className:"actor-name",children:this.props.data.name}),(0,E.jsx)("p",{children:(0,E.jsx)("span",{className:"location",children:"(Organisation)"})})]})),3==this.props.beneficiaryType&&(1==this.props.data.length&&(e=this.props.data[0].name),2==this.props.data.length&&(e=this.props.data[0].name+", "+this.props.data[1].name),this.props.data.length>2&&(e=this.props.data[0].name+", "+this.props.data[1].name+" & "+(this.props.data.length-2)+" Others"),a="//"+this.props.data[0].image.storageURL),(0,E.jsxs)("div",{className:"campaign-actor",children:[(0,E.jsx)("div",{className:"actor-image",children:(0,E.jsx)("img",{src:a||"/images/profile-ph.png",alt:"campaigner image"})}),(0,E.jsxs)("div",{className:"actor-info",children:[(0,E.jsx)("h4",{children:3==this.props.beneficiaryType?"Beneficiaries":"Beneficiary"}),e]})]})}}class Z extends i.Component{constructor(e){super(e),this.state={loaded:!1,data:null,campaignId:e.campaignId}}componentDidMount(){this.getData()}getSnapshotBeforeUpdate(e,a){e.key!=this.props.key&&this.getData()}static getDerivedStateFromProps(e){return{campaignId:e.campaignId}}getData(){u.Ay.fetchData("/donation/get-donation-stats?campaignId="+this.props.campaignId).then(e=>{e.status?(this.setState({data:e.data,loaded:!0}),this.props.donationCountSetter(e.data.donationsCount)):this.setState({loaded:!0})}).catch(e=>{})}render(){return(0,E.jsx)("div",{children:(()=>this.state.loaded?0===this.state.data.donationsCount?null:(0,E.jsxs)("div",{className:"rounded-box",id:"camp-donations",children:[(0,E.jsx)("h5",{children:"Donations"}),(0,E.jsx)("hr",{}),(0,E.jsxs)("div",{className:"donor-summary",children:[(0,E.jsxs)("div",{className:"donor-num",children:[(0,E.jsx)("span",{children:this.state.data.donationsCount})," ","Donors"]}),(0,E.jsxs)("div",{className:"donor-high",children:[(0,E.jsx)("span",{children:(0,k.u)(this.state.data.maxDonation,0)}),"Highest"]}),(0,E.jsxs)("div",{className:"donor-average",children:[(0,E.jsx)("span",{children:(0,k.u)(this.state.data.avgDonation,0)}),"Average"]})]}),(0,E.jsx)("h6",{children:"Recently Donated"}),(0,E.jsx)("div",{className:"donor-row-list",children:this.state.data.recentDonations.map(e=>(0,E.jsxs)("div",{className:"donor-row-item",children:[(0,E.jsxs)("div",{className:"donor-profile",children:[e.profileImage?(0,E.jsx)("img",{className:"profile-image",src:"//"+e.profileImage.storageURL}):(0,E.jsx)("img",{className:"profile-image",src:"/images/profile-ph.png"}),(0,E.jsx)("span",{children:e.name})]}),(0,E.jsx)("div",{className:"donor-amount",children:(0,k.u)(e.amount,0)}),(0,E.jsx)("div",{className:"donor-time",children:e.time})]}))}),(0,E.jsx)("h6",{children:"Top Donors"}),(0,E.jsx)("div",{className:"donor-row-list",children:this.state.data.topDonations.map(e=>(0,E.jsxs)("div",{className:"donor-row-item",children:[(0,E.jsxs)("div",{className:"donor-profile",children:[e.profileImage?(0,E.jsx)("img",{className:"profile-image",src:"//"+e.profileImage.storageURL}):(0,E.jsx)("img",{className:"profile-image",src:"/images/profile-ph.png"}),(0,E.jsx)("span",{children:e.name})]}),(0,E.jsx)("div",{className:"donor-amount",children:(0,k.u)(e.amount,0)}),(0,E.jsx)("div",{className:"donor-time",children:e.time})]}))})]}):(0,E.jsx)(W,{}))()})}}class $ extends i.Component{render(){return(0,E.jsxs)("div",{children:[(0,E.jsx)("h5",{children:"Share to Social Media"}),(0,E.jsxs)("div",{className:"share-icons",onClick:()=>{(0,_.s)("SHARE_ICON_CLICK","CMP_DETAIL","")},children:[(0,E.jsxs)(b.A,{url:window.location.href,quote:"Wishwa Seva",children:[" ",(0,E.jsx)(v.A,{size:32,round:!0})]}),(0,E.jsxs)(I.A,{url:window.location.href,quote:"Wishwa Seva",children:[" ",(0,E.jsx)(S.A,{size:32,round:!0})]}),(0,E.jsxs)(A.A,{url:window.location.href,quote:"Wishwa Seva",children:[" ",(0,E.jsx)(C.A,{size:32,round:!0})]}),(0,E.jsxs)(y.A,{url:window.location.href,quote:"Wishwa Seva",children:[" ",(0,E.jsx)(N.A,{size:32,round:!0})]}),(0,E.jsxs)(D.A,{url:window.location.href,quote:"Wishwa Seva",children:[" ",(0,E.jsx)(w.A,{size:32,round:!0})]}),(0,E.jsxs)(f.A,{url:window.location.href,quote:"Wishwa Seva",children:[" ",(0,E.jsx)(j.A,{size:32,round:!0})]})]})]})}}class J extends i.Component{constructor(e){super(e),this.state={subscribed:!1}}render(){return this.state.subscribed?(0,E.jsx)("div",{className:"card-subscribe-1",children:(0,E.jsx)("div",{className:"container",children:(0,E.jsx)("div",{className:"row",children:(0,E.jsx)("div",{className:"col-md-12 title",children:"Thank y
1ou for subscribing"})})})}):(0,E.jsxs)("div",{className:"card-subscribe-1",children:[(0,E.jsx)("div",{className:"container",children:(0,E.jsxs)("div",{className:"row",children:[(0,E.jsx)("div",{className:"col-md-8 title",children:"Would you like to receive emails about these kinds of Fundraisers?"}),(0,E.jsxs)("div",{className:"col-md-4",style:{display:"flex",flexDirection:"column"},children:[(0,E.jsx)("div",{children:(0,E.jsx)(d.A,{children:(0,E.jsx)("div",{className:"mb-3"})})}),(0,E.jsx)("div",{className:"form",children:(0,E.jsxs)(m.A,{className:"mb-3",children:[(0,E.jsx)(h.A,{placeholder:"Enter your email","aria-label":"Enter your email","aria-describedby":"basic-addon2"}),(0,E.jsx)(m.A.Append,{children:(0,E.jsx)(l.A,{variant:"outline-secondary",onClick:()=>{this.setState({subscribed:!0})},children:"Subscribe"})})]})})]})]})}),(0,E.jsx)("div",{id:"circle1"}),(0,E.jsx)("div",{id:"circle2"}),(0,E.jsx)("div",{id:"circle3"}),(0,E.jsx)("div",{id:"circle4"})]})}}class Q extends i.Component{constructor(e){super(e),this.state={data:[],loaded:!1}}componentDidMount(){this.getData()}getData(){u.Ay.fetchData("/updates/get-active-updates/"+this.props.campaignId).then(e=>{e.status?(this.setState({data:e.data,loaded:!0},()=>{let e=window.location.hash.replace("#",""),a=window.document.getElementById(e);a&&window.scroll({top:a.offsetTop,left:0})}),this.props.setCount("updatesLength",e.data.length)):this.setState({loaded:!0})}).catch(e=>{})}render(){return(0,E.jsx)("div",{children:(()=>this.state.loaded?0===this.state.data.length?(0,E.jsx)("div",{className:"alert alert-primary",children:"No Updates"}):(0,E.jsx)("div",{className:"update-section",children:this.state.data.map((e,a,s)=>(0,E.jsx)(V,{item:e,idx:a,arr:s}))}):(0,E.jsx)(W,{}))()})}}class V extends i.Component{render(){return(0,E.jsxs)("div",{className:"item-container",id:"highlight_update_".concat(this.props.item.id),children:[(0,E.jsxs)("div",{className:"first-row",children:[(0,E.jsxs)("div",{className:"first-row-left",children:[(0,E.jsxs)("div",{className:"update-count",children:["Update #",(0,E.jsx)("span",{children:this.props.arr.length-this.props.idx})]}),(0,E.jsx)("span",{className:"separator",children:"|"}),(0,E.jsxs)("div",{className:"posted-on",children:["Posted ",(0,E.jsx)("span",{children:this.props.item.postedOn})]})]}),(0,E.jsxs)("div",{className:"views",children:[(0,E.jsx)("span",{style:{fontWeight:"bold"},children:this.props.item.views})," ","views"]})]}),(0,E.jsxs)("div",{class:"content-box",children:[(0,E.jsxs)("div",{className:"user-info",children:[(0,E.jsx)("img",{className:"profile-image",src:this.props.item.profileImage?this.props.item.profileImage.storageURL:"/images/profile-ph.png",alt:""}),(0,E.jsx)("div",{className:"user-name",children:this.props.item.userName})]}),(0,E.jsxs)("div",{class:"update-content",children:[(0,E.jsx)("div",{className:"update-message",children:(()=>x()(this.props.item.createdAt).isBefore(x()("2021-12-24"))?(0,E.jsx)("p",{dangerouslySetInnerHTML:{__html:this.props.item.message}}):(0,E.jsx)("div",{class:"campaign-story",style:{fontSize:"12px"},dangerouslySetInnerHTML:{__html:this.props.item.message.replace(/&#\d+;/gm,function(e){return String.fromCharCode(e.match(/\d+/gm)[0])})}}))()}),(0,E.jsx)("div",{className:"media-container",children:(()=>this.props.item.media.map(e=>(0,E.jsx)("div",{class:"media-item",children:(0,E.jsx)("img",{class:"image",src:"//"+e.storageURL,alt:""})})))()})]})]})]})}}}}]); 2//# sourceMappingURL=1700.338f6799.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.