PageSourceSearch

https://donate-portal.vercel.app/_next/static/chunks/pages/user/manualForm-27d5f813fe9fb601.js

js donate-portal.vercel.app collected 2026-10-03 07:16:09 UTC 11,264 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1964],{2594:(e,a,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/manualForm",function(){return r(5054)}])},8874:(e,a,r)=>{"use strict";r.d(a,{$W:()=>i,Bq:()=>p,DT:()=>h,F4:()=>u,QV:()=>y,Sk:()=>j,WJ:()=>f,bg:()=>m,ej:()=>A,ki:()=>x,n4:()=>g,nW:()=>d,rX:()=>c,w4:()=>b,wx:()=>v});var n=r(6540),t=r(4335),l=r(8465),o=r.n(l),s=r(8122);let i={adminMail:"[email protected]",server:"https://donation.divyavrat.com/"},d=e=>{(0,n.useEffect)(()=>{let a=document.createElement("script");return a.src=e,a.async=!0,document.body.appendChild(a),()=>{document.body.removeChild(a)}},[e])},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[a,r]=(0,n.useState)("");return(0,n.useEffect)(()=>{r(localStorage[e]||"")},[]),a},u=e=>{e&&(e.preventDefault(),e.stopPropagation())},m=()=>{"admin"!=localStorage.type&&(window.location.href="/")},p=e=>e.replace(/(^[,\s]+)|([,\s]+$)/g,""),h=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase()),g=e=>{let a=e.slice(0,12).replace(/\D/g,""),r=a.match(/^(\d{1,3})(\d{0,3})(\d{0,4})$/);return r&&(a="".concat(r[1]).concat(r[2]?" ":"").concat(r[2]).concat(r[3]?"-":"").concat(r[3])),a},f=e=>{var a=document.createElement("textarea");a.value=e,a.style.top="0",a.style.left="0",a.style.position="fixed",document.body.appendChild(a),a.focus(),a.select();try{document.execCommand("copy")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(a)},x=e=>{t.A.post("/api/mail",e)},v=e=>e;function j(e){return new Promise((a,r)=>{let n=new FileReader;n.onloadend=()=>a(n.result),n.readAsDataURL(e)})}async function b(e){try{return await (0,s.A)(e,{maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0})}catch(e){console.log(e)}}let A=e=>e&&e.toString?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e,y=(e,a)=>{o().fire({title:"Are you sure?",text:"You won't be able to revert this!",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, delete it!"}).then(a=>{a.isConfirmed&&(e(),o().fire("Deleted!","Successfully deleted.","success"))})}},2491:(e,a,r)=>{"use strict";r.d(a,{A:()=>b});var n=r(8168),t=r(45),l=r(6540),o=r(53),s=r(5312),i=r(812),d=r(9326),c=r(5626),u=r(3928),m=r(7483),p=r(7133),h=r(138),g=l.forwardRef(function(e,a){var r=e.children,s=e.classes,i=e.className,d=e.component,c=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,t.A)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),u=(0,p.A)(),h=(0,m.A)({props:e,muiFormControl:u,states:["variant","margin","disabled","error","filled","focused","required"]});return l.createElement(void 0===d?"p":d,(0,n.A)({className:(0,o.A)(s.root,("filled"===h.variant||"outlined"===h.variant)&&s.contained,i,h.disabled&&s.disabled,h.error&&s.error,h.filled&&s.filled,h.focused&&s.focused,h.required&&s.required,"dense"===h.margin&&s.marginDense),ref:a},c)," "===r?l.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):r)});let f=(0,h.A)(function(e){return{root:(0,n.A)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},{name:"MuiFormHelperText"})(g);var x=r(4511),v={standard:s.A,filled:i.A,outlined:d.A},j=l.forwardRef(function(e,a){var r=e.autoComplete,s=e.autoFocus,i=e.children,d=e.classes,m=e.className,p=e.color,h=e.defaultValue,g=e.disabled,j=e.error,b=e.FormHelperTextProps,A=e.fullWidth,y=void 0!==A&&A,C=e.helperText,w=e.hiddenLabel,N=e.id,F=e.InputLabelProps,E=e.inputProps,S=e.InputProps,k=e.inputRef,R=e.label,P=e.multiline,T=e.name,q=e.onBlur,L=e.onChange,_=e.onFocus,M=e.placeholder,I=e.required,B=void 0!==I&&I,D=e.rows,W=e.rowsMax,O=e.maxRows,X=e.minRows,z=e.select,H=void 0!==z&&z,$=e.SelectProps,V=e.type,U=e.value,J=e.variant,Y=void 0===J?"standard":J,Z=(0,t.A)(e,["autoComplete","autoF
1ocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),G={};if("outlined"===Y&&(F&&void 0!==F.shrink&&(G.notched=F.shrink),R)){var Q,K=null!==(Q=null==F?void 0:F.required)&&void 0!==Q?Q:B;G.label=l.createElement(l.Fragment,null,R,K&&"\xa0*")}H&&($&&$.native||(G.id=void 0),G["aria-describedby"]=void 0);var ee=C&&N?"".concat(N,"-helper-text"):void 0,ea=R&&N?"".concat(N,"-label"):void 0,er=v[Y],en=l.createElement(er,(0,n.A)({"aria-describedby":ee,autoComplete:r,autoFocus:void 0!==s&&s,defaultValue:h,fullWidth:y,multiline:void 0!==P&&P,name:T,rows:D,rowsMax:W,maxRows:O,minRows:X,type:V,value:U,id:N,inputRef:k,onBlur:q,onChange:L,onFocus:_,placeholder:M,inputProps:E},G,S));return l.createElement(u.A,(0,n.A)({className:(0,o.A)(d.root,m),disabled:void 0!==g&&g,error:void 0!==j&&j,fullWidth:y,hiddenLabel:w,ref:a,required:B,color:void 0===p?"primary":p,variant:Y},Z),R&&l.createElement(c.A,(0,n.A)({htmlFor:N,id:ea},F),R),H?l.createElement(x.A,(0,n.A)({"aria-describedby":ee,id:N,labelId:ea,value:U,input:en},$),i):en,C&&l.createElement(f,(0,n.A)({id:ee},b),C))});let b=(0,h.A)({root:{}},{name:"MuiTextField"})(j)},3261:(e,a,r)=>{"use strict";r.d(a,{A:()=>f});var n=r(4848),t=r(6540),l=r(5556),o=r.n(l),s=r(6715),i=r(6752),d=r(4968),c=r(9998),u=r(3422),m=r(4335),p=r(8874);function h(){let e=(0,s.useRouter)(),[a,r]=(0,t.useState)(0),[l,o]=(0,t.useState)(null),[h,g]=(0,t.useState)(null),f=(0,p.rX)("userImage"),x=(0,p.rX)("type")||"user",v=(0,p.rX)("lastPage");return(0,t.useEffect)(()=>{localStorage.org&&o(localStorage.org?JSON.parse(localStorage.org).image:null),"admin"==localStorage.type&&((0,p.bg)(),(async()=>{m.A.post("/api/mail",{type:"list"}).then(e=>{if(e&&e.data){var a;r(null===(a=e.data)||void 0===a?void 0:a.length)}})})())},[]),(0,n.jsxs)("header",{children:[(0,n.jsxs)("div",{className:"nav thin",children:[(0,n.jsx)("input",{type:"checkbox",id:"nav-check"}),(0,n.jsx)("div",{className:"nav-header",children:(0,n.jsx)("div",{className:"nav-title",children:(0,n.jsx)("a",{href:"/user/home",children:(0,n.jsx)("img",{className:"logo",alt:"",src:(0,p.wx)(l)||"/logo.png",onError:e=>{"/logo.png"!=e.target.src&&(e.target.src="/logo.png")}})})})}),(0,n.jsx)("div",{className:"nav-btn",children:(0,n.jsxs)("label",{htmlFor:"nav-check",children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]})}),(0,n.jsxs)("div",{className:"nav-links",children:[(0,n.jsx)("a",{href:"/user/home",children:"Home"}),(0,n.jsx)("a",{href:"/user/report",children:"Reports"}),("org"==x||"admin"==x)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("a",{href:"/user/campaign",children:"Campaigns"}),(0,n.jsx)("a",{href:"/user/import",children:"Import"}),(0,n.jsx)("a",{href:"/user/integration",children:"Integration"})]}),"org"==x&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("a",{href:"/user/create",children:"Start New Campaign"})}),"admin"==x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("a",{href:"/admin/clients",children:"Clients"}),(0,n.jsx)("a",{href:"/admin/notification",children:(0,n.jsx)(i.A,{badgeContent:a,color:"primary",children:(0,n.jsx)(u.A,{})})})]}),"user"==x&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("a",{href:"/page/donate?id="+v,children:"GIVE"})}),(0,n.jsx)("a",{style:{padding:0,marginRight:40},id:"menu-button","aria-controls":"headerMenu","aria-haspopup":"true",onClick:e=>g(e.currentTarget),children:(0,n.jsx)("img",{alt:"User",src:(0,p.wx)(f)||"/img/user.jpg",onError:e=>{"/img/user.jpg"!=e.target.src&&(e.target.src="/img/user.jpg")},className:"img-fluid img-fit border-circle nav-avatar"})})]})]}),(0,n.jsxs)(d.A,{id:"headerMenu",anchorEl:h,open:!!h,onClose:()=>g(null),MenuListProps:{"aria-labelledby":"menu-button"},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[(0,n.jsx)(c.A,{onClick:()=>e.push("/user/profile"),children:"Profile"}),(0,n.jsx)(c.A,{href:"/",onClick:()=>{localStorage.clear(),e.push("/")},children:"Logout"})]})]})}function g(){let e=(0,p.rX)("type");return(0,n.jsxs)("footer",{className:"thin",children:[(0,n.jsxs)("a",{href:"/",className:"flex flex-row flex-center",children:[(0,n.jsx)("span",{className:"hidden-xs mr-20",children:"Powered by "}),(0,n.jsx)("img",{src:"/logo.png",className:"logo",alt:""})]}),(0,n.jsxs)("div",{id:"FooterRightLinks",className:"ml-auto",children:["admin"!=e&&(0,n.jsx)("a",{href:"/page/helpmessage",className:"mr-20",children:"Message to Admin"}),(0,n.jsx)("a",{href:"/page/contact",className:"mr-20",children:"Contact Us"})]})]})}function f(e){let{header:a,footer:r,children:l,className:o,background:i,Component:d,pageProps:c}=e,u=(0,s.useRouter)();return(0,t.useEffect)(()=>{let e=document.querySelector("#jss-server-side");e&&e.parentElement.removeChild(e)},[]),(0,t.useEffect)(()=>{u&&u.pathname&&(-1!=u.pathname.indexOf("user")||-1!=u.pathname.indexOf("admin"))&&!localStorage.userid&&u.push("/")},[u]),(0,n.jsxs)("main",{className:"loggedinLayout "+o,children:[a&&(0,n.jsx)(h,{}),(0,n.jsx)(d,{...c}),l&&(0,n.jsx)("section",{children:l}),r&&(0,n.jsx)(g,{}),(0,n.jsx)("style",{children:i?"\n        main{\n          background:#3D652A url('".concat(i,"') no-repeat center center;\n          background-size:cover;\n        }\n        "):a?"main{background:#F9F9FB;}":""})]})}f.propTypes={Component:o().func.isRequired}},5054:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>p});var n=r(4848),t=r(2491),l=r(5026),o=r(6540),s=r(8465),i=r.n(s),d=r(3261),c=r(6715
1);let u=r(6425);function m(){let[e,a]=(0,o.useState)([]),r=(0,c.useRouter)(),s=r=>a({...e,[r.target.name]:r.target.value});return(0,n.jsxs)("div",{className:"p-50",children:[(0,n.jsx)("h2",{children:"Manual Form to Add Donors"}),(0,n.jsx)(t.A,{name:"firstname",label:"First Name",onChange:s,value:e.firstname,className:"smallinput"}),(0,n.jsx)(t.A,{name:"lastname",label:"Last Name",onChange:s,value:e.lastname,className:"smallinput"}),(0,n.jsx)(t.A,{name:"phone",label:"Phone",onChange:s,value:e.phone,className:"smallinput"}),(0,n.jsx)(t.A,{name:"email",label:"Email",onChange:s,value:e.email,className:"smallinput"}),(0,n.jsx)(t.A,{name:"amount",type:"number",label:"Amount",onChange:s,value:e.amount,className:"smallinput"}),(0,n.jsx)(t.A,{name:"fund",label:"Fund",onChange:s,value:e.fund,className:"smallinput"}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)(l.A,{variant:"contained",color:"primary",onClick:()=>{var n;u.post("/api/Donation",{action:"create",ownerId:localStorage.userid,campaignId:null==r?void 0:null===(n=r.query)||void 0===n?void 0:n.id,...e}).then(()=>{i().fire("Data Added"),a([])})},children:"Add"})]})}let p=()=>(0,n.jsx)(d.A,{Component:m,header:!0,footer:!0})}},e=>{var a=a=>e(e.s=a);e.O(0,[3478,9906,8037,9736,6425,1021,636,6593,8792],()=>a(2594)),_N_E=e.O()}]);

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.