PageSourceSearch

https://donate-portal.vercel.app/_next/static/chunks/pages/user/orgprofile-5009bb4c0502b17f.js

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

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4533],{8680:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/orgprofile",function(){return a(2817)}])},3172:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var l=a(8168),i=a(45),r=a(6540),n=a(53),s=a(138);let c=(0,a(8014).A)(r.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var o=r.forwardRef(function(e,t){var a,s,o,d,m,u,h=e.alt,g=e.children,x=e.classes,p=e.className,f=e.component,v=e.imgProps,j=e.sizes,b=e.src,N=e.srcSet,y=e.variant,S=(0,i.A)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),w=null,C=(s=(a={src:b,srcSet:N}).src,o=a.srcSet,m=(d=r.useState(!1))[0],u=d[1],r.useEffect(function(){if(s||o){u(!1);var e=!0,t=new Image;return t.src=s,t.srcSet=o,t.onload=function(){e&&u("loaded")},t.onerror=function(){e&&u("error")},function(){e=!1}}},[s,o]),m),A=b||N,k=A&&"error"!==C;return w=k?r.createElement("img",(0,l.A)({alt:h,src:b,srcSet:N,sizes:j,className:x.img},v)):null!=g?g:A&&h?h[0]:r.createElement(c,{className:x.fallback}),r.createElement(void 0===f?"div":f,(0,l.A)({className:(0,n.A)(x.root,x.system,x[void 0===y?"circular":y],p,!k&&x.colorDefault),ref:t},S),w)});let d=(0,s.A)(function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}},{name:"MuiAvatar"})(o)},7828:(e,t,a)=>{"use strict";var l=a(4994),i=a(6305);t.A=void 0;var r=i(a(6540)),n=(0,l(a(1383)).default)(r.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.A=n},2817:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>y});var l=a(4848),i=a(6540),r=a(6715),n=a(3261),s=a(8874),c=a(6578),o=a(6405),d=a(4505),m=a(5026),u=a(7828),h=a(6752),g=a(3172),x=a(1339),p=a(1896),f=a(9976),v=a(8465),j=a.n(v);let b=a(6425);function N(){let[e,t]=(0,i.useState)(null),[a,n]=(0,i.useState)({}),[v,N]=(0,i.useState)("#"),[y,S]=(0,i.useState)(null),[w,C]=(0,i.useState)(null),[A,k]=(0,i.useState)(!1),z=(0,r.useRouter)();(0,i.useEffect)(()=>{t(localStorage.userid),N(s.$W.server+"page/org?id="+localStorage.userid),n(localStorage.org?JSON.parse(localStorage.org):null),S(localStorage.org?JSON.parse(localStorage.org).image:null)},[]);let E=(e,t)=>(n(Object.assign({},a,{[t]:e.target.value})),!1),O=async()=>{await b.post("/api/User",{action:"editOrgProfile",userid:e,name:a.name,details:a.details,tagline:a.tagline,contact:a.contact})&&(localStorage.org=JSON.stringify({name:a.name,details:a.details,tagline:a.tagline,contact:a.contact,image:a.image}),d.Ay.success("Profile Saved !"))},_=async t=>{if("clear"==t)S(null);else if(!w)return;let l=new FormData,i={action:"orgImage",userid:e,userImage:"clear"==t?null:y};if(w){let e=await (0,s.w4)(w),t=await (0,s.Sk)(e);i.userImage=t}l.append("data",JSON.stringify(i)),b.post("/api/Image",l,{headers:{"content-type":"multipart/form-data"}}).then(e=>{S(e.data),E({target:{value:e.data}},"image"),C(null),localStorage.org=JSON.stringify({name:a.name,details:a.details,tagline:a.tagline,contact:a.contact,image:e.data})})};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"boxing flex flex-row gap-50",children:[(0,l.jsx)("div",{className:"text-center mt-36 flex-col1",children:(0,l.jsx)("h1",{children:"Organization Profile"})}),(0,l.jsxs)("div",{className:"card2 card-profile flex-col5",children:[(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)(h.A,{overlap:"circle",color:"primary",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:(0,l.jsx)(u.A,{style:{width:13}}),className:"clickable",onClick:()=>{k(!0)},children:(0,l.jsx)(g.A,{alt:null==a?void 0:a.name,src:w?URL.createObjectURL(w):y?(0,s.wx)(y):"/img/user.jpg",className:"img-fluid img-fit border-circle",style:{width:200,height:200}})})}),(0,l.jsxs)(x.A,{open:A,onClose:()=>{k(!1)},"aria-labelledby":"form-dialog-title",children:[(0,l.jsx)(p.A,{id:"form-dialog-title",children:"Edit Image"}),(0,l.jsxs)(f.A,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("input",{type:"file",onChange:e=>{C(e.target.files[0])}}),(y||w)&&(0,l.jsx)(m.A,{variant:"contained",size:"small",className:"btn-danger",onClick:()=>{S(null),C(null)},children:"Clear"})]}),w&&(0,l.jsx)(m.A,{variant:"contained",size:"small",color:"primary",onClick:()=>{_()},children:"Upload Image"}),y&&(0,l.jsx)(m.A,{variant:"contained",size:"small",className:"btn-danger",onClick:()=>{_("clear"),k(!1)},children:"Remove Image"})]})]}),(0,l.jsxs)("div",{className:"text-center namefont mt-24",children:[null==a?void 0:a.name," "]}),(0,l.jsx)("div",{className:"milli text-center mt-8",children:(0,l.jsx)("b",{children:"BS 2008, MBA 2010, PhD 2017"})})," ",(0,l.jsx)("br",{}),(0,l.jsxs)("div",{style:{padding:"10px 40px"},children:[(0,l.jsx)("small",{children:"Total Donations Recieved: $25,000"}),(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("button",{className:"button-01",href:"/user/orgprofile",onClick:()=>{z.push("/user/profile")},children:"Personal"}),(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)("button",{className:"button-red",href:"/",onClick:()=>{localStorage.clear()},children:"Logout"})]})]})]}),(0,l.jsxs)("div",{className:"card2 card-profileedit flex-col2",children:[(0,l.jsx)("div",{className:"medium",children:(0,l.jsx)("b",{children:"Details"})}),(0,l.jsx)("br",{}),(0,l.jsxs)("div",{className:"inputsection mt-36",children:[(0,l.jsx)("div",{style:{fontWeight:"500"},children:"About"}),(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)("input",{style:{width:"100%"},className:"inputfield mt-24",type:"text",placeholder:"Organization Name",value:null==a?void 0:a.name,onChange:e=>(0,c.hF)(e,a,n,"name")}),(0,l.jsx)("input",{style:{width:"100%"},className:"inputfield mt-24",type:"text",placeholder:"Tagline",value:null==a?void 0:a.tagline,onChange:e=>(0,c.hF)(e,a,n,"tagline")}),(0,l.jsx)("select",{style:{width:"100%"},className:"inputfield mt-24",type:"text",placeholder:"Tagline",children:o.J7.map(e=>(0,l.jsx)("option",{value:e.key,children:e.label}))}),(0,l.jsx)("textarea",{rows:"5",style:{width:"100%"},className:"inputfield mt-24",type:"text",placeholder:"Details",value:null==a?void 0:a.details,onChange:e=>(0,c.hF)(e,a,n,"details")}),(0,l.jsx)("input",{style:{width:"100%"},className:"inputfield mt-24 ",type:"text",placeholder:"Contact Information",value:null==a?void 0:a.contact,onChange:e=>(0,c.hF)(e,a,n,"contact")})]})]}),(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)("div",{className:"text-center ",children:(0,l.jsx)("button",{className:"button-01",onClick:O,children:"Save"})}),(0,l.jsx)("br",{}),(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("button",{className:"button-01 ",onClick:()=>{(0,s.WJ)(v),j().fire({title:"Copied to clipboard!",text:v,showCancelButton:!0,confirmButtonText:"View"}).then(e=>{e.isConfirmed&&window.open(v)})},variant:"contained",color:"primary",children:"Get Link"})}),(0,l.jsx)("br",{})]})]})})}let y=()=>(0,l.jsx)(n.A,{Component:N,header:!0,footer:!0})}},e=>{var t=t=>e(e.s=t);e.O(0,[3478,9906,8037,9736,6425,1021,1679,9830,1637,5592,636,6593,8792],()=>t(8680)),_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.