PageSourceSearch

https://donate-portal.vercel.app/_next/static/chunks/pages/admin/userdetail-445d3a979e9e49ac.js

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

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6846],{4794:(e,a,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/userdetail",function(){return o(3506)}])},8874:(e,a,o)=>{"use strict";o.d(a,{$W:()=>s,Bq:()=>u,DT:()=>m,F4:()=>p,QV:()=>S,Sk:()=>y,WJ:()=>x,bg:()=>h,ej:()=>j,ki:()=>b,n4:()=>g,nW:()=>d,rX:()=>c,w4:()=>v,wx:()=>f});var t=o(6540),r=o(4335),n=o(8465),i=o.n(n),l=o(8122);let s={adminMail:"[email protected]",server:"https://donation.divyavrat.com/"},d=e=>{(0,t.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,o]=(0,t.useState)("");return(0,t.useEffect)(()=>{o(localStorage[e]||"")},[]),a},p=e=>{e&&(e.preventDefault(),e.stopPropagation())},h=()=>{"admin"!=localStorage.type&&(window.location.href="/")},u=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()),g=e=>{let a=e.slice(0,12).replace(/\D/g,""),o=a.match(/^(\d{1,3})(\d{0,3})(\d{0,4})$/);return o&&(a="".concat(o[1]).concat(o[2]?" ":"").concat(o[2]).concat(o[3]?"-":"").concat(o[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)},b=e=>{r.A.post("/api/mail",e)},f=e=>e;function y(e){return new Promise((a,o)=>{let t=new FileReader;t.onloadend=()=>a(t.result),t.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 j=e=>e&&e.toString?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e,S=(e,a)=>{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(a=>{a.isConfirmed&&(e(),i().fire("Deleted!","Successfully deleted.","success"))})}},5026:(e,a,o)=>{"use strict";o.d(a,{A:()=>h});var t=o(45),r=o(8168),n=o(6540),i=o(53),l=o(138),s=o(9957),d=o(7101),c=o(4931),p=n.forwardRef(function(e,a){var o=e.children,l=e.classes,s=e.className,p=e.color,h=void 0===p?"default":p,u=e.component,m=e.disabled,g=void 0!==m&&m,x=e.disableElevation,b=e.disableFocusRipple,f=e.endIcon,y=e.focusVisibleClassName,v=e.fullWidth,j=e.size,S=void 0===j?"medium":j,C=e.startIcon,k=e.type,w=e.variant,z=void 0===w?"text":w,A=(0,t.A)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),N=C&&n.createElement("span",{className:(0,i.A)(l.startIcon,l["iconSize".concat((0,c.A)(S))])},C),E=f&&n.createElement("span",{className:(0,i.A)(l.endIcon,l["iconSize".concat((0,c.A)(S))])},f);return n.createElement(d.A,(0,r.A)({className:(0,i.A)(l.root,l[z],s,"inherit"===h?l.colorInherit:"default"!==h&&l["".concat(z).concat((0,c.A)(h))],"medium"!==S&&[l["".concat(z,"Size").concat((0,c.A)(S))],l["size".concat((0,c.A)(S))]],void 0!==x&&x&&l.disableElevation,g&&l.disabled,void 0!==v&&v&&l.fullWidth),component:void 0===u?"button":u,disabled:g,focusRipple:!(void 0!==b&&b),focusVisibleClassName:(0,i.A)(l.focusVisible,y),ref:a,type:void 0===k?"button":k},A),n.createElement("span",{className:l.label},N,o,E))});let h=(0,l.A)(function(e){return{root:(0,r.A)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,s.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,s.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackgroun
1d)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,s.X4)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,s.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,s.X4)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,s.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},{name:"MuiButton"})(p)},3261:(e,a,o)=>{"use strict";o.d(a,{A:()=>x});var t=o(4848),r=o(6540),n=o(5556),i=o.n(n),l=o(6715),s=o(6752),d=o(4968),c=o(9998),p=o(3422),h=o(4335),u=o(8874);function m(){let e=(0,l.useRouter)(),[a,o]=(0,r.useState)(0),[n,i]=(0,r.useState)(null),[m,g]=(0,r.useState)(null),x=(0,u.rX)("userImage"),b=(0,u.rX)("type")||"user",f=(0,u.rX)("lastPage");return(0,r.useEffect)(()=>{localStorage.org&&i(localStorage.org?JSON.parse(localStorage.org).image:null),"admin"==localStorage.type&&((0,u.bg)(),(async()=>{h.A.post("/api/mail",{type:"list"}).then(e=>{if(e&&e.data){var a;o(null===(a=e.data)||void 0===a?void 0:a.length)}})})())},[]),(0,t.jsxs)("header",{children:[(0,t.jsxs)("div",{className:"nav thin",children:[(0,t.jsx)("input",{type:"checkbox",id:"nav-check"}),(0,t.jsx)("div",{className:"nav-header",children:(0,t.jsx)("div",{className:"nav-title",children:(0,t.jsx)("a",{href:"/user/home",children:(0,t.jsx)("img",{className:"logo",alt:"",src:(0,u.wx)(n)||"/logo.png",onError:e=>{"/logo.png"!=e.target.src&&(e.target.src="/logo.png")}})})})}),(0,t.jsx)("div",{className:"nav-btn",children:(0,t.jsxs)("label",{htmlFor:"nav-check",children:[(0,t.jsx)("span",{}),(0,t.jsx)("span",{}),(0,t.jsx)("span",{})]})}),(0,t.jsxs)("div",{className:"nav-links",children:[(0,t.jsx)("a",{href:"/user/home",children:"Home"}),(0,t.jsx)("a",{href:"/user/report",children:"Reports"}),("org"==b||"admin"==b)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{href:"/user/campaign",children:"Campaigns"}),(0,t.jsx)("a",{href:"/user/import",children:"Import"}),(0,t.jsx)("a",{href:"/user/integration",children:"Integration"})]}),"org"==b&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{href:"/user/create",children:"Start New Campaign"})}),"admin"==b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{href:"/admin/clients",children:"Clients"}),(0,t.jsx)("a",{href:"/admin/notification",children:(0,t.jsx)(s.A,{badgeContent:a,color:"primary",children:(0,t.jsx)(p.A,{})})})]}),"user"==b&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{href:"/page/donate?id="+f,children:"GIVE"})}),(0,t.jsx)("a",{style:{padding:0,marginRight:40},id:"menu-button","aria-controls":"headerMenu","aria-haspopup":"true",onClick:e=>g(e.currentTarget),children:(0,t.jsx)("img",{alt:"User",src:(0,u.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,t.jsxs)(d.A,{id:"headerMenu",anchorEl:m,open:!!m,onClose:()=>g(null),MenuListProps:{"aria-labelledby":"menu-button"},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:[(0,t.jsx)(c.A,{onClick:()=>e.push("/user/profile"),children:"Profile"}),(0,t.jsx)(c.A,{href:"/",onClick:()=>{localStorage.clear(),e.push("/")},children:"Logout"})]})]})}function g(){let e=(0,u.rX)("type");return(0,t.jsxs)("footer",{className:"thin",children:[(0,t.jsxs)("a",{href:"/",className:"flex flex-row flex-center",children:[(0,t.jsx)("span",{className:"hidden-xs mr-20",children:"Powered by "}),(0,t.jsx)("img",{src:"/logo.png",className:"logo",alt:""})]}),(0,t.jsxs)("div",{id:"FooterRightLinks",className:"ml-auto",children:["admin"!=e&&(0,t.jsx)("a",{href:"/page/helpmessage",className:"mr-20",children:"Message to Admin"}),(0,t.jsx)("a",{href:"/page/contact",className:"mr-20",children:"Contact Us"})]})]})}function x(e){let{header:a,footer:o,children:n,className:i,background:s,Component:d,pageProps:c}=e,p=(0,l.useRouter)();return(0,r.useEffect)(()=>{let e=document.querySelector("#jss-server-side");e&&e.parentElement.removeChild(e)},[]),(0,r.useEffect)(()=>{p&&p.pathname&&(-1!=p.pathname.indexOf("user")||-1!=p.pathname.indexOf("admin"))&&!localStorage.userid&&p.push("/")},[p]),(0,t.jsxs)("main",{className:"loggedinLayout "+i,children:[a&&(0,t.jsx)(m,{}),(0,t.jsx)(d,{...c}),n&&(0,t.jsx)("section",{children:n}),o&&(0,t.jsx)(g,{}),(0,t.jsx)("style",{children:s?"\n        main{\n          background:#3D652A url('".concat(s,"') no-repeat center center;\n          background-size:cover;\n        }\n        "):a?"main{background:#F9F9FB;}":""})]})}x.propTypes={Component:i().func.isRequired}},3506:(e,a,o)=>{"use strict";o.r(a),o.d(a,{default:()=>p});var t=o(4848),r=o(6540),n=o(6715),i=o(5026),l=o(3261),s=o(8874);let d=o(6425);function c(){var e;let[a,o]=(0,r.useState)({}),l=(0,n.useRouter)();return(0,r.useEffect)(()=>{(0,s.bg)(),(async()=>{d.post("/api/User",{action:"userDetail",userid:l.query.i}).then(e=>{e&&e.data&&o(e.data)})})()},[l]),(0,t.jsxs)("div",{style:{padding:50},children:[(0,t.jsx)("h1",{children:" User details"}),(0,t.jsx)("br",{}),(0,t.jsx)("b",{children:"Full Name: "}),a.name,(0,t.jsx)("br",{}),(0,t.jsx)("b",{children:"Email: "}),a.email,(0,t.jsx)("br",{}),(0,t.jsx)("b",{children:"Phone: "}),a.phone,(0,t.jsx)("br",{}),(0,t.jsx)("b",{children:"type: "}),a.type,(0,t.jsx)("br",{}),(0,t.jsx)("b",{children:"Organization Name: "}),null===(e=a.org)||void 0===e?void 0:e.name," ",(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)(i.A,{variant:"contained",onClick:()=>{window.print()},children:"Print"})]})}let p=()=>(0,t.jsx)(l.A,{Component:c,header:!0,footer:!0})}},e=>{var a=a=>e(e.s=a);e.O(0,[3478,9906,8037,6425,636,6593,8792],()=>a(4794)),_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.