PageSourceSearch

https://citizen.indianredcross.org/static/js/8514.9a8fd1e8.chunk.js

js indianredcross.org collected 2026-10-02 04:38:33 UTC 29,777 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmatx_react=self.webpackChunkmatx_react||[]).push([[8514],{9685:(e,t,a)=>{a.d(t,{Z:()=>j});var n=a(39709),i=a(66934),o=a(36151),l=a(68870),s=a(36314),d=a(61889),r=a(5712),c=a(55574),u=a(3773),m=(a(47354),a(22456)),v=(a(82323),a(72791)),p=a(10838),b=a(95048),h=a(57689),g=a(90728),x=a(21830),y=a.n(x),_=a(83478),Z=a(80184);(0,i.ZP)(o.Z)((e=>{let{theme:t}=e;return{margin:t.spacing(1)}}));const f=(0,i.ZP)(p.bM)((()=>({width:"100%"}))),j=e=>{let{use:t,rowdata:a,onSubmit:i}=e,{user:o}=((0,b.I0)(),(0,b.v9)((e=>e.auth)));const[x,{isLoading:j}]=(0,g.ru)(),[k,{data:S}]=(0,g.Q4)(),[C,w]=(0,v.useState)({eventName:"",location:"",remarks:"",event_type_id:""}),[P,I]=(0,v.useState)({eventName:"",location:"",remarks:"",event_type_id:""}),M=(e,t)=>{console.log(e,t),w({...C,[e]:t})};(0,v.useEffect)((()=>{D()}),[]);let D=async()=>{try{let{data:e,error:t}=await k();null===e||void 0===e||e.statusCode}catch(e){console.log("error==>",e)}};const T=()=>{(()=>{let e=!0;const t={...P};return C.eventName?(0,m.TH)(null===C||void 0===C?void 0:C.eventName)?(t.eventName="Event name must contain only characters",e=!1):C.eventName.length<3?(t.eventName="Event name must contain at least Three alphabetic characters",e=!1):t.eventName="":(t.eventName="Please enter event name",e=!1),C.event_type_id?t.event_type_id="":(t.event_type_id="Please select event type",e=!1),C.location?(0,_.P5)(C.location)?t.location="":(t.location="Invalid Lat, Long",e=!1):(t.location="Please enter location",e=!1),C.remarks&&C.remarks.length<3?(t.remarks="remarks  should be more than two characters.",e=!1):t.remarks="",I(t),e})()&&A()},A=async()=>{try{var e;let t={event_type_id:null===C||void 0===C||null===(e=C.event_type_id)||void 0===e?void 0:e.event_type_id,event_name:null===C||void 0===C?void 0:C.eventName,latitude_longitude:null===C||void 0===C?void 0:C.location,remark:null===C||void 0===C?void 0:C.remarks,district_code:null===o||void 0===o?void 0:o.district_code,created_by:null===o||void 0===o?void 0:o.adminuser_id};const{data:a,error:n}=await x(t);if(200==(null===a||void 0===a?void 0:a.statusCode))y().fire({icon:"success",title:null===a||void 0===a?void 0:a.responseMessage}),w({eventName:"",location:"",remarks:"",user_id:null===o||void 0===o?void 0:o.adminuser_id}),R("/volunteer/event");else{if(409!=(null===a||void 0===a?void 0:a.statusCode))throw Error("Check your internet connection");y().fire({icon:"error",title:null===a||void 0===a?void 0:a.responseMessage})}}catch(t){y().fire({icon:"error",title:t})}},R=(0,h.s0)();return(0,Z.jsx)(l.Z,{sx:{pt:2},children:(0,Z.jsx)("div",{style:{margin:"create"==t?30:0},children:(0,Z.jsxs)(s.Z,{spacing:2,children:[(0,Z.jsx)(l.Z,{className:"breadcrumb",children:(0,Z.jsx)(c.aG,{routeSegments:[{name:"Create New  Event",namePage:"Event"}]})}),(0,Z.jsx)("div",{style:{margin:20},children:(0,Z.jsx)(s.Z,{spacing:2,children:(0,Z.jsx)(c.sF,{children:(0,Z.jsxs)(p.WS,{children:[(0,Z.jsxs)(d.ZP,{container:!0,columns:{xs:6,sm:8,md:12},children:[(0,Z.jsx)(d.ZP,{item:!0,xs:12,md:6,style:{padding:5},children:(0,Z.jsx)(f,{label:"Event Name*",value:null===C||void 0===C?void 0:C.eventName,error:P.eventName,helperText:""!==P.eventName&&P.eventName,fullWidth:!0,InputProps:{inputProps:{maxLength:50,tabIndex:1}},validators:["required"],onChange:e=>M("eventName",e.target.value)})}),(0,Z.jsx)(d.ZP,{item:!0,xs:12,md:6,style:{padding:5},children:(0,Z.jsx)(r.Z,{size:"medium",id:"tags-outlined",options:(null===S||void 0===S?void 0:S.event_Type_Master)||[],getOptionLabel:e=>{var t;return null!==(t=e.event_type_name)&&void 0!==t?t:e},renderInput:e=>(0,Z.jsx)(f,{...e,inputProps:{...e.inputProps,tabIndex:2},variant:"outlined",label:"Select Event Type*",fullWidth:!0,validators:["required"],error:P.event_type_id,helperText:""!==P.event_type_id&&P.event_type_id}),value:null===C||void 0===C?void 0:C.event_type_id,onChange:(e,t)=>
1{w({...C,event_type_id:t})}})}),(0,Z.jsx)(d.ZP,{item:!0,xs:12,md:6,style:{padding:5},children:(0,Z.jsx)(f,{label:"Event location(Lat,Long)*",value:null===C||void 0===C?void 0:C.location,error:P.location,helperText:""!==P.location&&P.location,fullWidth:!0,InputProps:{inputProps:{maxLength:50,tabIndex:3}},validators:["required"],onChange:e=>M("location",e.target.value)})})]}),(0,Z.jsx)(d.ZP,{item:!0,xs:12,md:4,style:{padding:5},children:(0,Z.jsx)(f,{id:"standard-textarea",multiline:!0,rows:4,fullWidth:!0,size:"medium",type:"text",variant:"outlined",label:"Remarks",error:P.remarks,helperText:""!==P.remarks&&P.remarks,InputProps:{inputProps:{maxLength:250,tabIndex:4}},sx:{mb:2},value:null===C||void 0===C?void 0:C.remarks,onChange:e=>M("remarks",e.target.value)})}),(0,Z.jsx)("div",{style:{display:"flex",color:"#888",justifyContent:"flex-end",marginTop:-15},children:(null===C||void 0===C?void 0:C.remarks.length)+"/250"}),(0,Z.jsx)(d.ZP,{style:{paddingTop:16},children:(0,Z.jsx)(n.Z,{onClick:()=>T(),type:"button",color:"primary",variant:"contained",tabIndex:20,sx:{":hover":{backgroundColor:"#ea232a"},backgroundColor:"#F06C6A"},children:j?(0,Z.jsx)(u.Z,{}):"Submit"})})]})})})})]})})})}},3773:(e,t,a)=>{a.d(t,{Z:()=>l});var n=a(68870),i=a(13239),o=(a(72791),a(80184));const l=e=>{let{color:t}=e;return(0,o.jsx)(n.Z,{sx:{display:"flex"},children:(0,o.jsx)(i.Z,{size:15,color:"inherit"})})}},9538:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(72791),i=a(68870),o=(a(55574),a(43513)),l=a(57689),s=(a(24912),a(3773)),d=a(80184);const r=e=>{let{posts:t,columns:a,openUpdateModal:r,onClose:c,postId:u,pointerOnHover:m,onRowClicked:v,pending:p,onSubmit:b,handlePageChange:h,handlePerRowsChange:g,paginationTotalRows:x,paginationResetDefaultPage:y,conditionalRowStyles:_,validTill:Z,paginationPerPage:f,loader:j}=e;(0,l.s0)();const[k,S]=(0,n.useState)([]),C=(0,n.useCallback)((e=>{}),[]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(i.Z,{width:"100%",children:(0,d.jsx)(o.ZP,{columns:a,data:t,onSelectedRowsChange:C,onChangePage:h,onChangeRowsPerPage:g,highlightOnHover:!0,pointerOnHover:m,onRowClicked:v,progressPending:p,paginationTotalRows:x,conditionalRowStyles:_,pagination:!0,paginationServer:!0,paginationPerPage:f,paginationResetDefaultPage:y,responsive:!0,customStyles:{rows:{style:{cursor:"pointer"}},headCells:{style:{paddingTop:"8px",paddingTop:"8px"}},cells:{style:{paddingTop:"8px",paddingBottom:"8px"}}},dense:!0,progressComponent:(0,d.jsx)(s.Z,{})})})})}},24912:(e,t,a)=>{a.d(t,{Z:()=>m});a(72791);var n=a(68870),i=a(5574),o=a(65661),l=a(13400),s=a(94721),d=a(39157),r=a(29823),c=a(9685),u=a(80184);const m=e=>{let{openPopUp:t,onClose:a,postId:m,onSubmit:v,validTillExp:p}=e;return(0,u.jsx)(n.Z,{children:(0,u.jsxs)(i.Z,{open:t,fullWidth:!0,maxWidth:"lg",onClose:()=>a(),"aria-labelledby":"form-dialog-title",children:[(0,u.jsxs)(o.Z,{id:"form-dialog-title",children:["Update Event",(0,u.jsx)(l.Z,{"aria-label":"close",onClick:()=>a(),sx:{position:"absolute",right:8,top:8,color:"grey"},children:(0,u.jsx)(r.Z,{})})]}),(0,u.jsx)(s.Z,{}),(0,u.jsx)(d.Z,{children:(0,u.jsx)(c.Z,{use:"update",postId:m,validTillExp:p,onClick:()=>a(),onSubmit:()=>v()})})]})})}},47354:(e,t,a)=>{a.d(t,{D:()=>n});const n={salutationData:[{id:1,label:"Mr"},{id:2,label:"Mrs"},{id:3,label:"Miss"},{id:4,label:"Ms"},{id:5,label:"Dr"},{id:6,label:"M/S"},{id:7,label:"Other"}],gaurdianList:[{id:1,label:"Father's name"},{id:2,label:"Mother's name"},{id:3,label:"Spouse's name"},{id:4,label:"Husband"},{id:5,label:"Wife"}],qualificationList:[{id:1,label:"10th Pass"},{id:2,label:"12th Pass"},{id:3,label:"Graduation"},{id:4,label:"Post Graduation"},{id:5,label:"Other"}],bloodGroupList:[{id:1,label:"A+"},{id:2,label:"A-"},{id:3,label:"B+"},{id:4,label:"B-"},{id:5,label:"AB+"},{id:6,label:"AB-"},{id:7,label:"O+"},{id:8,label:"O-"}],countrydata:[{id:1,label:"India"}],govIdList:[{id:1,label:"Pan Card"},{id:2,label:"Aadhaar Card"},{id:3,label:"Driving Licence"},{id:4,label:"Bank Passbook"},{id:5,label:"Voter Id"}],servicesList:[{id:1,label:"Relief Distribution"},{id:2,label:"During disasters"},{id:3,label:"First Aid"},{id:4,label:"Blood Donation "},{id:5,label:"Organ donation"},{id:5,label:"Hospital services"},{id:6,label:"Old age services"}],stateData:[{id:1,name:"Uttar Pradesh"},{id:2,name:"Delhi"},{id:3,name:"Punjab"}
1],donationData:[{id:1,name:"Online Donation - Main Fund"},{id:2,name:"Online Donation - Disaster Relief"},{id:3,name:"Bank Transfer"},{id:4,name:"Cheque/Demand Draft"}],districtData:[{id:1,name:"Ambedkar Nagar"},{id:2,name:"Azamgarh"},{id:3,name:"Lucknow"}],eventData:[{id:1,name:"Event 1"},{id:2,name:"Event 2"},{id:3,name:"Event 3"}],tokenData:[{id:1,name:"Token 1"},{id:2,name:"Token 2"},{id:3,name:"Token 3"}],beneficiaryData:[{id:1,member_name:"Shivam Sharma"},{id:2,member_name:"Abhishek Verma"},{id:3,member_name:"Rahul Arora"}],VolunteerData:[{id:1,name:"Shiva Nadar"},{id:2,name:"Arjun Solanki"},{id:3,name:"Vaibhav Singh"}],membershipData:[{id:1,label:"Patron"},{id:2,label:"Vice-Patron"},{id:3,label:"Life Member"},{id:4,label:"Life Associate"},{id:5,label:"Annual Member"},{id:6,label:"Annual Associate"},{id:7,label:"Institutional Member"},{id:8,label:"St John Member"}],associateList:[{id:1,label:"JRC"},{id:2,label:"YRC"},{id:3,label:"Member"},{id:4,label:"Master Trainer"},{id:5,label:"SERV membership"},{id:6,label:"First Aid Trainer"},{id:7,label:"Any other"}],VolunteerType:[{id:1,label:"General Volunteer"},{id:2,label:"JRC(Junior Red Cross)"},{id:3,label:"YRC(Youth Red Cross)"},{id:4,label:"SERV Master Trainer"},{id:5,label:"SERV Instructor"},{id:6,label:"SERV Volunteer"}],roleData:[{id:1,label:"NHQ admin"},{id:2,label:"State admin"},{id:3,label:"District admin"}],roleAccessData:[{id:1,label:"Create"},{id:2,label:"Update"},{id:3,label:"Read"},{id:4,label:"Delete"}],moduleAcess:[{module_access_id:1,module_access_name:"Dashboard",create:!1,read:!1,update:!1,delete:!1,is_module_access:!1,accessIds:[1,2,3,4,5]},{module_access_id:2,module_access_name:"Admin user management",create:!1,read:!1,update:!1,delete:!1,is_module_access:!1,accessIds:[1,2,3]},{module_access_id:3,module_access_name:"Volunteer Management",create:!1,read:!0,update:!1,delete:!1,is_module_access:!1,accessIds:[3,4]},{module_access_id:4,module_access_name:"Membership Management",create:!1,read:!1,update:!1,delete:!1,is_module_access:!1,accessIds:[1,2,3,4]},{module_access_id:5,module_access_name:"Beneficiary Management",create:!1,read:!1,update:!1,delete:!1,is_module_access:!1,accessIds:[4]},{module_access_id:6,module_access_name:"Event management",create:!1,read:!1,update:!1,delete:!1,is_module_access:!1,accessIds:[3,4]},{module_access_id:7,module_access_name:"Token management",create:!1,read:!1,update:!1,delete:!1,is_module_access:!1,accessIds:[3,4]},{module_access_id:8,module_access_name:"Assignment management",create:!1,read:!1,update:!1,delete:!1,is_module_access:!1,accessIds:[3,4]}],adminDocData:[{id:1,label:"PAN Card"},{id:2,label:"Bank Cheque"},{id:3,label:"Bank Passbook"}],itemInfo:[{id:1,name:"Food Packet",districtedQty:5,asignQty:10},{id:2,name:"Blanket",districtedQty:10,asignQty:10},{id:2,name:"Blanket",districtedQty:10,asignQty:10},{id:2,name:"Blanket",districtedQty:10,asignQty:10}],religion:[{id:1,label:"Hinduism"},{id:2,label:"Christianity"},{id:3,label:"Islam"},{id:4,label:"Sikhism"},{id:5,label:"Jainism"},{id:6,label:"Buddhism"},{id:7,label:"Others"}],community:[{id:1,label:"Sindhis"},{id:2,label:"Punjabis"},{id:3,label:"Gujaratis"},{id:4,label:"Marwardis"},{id:5,label:"Bengalis"},{id:6,label:"Saraswats"},{id:7,label:"Gaurs"},{id:8,label:"Others"}],reportMethod:[{id:1,label:"Email"},{id:2,label:"Whatsapp"},{id:3,label:"Courier"},{id:4,label:"Self collection"}],eventTypeData:[{id:1,label:"Material Distribution"},{id:2,label:"Awareness"},{id:3,label:"Camp Organisation"}],inventoryItem:[{id:1,name:"Blanket"},{id:2,name:"Food"},{id:3,name:"Tarpaulin"},{id:4,name:"Kitchen set"}],relationshipData:[{id:1,label:"Parent"},{id:2,label:"Spouse"},{id:3,label:"Child"},{id:4,label:"Aunt"},{id:5,label:"Uncle"},{id:6,label:"Cousin"}]}},96051:(e,t,a)=>{a.d(t,{K:()=>n});const n=(e,t)=>{let a=e.hasOwnProperty("message")?e.message:e;t?console.log(t," ==> ",a):console.log("Error ==> ",a)}},22456:(e,t,a)=>{a.d(t,{F:()=>d,TH:()=>i,_k:()=>o,a_:()=>l,jt:()=>s,vV:()=>n});const n=e=>/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e),i=e=>/[^a-zA-Z, ]/.test(e),o=e=>/[1-9]\d*|0\d+/.test(e),l=e=>/^\d+$/.test(e),s=e=>/^[A-Za-z]{4}[0][A-Za-z0-9]{6,7}$/.test(e),d=e=>/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}[Z]{1}[0-9A-Z]{1}$/.test(e)},38514:(e,t,a)=>{a.r(t),a.d(t,{default:()=>M});var n=a(52898),i=a(66934),o=a(93044),l=a(95193),s=a(81918),d=a(36151),r=a(13400),c=a(80911),u=a(23786),m=a(68870),v=a(36314),p=a(20890),b=a(61889),h=a(5712),g=a(93006),x=a(55574),y=a(3773),_=a(9538),Z=a(96051),f=(a(82323),a(72426)),j=a.n(f),k=a(72791),S=a(95048),C=a(11087),w=a(57689),P=a(90728),I=(a(21830),a(80184));(0,i.ZP)(o.Z)((()=>({width:"32px !important",height:"32px !important"})));const M=()=>{(0,S.I0)();const[e]=(0,C.lr)();let t=e.get("id"),{user:a}=(0,S.v9)((e=>e.auth));const{state:o}=(0,w.TH)(),f=(window.localStorage.getItem("accessToken"),JSON.parse(sessionStorage.getItem("userJSON")),(0,l.Z)("(min-width:1030px)")),[M,D]=(0,k.useState)([]),[T,A]=(0,k.useState)(""),[R,E]=(0,k.useState)(),[L,N]=(0,k.useState)(!1),[O,B]=(0,k.useState)(!1),[W,F]=(0,k.useState)(!1),[V,z]=(0,k.useState)(!1),[Y,G]=(0,k.useState)(!1),[H,q]=(0,k.useState)(),[Q,U]=(0,k.useState)(!1),[J,$]=(0,k.useState)(""),[K,X]=(0,k.useState)(!0),[ee,te]=(0,k.useState)("100"),[ae,ne]=(0,k.useState)(!1),[ie,oe]=(0,k.useState)(10),[le,se]=(0,k.useState)(!0),[de,re]=(0,k.useState)(!1),[ce,ue]=(0,k.useState)(""),[me,ve]=((0,k.useRef)([{pageNo:1,list:[]}]),(0,k.useRef)(1),(0,k.useState)([])),[pe,be]=(0,k.useState)(),[he,ge]=(0,k.useState)([]),[xe,ye]=(0,k.useState)([]),[_e,Ze]=(0,k.useState)([]),[fe,je]=(0,k.useState)(),[ke,Se]=(0,k.useState)([{id:1,label:"Open"},{id:2,label:"Close"}]),[Ce,we]=(0,k.useState)([]),[Pe,Ie]=(0,k.useState)(""),[Me,De]=(0,k.useState)(""),Te=(0,w.s0)();let[Ae,{data:Re,isLoading:Ee,error:Le}]=(0,P.oQ)(),[Ne,{isLoading:Oe,error:Be,isError:We}]=(0,P.p8)();const[Fe,Ve]=(0,k.useState)(""),[ze,Ye]=(0,k.useState)(""),[Ge,He]=(0,k.useState)(""),[qe,Qe]=(0,k.useState)(""),[Ue,Je]=(0,k.useState)(0),[$e,Ke]=(0,k.useState)(0),[Xe,et]=(0,k.useState)(""),[tt,at]=(0,k.useState)(1);let[nt,{isLoading:it}]=(0,P.Bz)();const[ot,lt]=(0,k.useState)(""),[st,dt]=(0,k.useState)(""),[rt,ct]=(0,k.useState)(10),[ut,mt]=(0,k.useState)(""),[vt,pt]=(0,k.useState)(!1),[bt,ht]=(0,k.useState)(null),gt=Boolean(bt),xt=async(e,t,n)=>{try{lt(t),dt(n);let i={event_id:null===e||void 0===e?void 0:e.event_id,flag_id:n,volunteer_id:null===a||void 0===a?void 0:a.adminuser_id,token_id:null===e||void 0===e?void 0:e.token_id};const{data:o,error:l}=await nt(i);if(o){const e=window.URL.createObjectURL(new Blob([o])),t=document.createElement("a");t.href=e,t.setAttribute("download","info.xlsx"),document.body.appendChild(t),t.click(),t.parentNode.removeChild(t)}}catch(Le){console.log("error==>",Le)}};(0,k.useEffect)((()=>{(async()=>{try{let e={event_id:t};const{data:a,error:n}=await Ne(e);(200===(null===a||void 0===a?void 0:a.statusCode)||404===(null===a||void 0===a?void 0:a.statusCode))&&Ie(null===a||void 0===a?void 0:a.event_Data_Response_Model)}catch(Le){console.log("error==>",Le)}})()}),[]),(0,k.useEffect)((()=>{(async()=>{try{let e={eventid:t?parseInt(t):0,tokenstatus:Ge?parseInt(null===Ge||void 0===Ge?void 0:Ge.id):0,volunteerid:5==(null===a||void 0===a?void 0:a.role_id)?null===a||void 0===a?void 0:a.adminuser_id:0,dhqid:5!=(null===a||void 0===a?void 0:a.role_id)?null===a||void 0===a?void 0:a.adminuser_id:0,pagenumber:tt,rowspage:rt,searchtext:Xe||"",from_date:"",to_date:""};const{data:n,error:i}=await Ae(e);(200===(null===n||void 0===n?void 0:n.statusCode)||404===(null===n||void 0===n?void 0:n.statusCode))&&(we(null===n||void 0===n?void 0:n.tokens_response_models),De(null===n||void 0===n?void 0:n.count))}catch(Le){console.log("error==>",Le)}})()}),[null===Pe||void 0===Pe?void 0:Pe.event_type_id,tt,rt,qe,Fe,ze,Xe,Ge]);const yt=[{id:"token_id",name:"Id",width:"10%",selector:(e,t)=>
1t+1,sortable:!0},{id:"token_name",name:"Event Name",selector:e=>e.token_name,sortable:!0,wrap:!0,width:"10%"},{id:"distribution_type_name",name:"Distribution Type",selector:e=>e.distribution_type_name,sortable:!0,wrap:!0,width:"10%"},{id:"token_status_value",name:"Status",selector:e=>{const t=(e=>{if(!e)return{background:"#f5f5f5",color:"#999"};const t=e.toLowerCase();return t.includes("open")||"1"===t?{background:"#e8f5e9",color:"#28a745"}:t.includes("close")||"2"===t?{background:"#ffebee",color:"#dc3545"}:{background:"#f5f5f5",color:"#999"}})(e.token_status_value);return(0,I.jsx)(s.Z,{label:e.token_status_value,sx:{backgroundColor:t.background,color:t.color,fontWeight:600,fontSize:"12px",borderRadius:"4px"}})},sortable:!0,wrap:!0,width:"10%"},{id:"Token",name:"Bene count",selector:(e,t)=>(0,I.jsxs)(d.Z,{disabled:0==(null===e||void 0===e?void 0:e.beneficiary_count),onClick:a=>xt(e,t,3),variant:"contained",size:"small",sx:{background:"#e0746e",color:"#fff",":hover":{backgroundColor:"#ea232a"},opacity:0==(null===e||void 0===e?void 0:e.beneficiary_count)?.8:1,textTransform:"none"},children:[null!==e&&void 0!==e&&e.beneficiary_count?null===e||void 0===e?void 0:e.beneficiary_count:0," ",it&&t==ot&&3==st?(0,I.jsx)(y.Z,{}):"Export"]}),sortable:!0,wrap:!0,width:f&&"10%"},{id:"Token",name:"Dist count",selector:(e,t)=>(0,I.jsxs)(d.Z,{disabled:0==(null===e||void 0===e?void 0:e.distributed_counts),onClick:a=>xt(e,t,1),variant:"contained",size:"small",sx:{background:"#e0746e",color:"#fff",":hover":{backgroundColor:"#ea232a"},opacity:0==(null===e||void 0===e?void 0:e.distributed_counts)?.8:1,textTransform:"none"},children:[null!==e&&void 0!==e&&e.distributed_counts?null===e||void 0===e?void 0:e.distributed_counts:0," ",it&&t==ot&&1==st?(0,I.jsx)(y.Z,{}):"Export"]}),sortable:!0,wrap:!0,width:f&&"10%"},{id:"Token",name:"No Dist count",selector:(e,t)=>(0,I.jsxs)(d.Z,{disabled:0==(null===e||void 0===e?void 0:e.not_distributed_counts),onClick:a=>xt(e,t,2),variant:"contained",size:"small",sx:{background:"#e0746e",color:"#fff",":hover":{backgroundColor:"#ea232a"},opacity:0==(null===e||void 0===e?void 0:e.not_distributed_counts)?.8:1,textTransform:"none"},children:[null!==e&&void 0!==e&&e.not_distributed_counts?null===e||void 0===e?void 0:e.not_distributed_counts:0," ",it&&t==ot&&2==st?(0,I.jsx)(y.Z,{}):"Export"]}),sortable:!0,wrap:!0,width:f&&"11%"},{id:"validtill",name:"Start Date",selector:e=>j()(null===e||void 0===e?void 0:e.start_date).format("DD MMM YYYY hh:mm A"),sortable:!0,width:"15%"},{id:"validtill",name:"End Date",selector:e=>j()(null===e||void 0===e?void 0:e.end_date).format("DD MMM YYYY hh:mm A"),sortable:!0,width:"15%"},{id:"action",name:"Action",selector:e=>(0,I.jsxs)("div",{children:[(0,I.jsx)(r.Z,{"aria-label":"more",id:"long-button","aria-controls":gt?"long-menu":void 0,"aria-expanded":gt?"true":void 0,"aria-haspopup":"true",onClick:t=>ft(t,e),children:(0,I.jsx)(n.Z,{})}),(0,I.jsx)(c.Z,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:bt,open:gt,onClose:Zt,PaperProps:{style:{maxHeight:216,width:"20ch"}},children:(0,I.jsx)(u.Z,{onClick:_t,children:"View"})})]}),button:"true",width:"10%"}];(0,k.useEffect)((()=>{""!=ut&&_t()}),[vt]);const _t=()=>{try{ht(null);let e=ut;N(!1),E(e);const t=new URLSearchParams;t.append("eventId",e.event_id),t.append("tokenId",e.token_id),Te("/volunteer/beneficairy/?".concat(t.toString()))}catch(Le){(0,Z.K)(Le,"ListPost_4")}},Zt=(e,t)=>{ht(null)},ft=(e,t)=>{ht(e.currentTarget),mt(t)},jt=(0,i.ZP)(d.Z)((e=>{let{theme:t}=e;return{margin:t.spacing(1)}})),kt=async function(e){et(T),ne(!ae)};return(0,I.jsxs)(m.Z,{width:"100%",overflow:"auto",sx:{p:3},children:[(0,I.jsx)(m.Z,{className:"breadcrumb",children:(0,I.jsx)(x.aG,{routeSegments:[{name:"Events List",namePage:"Events",path:"/volunteer/event"},{name:"Events Details",namePage:"Events"}]})}),(0,I.jsx)("div",{style:{marginBottom:10}}),(0,I.jsx)("div",{sx:{mt:2},children:(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(v.Z,{spacing:2,children:[(0,I.jsx)(x.sF,{children:Oe?(0,I.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,I.jsx)(y.Z,{})}):We?(0,I.jsx)(p.Z,{style:{marginBottom:10,marginTop:10,textAlign:"center",fontSize:14},children:null===Be||void 0===Be?void 0:Be.error}):Pe?(0,I.jsx)("div",{style:{paddingLeft:20},children:(0,I.jsxs)(b.ZP,{direction:"row",container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12},children:[(0,I.jsxs)(b.ZP,{item:!0,xs:2,style:{overflowWrap:"anywhere"},children:[(0,I.jsx)(p.Z,{style:{fontWeight:"bold"},children:null!==Pe&&void 0!==Pe&&Pe.event_name?null===Pe||void 0===Pe?void 0:Pe.event_name:"--"}),(0,I.jsx)(p.Z,{children:"Event Name"})]}),(0,I.jsxs)(b.ZP,{item:!0,xs:2,style:{overflowWrap:"anywhere"},children:[(0,I.jsx)(p.Z,{style:{fontWeight:"bold"},children:null!==Pe&&void 0!==Pe&&Pe.event_type_name?null===Pe||void 0===Pe?void 0:Pe.event_type_name:"--"}),(0,I.jsx)(p.Z,{children:"Event Type"})]}),(0,I.jsxs)(b.ZP,{item:!0,xs:2,style:{overflowWrap:"anywhere"},children:[(0,I.jsx)(p.Z,{style:{fontWeight:"bold"},children:null!==Pe&&void 0!==Pe&&Pe.district_name?null===Pe||void 0===Pe?void 0:Pe.district_name:"--"}),(0,I.jsx)(p.Z,{children:"District"})]}),(0,I.jsxs)(b.ZP,{item:!0,xs:2,style:{overflowWrap:"anywhere"},children:[(0,I.jsx)(p.Z,{style:{fontWeight:"bold"},children:null!==Pe&&void 0!==Pe&&Pe.remark?null===Pe||void 0===Pe?void 0:Pe.remark:"--"}),(0,I.jsx)(p.Z,{children:"Remark"})]}),(0,I.jsxs)(b.ZP,{item:!0,xs:2,style:{overflowWrap:"anywhere"},children:[(0,I.jsx)(p.Z,{style:{fontWeight:"bold"},children:null!==Pe&&void 0!==Pe&&Pe.lat_long?null===Pe||void 0===Pe?void 0:Pe.lat_long:"--"}),(0,I.jsx)(p.Z,{children:"Lat & long"})]}),(0,I.jsxs)(b.ZP,{item:!0,xs:2,style:{overflowWrap:"anywhere"},children:[(0,I.jsx)(p.Z,{style:{fontWeight:"bold"},children:null!==Pe&&void 0!==Pe&&Pe.event_status_value?null===Pe||void 0===Pe?void 0:Pe.event_status_value:"--"}),(0,I.jsx)(p.Z,{children:"Status"})]}),(0,I.jsxs)(b.ZP,{item:!0,xs:2,style:{overflowWrap:"anywhere"},children:[(0,I.jsx)(p.Z,{style:{fontWeight:"bold"},children:null!==Pe&&void 0!==Pe&&j().utc(null===Pe||void 0===Pe?void 0:Pe.whenentered).local().format("DD MMM YYYY hh:mm A")}),(0,I.jsx)(p.Z,{children:"Created at"})]})]})}):(0,I.jsx)(p.Z,{style:{marginBottom:10,marginTop:10,textAlign:"center",fontSize:14},children:"No data available."})}),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(x.sF,{children:[(0,I.jsx)(b.ZP,{container:!0,spacing:{xs:1,md:2,sm:2,lg:2},columns:{xs:4,sm:8,md:12,lg:12},children:(0,I.jsx)(b.ZP,{item:!0,xs:4,children:(0,I.jsx)(h.Z,{id:"tags-outlined-cities",options:ke,getOptionLabel:e=>e.label,renderInput:e=>(0,I.jsx)(g.Z,{...e,inputProps:{...e.inputProps,tabIndex:3},variant:"outlined",label:"Select Status"}),value:fe,onChange:(e,t)=>
1{je(t)}},$e)})}),(0,I.jsx)(b.ZP,{item:!0,xs:12,md:1.5,sm:1.5,style:{marginTop:10},children:(0,I.jsxs)(v.Z,{spacing:2,direction:"row-reverse",children:[(0,I.jsx)(d.Z,{variant:"outlined",tabIndex:15,onClick:async()=>{He(""),ne(!ae),je(),Je(Ue+1),Ke($e+1)},sx:{":hover":{borderColor:"#ea232a"},borderColor:"#e0746e",color:"#e0746e"},children:"Reset"}),(0,I.jsx)(d.Z,{variant:"contained",tabIndex:14,disabled:!fe,onClick:async()=>{He(fe),ne(!ae),at(1)},sx:{":hover":{backgroundColor:"#ea232a"},backgroundColor:"#e0746e"},children:"Apply"})]})})]}),(0,I.jsxs)(x.sF,{children:[(0,I.jsxs)(b.ZP,{container:!0,children:[(0,I.jsx)(b.ZP,{xs:12,sm:8,md:8,children:(0,I.jsx)(p.Z,{style:{fontSize:18,fontWeight:"bold"},children:"All Tokens"})}),(0,I.jsxs)(b.ZP,{container:!0,xs:12,sm:4,md:4,children:[(0,I.jsx)(b.ZP,{xs:12,sm:6,md:6,children:(0,I.jsx)(g.Z,{label:"Search by event name",value:T,onChange:e=>(e=>{try{A(e.target.value)}catch(Le){(0,Z.K)(Le,"CreateUpdateProject_18")}})(e),style:{marginTop:8,width:"100%"},size:"small",onKeyDown:e=>{"Enter"===e.key&&kt()}})}),(0,I.jsx)(b.ZP,{xs:12,sm:3,md:3,children:(0,I.jsx)(jt,{variant:"contained",disabled:T.length<3,sx:{":hover":{backgroundColor:"#ea232a"},backgroundColor:"#e0746e"},onClick:()=>kt(),children:"Search"})}),(0,I.jsx)(b.ZP,{xs:12,sm:3,md:3,children:(0,I.jsx)(jt,{variant:"outlined",sx:{":hover":{borderColor:"#ea232a"},borderColor:"#e0746e",color:"#e0746e"},onClick:()=>(et(""),A(""),ne(!ae),void at(1)),children:"Reset"})})]})]}),(0,I.jsx)(_.Z,{columns:yt,posts:Ce||[],onSubmit:async()=>{},pending:Ee,handlePageChange:async e=>{at(e)},handlePerRowsChange:async(e,t)=>{at(t),ct(e)},onClose:async()=>{try{N(!1),z(!1),B(!1)}catch(Le){}},openUpdateModal:L,paginationTotalRows:Me,paginationResetDefaultPage:ae,paginationPerPage:rt})]})]})]})})})]})}},83478:(e,t,a)=>{a.d(t,{P5:()=>d,WS:()=>o,_o:()=>r,aS:()=>l,c7:()=>u,m4:()=>c,wM:()=>s});var n=a(72426),i=a.n(n);a(21830);const o=(e,t)=>e===t.substring(2,12),l=(e,t)=>e.length>t?e.substring(0,t)+"...":e,s=e=>/[A-Z]{5}[0-9]{4}[A-Z]{1}/.test(e),d=e=>/^[-+]?[0-9]{1,2}(?:\.\d{1,6})?,[-+]?[0-9]{1,3}(?:\.\d{1,6})?$/.test(e),r=e=>i().utc(e).local().format("DD MMM YYYY hh:mm A"),c=e=>/^(0[0-9]|1[0-9]|2[0-3]|[0-9])$/.test(e),u=e=>/^([0-5]?[0-9])$/.test(e)},52898:(e,t,a)=>{var n=a(64836);t.Z=void 0;var i=n(a(45649)),o=a(80184),l=(0,i.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=l},96014:(e,t,a)=>{a.d(t,{Z:()=>l,f:()=>o});var n=a(75878),i=a(21217);function o(e){return(0,i.Z)("MuiListItemIcon",e)}const l=(0,n.Z)("MuiListItemIcon",["root","alignItemsFlexStart"])},29849:(e,t,a)=>{a.d(t,{L:()=>o,Z:()=>l});var n=a(75878),i=a(21217);function o(e){return(0,i.Z)("MuiListItemText",e)}const l=(0,n.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},23786:(e,t,a)=>{a.d(t,{Z:()=>S});var n=a(63366),i=a(87462),o=a(72791),l=a(28182),s=a(94419),d=a(12065),r=a(66934),c=a(31402),u=a(66199),m=a(95080),v=a(40162),p=a(42071),b=a(90133),h=a(96014),g=a(29849),x=a(75878),y=a(21217);function _(e){return(0,y.Z)("MuiMenuItem",e)}const Z=(0,x.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var f=a(80184);const j=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],k=(0,r.ZP)(m.Z,{shouldForwardProp:e=>(0,r.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.dense&&t.dense,a.divider&&t.divider,!a.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:a}=e;return(0,i.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!a.disableGutters&&{paddingLeft:16,paddingRight:16},a.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Z.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,d.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Z.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,d.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Z.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,d.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,d.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(Z.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Z.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(b.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(b.Z.inset)]:{marginLeft:52},["& .".concat(g.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(g.Z.inset)]:{paddingLeft:36},["& .".concat(h.Z.root)]:{minWidth:36}},!a.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},a.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(h.Z.root," svg")]:{fontSize:"1.25rem"}}))}
vendor: 1,001 bytes, lines 1-2
1)),S=o.forwardRef((function(e,t){const a=(0,c.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:d=!1,component:r="li",dense:m=!1,divider:b=!1,disableGutters:h=!1,focusVisibleClassName:g,role:x="menuitem",tabIndex:y,className:Z}=a,S=(0,n.Z)(a,j),C=o.useContext(u.Z),w=o.useMemo((()=>({dense:m||C.dense||!1,disableGutters:h})),[C.dense,m,h]),P=o.useRef(null);(0,v.Z)((()=>{d&&P.current&&P.current.focus()}),[d]);const I=(0,i.Z)({},a,{dense:w.dense,divider:b,disableGutters:h}),M=(e=>{const{disabled:t,dense:a,divider:n,disableGutters:o,selected:l,classes:d}=e,r={root:["root",a&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",l&&"selected"]},c=(0,s.Z)(r,_,d);return(0,i.Z)({},d,c)})(a),D=(0,p.Z)(P,t);let T;return a.disabled||(T=void 0!==y?y:-1),(0,f.jsx)(u.Z.Provider,{value:w,children:(0,f.jsx)(k,(0,i.Z)({ref:D,role:x,tabIndex:T,component:r,focusVisibleClassName:(0,l.Z)(M.focusVisible,g),className:(0,l.Z)(M.root,Z)},S,{ownerState:I,classes:M}))})}))}}]);
2//# sourceMappingURL=8514.9a8fd1e8.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.