PageSourceSearch

https://donate-portal.vercel.app/_next/static/chunks/pages/page/thankyou-1db2942812b87291.js

js donate-portal.vercel.app collected 2026-10-03 07:15:52 UTC 10,442 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9877],{6728:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/page/thankyou",function(){return t(9329)}])},8874:(e,r,t)=>{"use strict";t.d(r,{$W:()=>o,Bq:()=>m,DT:()=>g,F4:()=>h,QV:()=>y,Sk:()=>C,WJ:()=>p,bg:()=>u,ej:()=>w,ki:()=>f,n4:()=>x,nW:()=>c,rX:()=>d,w4:()=>v,wx:()=>j});var s=t(6540),n=t(4335),a=t(8465),i=t.n(a),l=t(8122);let o={adminMail:"[email protected]",server:"https://donation.divyavrat.com/"},c=e=>{(0,s.useEffect)(()=>{let r=document.createElement("script");return r.src=e,r.async=!0,document.body.appendChild(r),()=>{document.body.removeChild(r)}},[e])},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[r,t]=(0,s.useState)("");return(0,s.useEffect)(()=>{t(localStorage[e]||"")},[]),r},h=e=>{e&&(e.preventDefault(),e.stopPropagation())},u=()=>{"admin"!=localStorage.type&&(window.location.href="/")},m=e=>e.replace(/(^[,\s]+)|([,\s]+$)/g,""),g=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()),x=e=>{let r=e.slice(0,12).replace(/\D/g,""),t=r.match(/^(\d{1,3})(\d{0,3})(\d{0,4})$/);return t&&(r="".concat(t[1]).concat(t[2]?" ":"").concat(t[2]).concat(t[3]?"-":"").concat(t[3])),r},p=e=>{var r=document.createElement("textarea");r.value=e,r.style.top="0",r.style.left="0",r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(r)},f=e=>{n.A.post("/api/mail",e)},j=e=>e;function C(e){return new Promise((r,t)=>{let s=new FileReader;s.onloadend=()=>r(s.result),s.readAsDataURL(e)})}async function v(e){try{return await (0,l.A)(e,{maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0})}catch(e){console.log(e)}}let w=e=>e&&e.toString?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e,y=(e,r)=>{i().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(r=>{r.isConfirmed&&(e(),i().fire("Deleted!","Successfully deleted.","success"))})}},3261:(e,r,t)=>{"use strict";t.d(r,{A:()=>p});var s=t(4848),n=t(6540),a=t(5556),i=t.n(a),l=t(6715),o=t(6752),c=t(4968),d=t(9998),h=t(3422),u=t(4335),m=t(8874);function g(){let e=(0,l.useRouter)(),[r,t]=(0,n.useState)(0),[a,i]=(0,n.useState)(null),[g,x]=(0,n.useState)(null),p=(0,m.rX)("userImage"),f=(0,m.rX)("type")||"user",j=(0,m.rX)("lastPage");return(0,n.useEffect)(()=>{localStorage.org&&i(localStorage.org?JSON.parse(localStorage.org).image:null),"admin"==localStorage.type&&((0,m.bg)(),(async()=>{u.A.post("/api/mail",{type:"list"}).then(e=>{if(e&&e.data){var r;t(null===(r=e.data)||void 0===r?void 0:r.length)}})})())},[]),(0,s.jsxs)("header",{children:[(0,s.jsxs)("div",{className:"nav thin",children:[(0,s.jsx)("input",{type:"checkbox",id:"nav-check"}),(0,s.jsx)("div",{className:"nav-header",children:(0,s.jsx)("div",{className:"nav-title",children:(0,s.jsx)("a",{href:"/user/home",children:(0,s.jsx)("img",{className:"logo",alt:"",src:(0,m.wx)(a)||"/logo.png",onError:e=>{"/logo.png"!=e.target.src&&(e.target.src="/logo.png")}})})})}),(0,s.jsx)("div",{className:"nav-btn",children:(0,s.jsxs)("label",{htmlFor:"nav-check",children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]})}),(0,s.jsxs)("div",{className:"nav-links",children:[(0,s.jsx)("a",{href:"/user/home",children:"Home"}),(0,s.jsx)("a",{href:"/user/report",children:"Reports"}),("org"==f||"admin"==f)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:"/user/campaign",children:"Campaigns"}),(0,s.jsx)("a",{href:"/user/import",children:"Import"}),(0,s.jsx)("a",{href:"/user/integration",children:"Integration"})]}),"org"==f&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("a",{href:"/user/create",children:"Start New Campaign"})}),"admin"==f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:"/admin/clients",children:"Clients"}),(0,s.jsx)("a",{href:"/admin/notification",children:(0,s.jsx)(o.A,{badgeContent:r,color:"primary",children:(0,s.jsx)(h.A,{})})})]}),"user"==f&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("a",{href:"/page/donate?id="+j,children:"GIVE"})}),(0,s.jsx)("a",{style:{padding:0,marginRight:40},id:"menu-button","aria-controls":"headerMenu","aria-haspopup":"true",onClick:e=>x(e.currentTarget),children:(0,s.jsx)("img",{alt:"User",src:(0,m.wx)(p)||"/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,s.jsxs)(c.A,{id:"headerMenu",anchorEl:g,open:!!g,onClose:()=>x(null),MenuListProps:{"aria-labelledby":"menu-button"},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[(0,s.jsx)(d.A,{onClick:()=>e.push("/user/profile"),children:"Profile"}),(0,s.jsx)(d.A,{href:"/",onClick:()=>{localStorage.clear(),e.push("/")},children:"Logout"})]})]})}function x(){let e=(0,m.rX)("type");return(0,s.jsxs)("footer",{className:"thin",children:[(0,s.jsxs)("a",{href:"/",className:"flex flex-row flex-center",children:[(0,s.jsx)("span",{className:"hidden-xs mr-20",children:"Powered by "}),(0,s.jsx)("img",{src:"/logo.png",className:"logo",alt:""})]}),(0,s.jsxs)("div",{id:"FooterRightLinks",className:"ml-auto",children:["admin"!=e&&(0,s.jsx)("a",{href:"/page/helpmessage",className:"mr-20",children:"Message to Admin"}),(0,s.jsx)("a",{href:"/page/contact",className:"mr-20",children:"Contact Us"})]})]})}
1function p(e){let{header:r,footer:t,children:a,className:i,background:o,Component:c,pageProps:d}=e,h=(0,l.useRouter)();return(0,n.useEffect)(()=>{let e=document.querySelector("#jss-server-side");e&&e.parentElement.removeChild(e)},[]),(0,n.useEffect)(()=>{h&&h.pathname&&(-1!=h.pathname.indexOf("user")||-1!=h.pathname.indexOf("admin"))&&!localStorage.userid&&h.push("/")},[h]),(0,s.jsxs)("main",{className:"loggedinLayout "+i,children:[r&&(0,s.jsx)(g,{}),(0,s.jsx)(c,{...d}),a&&(0,s.jsx)("section",{children:a}),t&&(0,s.jsx)(x,{}),(0,s.jsx)("style",{children:o?"\n        main{\n          background:#3D652A url('".concat(o,"') no-repeat center center;\n          background-size:cover;\n        }\n        "):r?"main{background:#F9F9FB;}":""})]})}p.propTypes={Component:i().func.isRequired}},9329:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>o});var s=t(4848),n=t(6540),a=t(8874),i=t(3261);let l=()=>{let e=(0,a.rX)("thankYouMessage"),r=(0,a.rX)("email"),[t,i]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e=localStorage.name;e&&i((e=e.split(" "))[0])},[]),(0,s.jsxs)("div",{className:"card p-50",children:[(0,s.jsxs)("h1",{className:"thin text-center mb-50",children:[e||"Thank you so much",", ",t,"."]}),(0,s.jsxs)("div",{children:["You will receive an acknowledgement letter and tax-deduction receipt at this email: ",(0,s.jsx)("a",{children:r}),"."]}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{style:{textAlign:"center"},children:(0,s.jsx)("a",{href:"/user/home",style:{fontSize:23},children:"Click here to view your Donation history"})}),(0,s.jsx)("br",{}),(0,s.jsxs)("div",{class:"text-center mt-50",children:["Share our message on social media",(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"flex flex-row flex-center",children:[(0,s.jsxs)("svg",{id:"i-fb",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20",className:"pointer mr-20",children:["    ",(0,s.jsx)("path",{d:"M12,0C5.373,0,0,5.373,0,12c0,6.016,4.432,10.984,10.206,11.852V15.18H7.237v-3.154h2.969V9.927c0-3.475,1.693-5,4.581-5 c1.383,0,2.115,0.103,2.461,0.149v2.753h-1.97c-1.226,0-1.654,1.163-1.654,2.473v1.724h3.593L16.73,15.18h-3.106v8.697 C19.481,23.083,24,18.075,24,12C24,5.373,18.627,0,12,0z"})]}),(0,s.jsx)("svg",{id:"i-insta",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"25",height:"25",className:"pointer mr-20",children:(0,s.jsx)("path",{d:"M 16.5 5 C 10.159 5 5 10.159 5 16.5 L 5 31.5 C 5 37.841 10.159 43 16.5 43 L 31.5 43 C 37.841 43 43 37.841 43 31.5 L 43 16.5 C 43 10.159 37.841 5 31.5 5 L 16.5 5 z M 34 12 C 35.105 12 36 12.895 36 14 C 36 15.104 35.105 16 34 16 C 32.895 16 32 15.104 32 14 C 32 12.895 32.895 12 34 12 z M 24 14 C 29.514 14 34 18.486 34 24 C 34 29.514 29.514 34 24 34 C 18.486 34 14 29.514 14 24 C 14 18.486 18.486 14 24 14 z M 24 17 A 7 7 0 1 0 24 31 A 7 7 0 1 0 24 17 z"})}),(0,s.jsx)("svg",{id:"i-twitter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"25",height:"25",className:"pointer mr-20",children:(0,s.jsx)("path",{"stroke-width":"0",fill:"currentColor",d:"M60 16 L54 17 L58 12 L51 14 C42 4 28 15 32 24 C16 24 8 12 8 12 C8 12 2 21 12 28 L6 26 C6 32 10 36 17 38 L10 38 C14 46 21 46 21 46 C21 46 15 51 4 51 C37 67 57 37 54 21 Z"})}),(0,s.jsx)("svg",{id:"i-linkedin",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",width:"20",height:"20",className:"pointer mr-20",children:(0,s.jsx)("path",{d:"M 21.125 0 L 4.875 0 C 2.183594 0 0 2.183594 0 4.875 L 0 21.125 C 0 23.816406 2.183594 26 4.875 26 L 21.125 26 C 23.816406 26 26 23.816406 26 21.125 L 26 4.875 C 26 2.183594 23.816406 0 21.125 0 Z M 8.039063 22.070313 L 4 22.070313 L 3.976563 9.976563 L 8.015625 9.976563 Z M 5.917969 8.394531 L 5.894531 8.394531 C 4.574219 8.394531 3.722656 7.484375 3.722656 6.351563 C 3.722656 5.191406 4.601563 4.3125 5.945313 4.3125 C 7.289063 4.3125 8.113281 5.191406 8.140625 6.351563 C 8.140625 7.484375 7.285156 8.394531 5.917969 8.394531 Z M 22.042969 22.070313 L 17.96875 22.070313 L 17.96875 15.5 C 17.96875 13.910156 17.546875 12.828125 16.125 12.828125 C 15.039063 12.828125 14.453125 13.558594 14.171875 14.265625 C 14.066406 14.519531 14.039063 14.867188 14.039063 15.222656 L 14.039063 22.070313 L 9.945313 22.070313 L 9.921875 9.976563 L 14.015625 9.976563 L 14.039063 11.683594 C 14.5625 10.875 15.433594 9.730469 17.519531 9.730469 C 20.105469 9.730469 22.039063 11.417969 22.039063 15.046875 L 22.039063 22.070313 Z"})})]})]})]})},o=()=>(0,s.jsx)(i.A,{className:"vh-100 flex flex-center",background:"https://images.unsplash.com/photo-1534955968741-7ddf27522198?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MzB8fGdyZWVuJTIwZm9yZXN0fGVufDB8fDB8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1024&q=60",Component:l})}},e=>{var r=r=>e(e.s=r);e.O(0,[3478,9906,8037,636,6593,8792],()=>r(6728)),_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.