PageSourceSearch

https://donate-portal.vercel.app/_next/static/chunks/pages/page/helpmessage-5c30be7d8e903f44.js

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

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[154],{5730:(e,a,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/page/helpmessage",function(){return n(1593)}])},6578:(e,a,n)=>{"use strict";n.d(a,{Ay:()=>u,YB:()=>d,ZB:()=>c,hF:()=>o,l6:()=>h});var r=n(4848),t=n(2491),s=n(5729),l=n(3816),i=n(5418);let o=function(e,a){var n,r,t;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=Object.assign({},a),c=null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.value;return(null==e?void 0:null===(r=e.target)||void 0===r?void 0:r.type)=="checkbox"&&(c=null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.checked),i?(o[l][i]=c,s(o)):l?(o[l]=c,s(o)):a(c),!1},c=o,d=e=>{let{label:a,value:n,onChange:s}=e;return(0,r.jsx)(t.A,{className:"mt-12 smallinput",fullWidth:!0,label:a,variant:"filled",value:n,onChange:e=>s(e)})},u=e=>{let{label:a,value:n,onChange:s}=e;return(0,r.jsx)(t.A,{className:"mt-12 milliinput",label:a,variant:"filled",value:n,onChange:e=>s(e)})};function h(e){let{options:a,value:n,onChange:t}=e;return(0,r.jsx)(s.A,{value:n,onChange:e=>t(e),children:a.map(e=>(0,r.jsx)(l.A,{value:e.value,control:(0,r.jsx)(i.A,{}),label:e.label}))})}},8874:(e,a,n)=>{"use strict";n.d(a,{$W:()=>o,Bq:()=>g,DT:()=>m,F4:()=>u,QV:()=>A,Sk:()=>v,WJ:()=>x,bg:()=>h,ej:()=>b,ki:()=>f,n4:()=>p,nW:()=>c,rX:()=>d,w4:()=>y,wx:()=>j});var r=n(6540),t=n(4335),s=n(8465),l=n.n(s),i=n(8122);let o={adminMail:"[email protected]",server:"https://donation.divyavrat.com/"},c=e=>{(0,r.useEffect)(()=>{let a=document.createElement("script");return a.src=e,a.async=!0,document.body.appendChild(a),()=>{document.body.removeChild(a)}},[e])},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[a,n]=(0,r.useState)("");return(0,r.useEffect)(()=>{n(localStorage[e]||"")},[]),a},u=e=>{e&&(e.preventDefault(),e.stopPropagation())},h=()=>{"admin"!=localStorage.type&&(window.location.href="/")},g=e=>e.replace(/(^[,\s]+)|([,\s]+$)/g,""),m=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()),p=e=>{let a=e.slice(0,12).replace(/\D/g,""),n=a.match(/^(\d{1,3})(\d{0,3})(\d{0,4})$/);return n&&(a="".concat(n[1]).concat(n[2]?" ":"").concat(n[2]).concat(n[3]?"-":"").concat(n[3])),a},x=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)},f=e=>{t.A.post("/api/mail",e)},j=e=>e;function v(e){return new Promise((a,n)=>{let r=new FileReader;r.onloadend=()=>a(r.result),r.readAsDataURL(e)})}async function y(e){try{return await (0,i.A)(e,{maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0})}catch(e){console.log(e)}}let b=e=>e&&e.toString?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e,A=(e,a)=>{l().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(),l().fire("Deleted!","Successfully deleted.","success"))})}},3261:(e,a,n)=>{"use strict";n.d(a,{A:()=>x});var r=n(4848),t=n(6540),s=n(5556),l=n.n(s),i=n(6715),o=n(6752),c=n(4968),d=n(9998),u=n(3422),h=n(4335),g=n(8874);function m(){let e=(0,i.useRouter)(),[a,n]=(0,t.useState)(0),[s,l]=(0,t.useState)(null),[m,p]=(0,t.useState)(null),x=(0,g.rX)("userImage"),f=(0,g.rX)("type")||"user",j=(0,g.rX)("lastPage");return(0,t.useEffect)(()=>{localStorage.org&&l(localStorage.org?JSON.parse(localStorage.org).image:null),"admin"==localStorage.type&&((0,g.bg)(),(async()=>{h.A.post("/api/mail",{type:"list"}).then(e=>{if(e&&e.data){var a;n(null===(a=e.data)||void 0===a?void 0:a.length)}})})())},[]),(0,r.jsxs)("header",{children:[(0,r.jsxs)("div",{className:"nav thin",children:[(0,r.jsx)("input",{type:"checkbox",id:"nav-check"}),(0,r.jsx)("div",{className:"nav-header",children:(0,r.jsx)("div",{className:"nav-title",children:(0,r.jsx)("a",{href:"/user/home",children:(0,r.jsx)("img",{className:"logo",alt:"",src:(0,g.wx)(s)||"/logo.png",onError:e=>{"/logo.png"!=e.target.src&&(e.target.src="/logo.png")}})})})}),(0,r.jsx)("div",{className:"nav-btn",children:(0,r.jsxs)("label",{htmlFor:"nav-check",children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{}),(0,r.jsx)("span",{})]})}),(0,r.jsxs)("div",{className:"nav-links",children:[(0,r.jsx)("a",{href:"/user/home",children:"Home"}),(0,r.jsx)("a",{href:"/user/report",children:"Reports"}),("org"==f||"admin"==f)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:"/user/campaign",children:"Campaigns"}),(0,r.jsx)("a",{href:"/user/import",children:"Import"}),(0,r.jsx)("a",{href:"/user/integration",children:"Integration"})]}),"org"==f&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("a",{href:"/user/create",children:"Start New Campaign"})}),"admin"==f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:"/admin/clients",children:"Clients"}),(0,r.jsx)("a",{href:"/admin/notification",children:(0,r.jsx)(o.A,{badgeContent:a,color:"primary",children:(0,r.jsx)(u.A,{})})})]}),"user"==f&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("a",{href:"/page/donate?id="+j,children:"GIVE"})}),(0,r.jsx)("a",{style:{padding:0,marginRight:40},id:"menu-button","aria-controls":"headerMenu","aria-haspopup":"true",onClick:e=>p(e.currentTarget),children:(0,r.jsx)("img",{alt:"User",src:(0,g.wx)(x)||"/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,r.jsxs)(c.A,{id:"headerMenu",anchorEl:m,open:!!m,onClose:()=>p(null),MenuListProps:{"aria-labelledby":"menu-button"},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[(0,r.jsx)(d.A,{onClick:()=>e.push("/user/profile"),children:"Profile"}),(0,r.jsx)(d.A,{href:"/",onClick:()=>{localStorage.clear(),e.push("/")},children:"Logout"})]})]})}function p(){let e=(0,g.rX)("type");return(0,r.jsxs)("footer",{className:"thin",children:[(0,r.jsxs)("a",{href:"/",className:"flex flex-row flex-center",children:[(0,r.jsx)("span",{className:"hidden-xs mr-20",children:"Powered by "}),(0,r.jsx)("img",{src:"/logo.png",className:"logo",alt:""})]}),(0,r.jsxs)("div",{id:"FooterRightLinks",className:"ml-auto",children:["admin"!=e&&(0,r.jsx)("a",{href:"/page/helpmessage",className:"mr-20",children:"Message to Admin"}),(0,r.jsx)("a",{href:"/page/contact",className:"mr-20",children:"Contact Us"})]})]})}function x(e){let{header:a,footer:n,children:s,className:l,background:o,Component:c,pageProps:d}=e,u=(0,i.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,r.jsxs)("main",{className:"loggedinLayout "+l,children:[a&&(0,r.jsx)(m,{}),(0,r.jsx)(c,{...d}),s&&(0,r.jsx)("section",{children:s}),n&&(0,r.jsx)(p,{}),(0,r.jsx)("style",{children:o?"\n        main{\n          background:#3D652A url('".concat(o,"') no-repeat center center;\n          background-size:cover;\n        }\n        "):a?"main{background:#F9F9FB;}":""})]})}x.propTypes={Component:l().func.isRequired}},1593:(e,a,n)=>{"use strict";n.r(a),n.d(a,{default:()=>x});var r=n(4848),t=n(8334),s=n(7156),l=n(6658),i=n(2491),o=n(5026),c=n(4335),d=n(6540),u=n(4505),h=n(6578),g=n(3261),m=n(8874);function p(){let[e,a]=(0,d.useState)({}),n=(0,m.rX)("type");return(0,r.jsx)(t.A,{container:!0,children:(0,r.jsx)(t.A,{lg:4,md:6,sm:12,xs:12,className:"mx-auto",children:(0,r.jsxs)(s.A,{className:"p-50 mt-36",children:[(0,r.jsx)("h2",{children:"Message to Admin"}),"org"!=n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.A,{value:e.upgrade,onCh
1ange:n=>(0,h.hF)(n,e,a,"upgrade")})," Request Upgrade to Organisation ",(0,r.jsx)("br",{})," ",(0,r.jsx)("br",{})]}),(0,r.jsx)(i.A,{variant:"filled",label:"Message",multiline:!0,value:e.message,onChange:n=>(0,h.hF)(n,e,a,"message")})," ",(0,r.jsx)("br",{})," ",(0,r.jsx)("br",{}),(0,r.jsx)(o.A,{variant:"contained",onClick:()=>{(0,u.Ay)("Sending Message"),c.A.post("/api/mail",{type:"adminMail",from:localStorage.email,text:(e.upgrade?"Requesting Upgrade to Organisation. ":"")+e.message}).then(e=>{u.Ay.remove(),u.Ay.success("Message Sent !"),a({})}).catch(e=>{u.Ay.remove(),u.Ay.error("Something went wrong !")})},children:"Send"})]})})})}let x=()=>(0,r.jsx)(g.A,{Component:p,header:!0,footer:!0})}},e=>{var a=a=>e(e.s=a);e.O(0,[3478,9906,8037,9736,1021,1679,1637,4799,636,6593,8792],()=>a(5730)),_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.