PageSourceSearch

https://www.causes.com/_next/static/chunks/pages/myportfolio-15ad6bdfb2e1aadd.js

js causes.com collected 2026-10-01 08:55:30 UTC 11,455 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4454],{29660:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/myportfolio",function(){return n(69168)}])},69168:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>D});var r=n(63857),i=n(43081),s=n.n(i),a=n(14232),u=n(81490),o=n(96709),d=n(69813),c=n(52189),l=n(95417),f=n(89099),p=n(37036),g=n(59782),h=n(63562),x=n(8769),v=n(43039),w=n(94555),y=n(12619),m=n(45751),S=n(62679),b=n(46185),I=n(31866),A=n(84091),j=n(99809),k=n(75741),G=n(8257),N=n(19189),U=n(44128),C=n(76040),O=n(23215),E=n(37876);let D=function(){var e,t,n,i,D=(0,w.S)(),q=D.setLoadingSpinner,P=D.setUserGridInfo,M=D.userGridInfo,R=D.setUserGridIndex,_=D.userGridIndex,L=D.loadingUserData,F=D.user,K=D.setFavoriteOrgs,T=(0,f.useRouter)(),V=(0,a.useState)(""),W=V[0],z=V[1],B=(0,a.useState)("My ".concat(I.KM)),Y=B[0],H=B[1],X=(0,a.useState)(""),J=X[0],Q=X[1],Z=(0,a.useState)(!1),$=Z[0],ee=Z[1],et=(0,a.useState)(!0),en=et[0],er=et[1],ei=(0,a.useState)(!0),es=ei[0],ea=ei[1],eu=(0,a.useState)(!1),eo=eu[0],ed=eu[1],ec=(0,a.useState)(!1),el=ec[0],ef=ec[1],ep=(0,a.useState)(""),eg=ep[0],eh=ep[1],ex=(0,a.useState)(0),ev=ex[0],ew=ex[1],ey=(0,a.useState)(!1),em=ey[0],eS=ey[1],eb=(0,a.useState)(""),eI=eb[0],eA=eb[1],ej=(0,a.useState)(!1),ek=ej[0],eG=ej[1],eN=(0,a.useState)(!1),eU=eN[0],eC=eN[1],eO=(0,a.useState)(!1),eE=eO[0],eD=eO[1],eq=(0,a.useState)(!0),eP=eq[0],eM=eq[1],eR=(0,a.useState)([]),e_=eR[0],eL=eR[1],eF=(0,a.useRef)(!1),eK=(0,a.useState)(!1),eT=eK[0],eV=eK[1],eW=(0,a.useState)(!1),ez=eW[0],eB=eW[1],eY=(0,a.useState)(-1),eH=eY[0],eX=eY[1],eJ=(0,a.useState)(!1),eQ=eJ[0],eZ=eJ[1],e$=(0,G.F6)(),e0=(0,a.useState)(!1),e1=e0[0],e9=e0[1],e2=(0,N.A)(O.pc),e7=!M||M.length<1,e6=function(e,t){},e8=(0,a.useState)(!1),e4=e8[0],e3=e8[1],e5=(0,a.useState)(!1),te=e5[0],tt=e5[1],tn=(0,a.useState)([]),tr=tn[0],ti=tn[1],ts=(0,a.useState)([]),ta=ts[0],tu=ts[1],to=(0,a.useState)(-1),td=to[0],tc=to[1],tl=(0,a.useState)(0),tf=tl[0],tp=tl[1],tg=(0,a.useState)(!1),th=tg[0],tx=tg[1],tv=(0,a.useState)(!1),tw=tv[0],ty=tv[1];(0,a.useEffect)(function(){F&&-1!==td&&th&&tw&&e3(!0)},[F,td,th,tw]);var tm=(e=(0,r.A)(s().mark(function e(){var t;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(F&&F.getUser)){e.next=11;break}return e.next=3,(0,A.DHd)(F.getUser.id,F.getUser);case 3:return ti(t=e.sent),e.next=7,(0,A.qC1)(F.getUser.id,F.getUser);case 7:tu(e.sent.map(function(e){return(null==e?void 0:e.gridName)||""})),tc(t.length);case 11:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});(0,a.useEffect)(function(){F&&-1===td&&tm()},[F]),(0,a.useEffect)(function(){if(T.isReady)if(e$&&"string"==typeof T.query.index&&!Number.isNaN(parseInt(T.query.index))){if(-1!==td){var e=+T.query.index;e>=0&&e<tr.length&&tp(+T.query.index),tx(!0)}}else tx(!0)},[td,T.isReady]),(0,a.useEffect)(function(){var e;T.isReady&&(e9(e=!!e$),e?("true"===T.query.edit||T.query.adoptGrid||"true"===T.query.new)&&!e?T.push(U.VV):(eS("true"===T.query.edit),"true"===T.query.edit&&eA(T.query.adoptGrid),eG("true"===T.query.new),ty(!0)):(eG(!0),eS(!1),eA(""),eX(20),ty(!0)))},[T.isReady,T.query.adoptGrid,T.query.edit,T.query.new,T.query.index]);var tS=function(e){var t=null!=F&&F.getUser&&F.getUser.favoriteOrgs?JSON.parse(F.getUser.favoriteOrgs):null;t&&K((0,G.us)(t,e))},tb=(t=(0,r.A)(s().mark(function e(t){var n,r,i,a,u,o,d,c,l,f;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.nO8)(e$,t,null==F?void 0:F.getUser);case 2:n=e.sent,e6("grid ".concat(t),n),null!=n&&n.gridInfo&&n.gridInfo.length>0&&(P(r=n.gridInfo),R(t),tS(r),i=(null==n?void 0:n.gridName)||"My ".concat(I.KM),a=(0,j.IA)(r),u=(null==n?void 0:n.isPublic)||!1,o=(null==n?void 0:n.isSupportable)||!1,d=(null==n?void 0:n.isFeatured)||!1,c=(null==n?void 0:n.suspended)||!1,l=(null==n?void 0:n.keywords)||"",f=(null==n?void 0:n.totalSupportDonations)||0,z(n.id),H(i),Q((null==n?void 0:n.description)||""),er(u),ea(o),ed(d),ef(c),eh(l),ew(f),em&&eL(a));case 5:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),tI=function(){z(""),H("My ".concat(I.KM)),Q(""),P([]),R(-1),tS([]),er(!0),ea(!0),ed(!1),ef(!1),eh(""),ew(0),eG(!0),eS(!1),eA("")};(0,a.useEffect)(function(){var e,t=(e=(0,r.A)(s().mark(function e(){var t,n,i,a,u,o,d,c,l,f,p;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!ek){e.next=4;break}return eL([]),tt(!0),e.abrupt("return");case 4:return t=function(){var e=(0,r.A)(s().mark(function e(t,n){var r,i,a,u,o;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return q(!0),e.next=3,(0,A.Vgo)(t);case 3:null!=(r=e.sent)&&r.gridInfo&&r.gridInfo.length>0&&(i=r.gridInfo,(0,j.vA)(i),a=(null==r?void 0:r.gridName)||"",u=(null==r?void 0:r.description)||"",o=n.length>0?(0,j.cn)(i,n):i,Q(u),H(a),eL(o),tp(r.ownerId===e$?r.gridIndex||0:-1)),q(!1);case 6:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),e.next=7,(0,A.nO8)(e$,tf,null==F?void 0:F.getUser);case 7:if(n=e.sent,e6("grid ".concat(tf),n),!(null!=n&&n.gridInfo&&n.gridInfo.length>0)){e.next=39;break}if(P(i=n.gridInfo),R(tf),tS(i),!eI){e.next=19;break}return e.next=17,t(eI,i);case 17:e.next=37;break;case 19:a=(null==n?void 0:n.gridName)||"My ".concat(I.KM),u=(0,j.IA)(i),o=(null==n?void 0:n.isPublic)||!1,d=(null==n?void 0:n.isSupportable)||!1,c=(null==n?void 0:n.isFeatured)||!1,l=(null==n?void 0:n.suspended)||!1,f=(null==n?void 0:n.keywords)||"",p=(null==n?void 0:n.totalSupportDonations)||0,z(n.id),H(a),Q((null==n?void 0:n.description)||""),er(o),ea(d),ed(c),ef(l),eh(f),ew(p),em&&eL(u);case 37:e.next=42;break;case 39:if(!eI){e.next=42;break}return e.next=42,t(eI,[]);case 42:tt(!0);case 43:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});e$&&e4&&t()},[e$,eI,ek,T.isReady,eL,q,em,e4]),(0,a.useEffect)(function(){var e=function(e){!em&&!ek||eU||eE||eP||eF.current||(e.preventDefault(),e.returnValue="")};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}},[em,ek,eU,eE,eP]),(0,a.useEffect)(function(){var e=function(e){var t=T.asPath,n=new URLSearchParams(new URL(e,window.location.href).search),r="true"===n.get("edit"),i="true"===n.get("new");if((em&&em!==r||ek&&ek!==i)&&!eU&&!eE&&!eP&&!eF.current&&!window.confirm("You have unsaved changes. Are you sure you want to leave?"))throw window.history.pushState(null,"",t),T.events.emit("routeChangeError","Navigation cancelled by the user."),q(!1),"Navigation cancelled by the user."};return T.events.on("routeChangeStart",e),function(){T.events.off("routeChangeStart",e)}},[em,eU,eE,eP,T.asPath,T.events,ek]),(0,a.useEffect)(function(){var e=function(){eC(!1),eF.current=!1,q(!1)};return T.events.on("routeChangeComplete",e),function(){T.events.off("routeChangeComplete",e)}},[T.events]);var tA=(n=(0,r.A)(s().mark(function e(t){var n,r,i,a=arguments;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],r={},i=0,"createGrid"!==t){e.next=10;break}return e.next=6,(0,A.rBp)(e$,ek?-1:tf,null==F?void 0:F.getUser,e_,Y,J,!!ek||en,!!ek||es,!ek&&eo,eg,ek?0:ev,!0,n,!ek&&el);case 6:(r=e.sent)&&(i=r&&r.gridIndex?r.gridIndex:0),e.next=14;break;case 10:return e.next=12,(0,A.xvP)(e$,tf,null==F?void 0:F.getUser,e_,Y,J);case 12:r=e.sent,i=tf;case 14:P(e_),R(i),tS(e_),z(r.id),(0,k.Yg)(r.id,e$,ee),H(r.gridName||"My ".concat(I.KM)),Q(r.description||""),tm(),tp(i),q(!1),F?T.push("/".concat(U.m7,"?index=").concat(i)):n||window.location.reload();case 25:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),tj=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];eC(!0),ee(!0),q(!0),M.length!==e_.length||(0,j.rO)(M,e_)?tA("createGrid",e):tA("updateBackendUserGrid")},tk=(i=(0,r.A)(s().mark(function e(t,n,r){var i;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=9;break}if("login"!==t){e.next=8;break}return e.next=4,l.N.currentAuthenticatedUser();case 4:(i=e.sent)&&(e$=i.attributes.sub,eG(!1),eX(-1),tj()),e.next=9;break;case 8:"signUp"===t&&r&&(e$=r,eG(!1),eX(-1),tj(!0),eB(!0));case 9:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)});return(0,E.jsxs)(E.Fragment,{children:[em||ek?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(p.A,{gridDescription:J,gridItems:e_,gridTitle:Y,onSave:function(e){if(!e){q(!0),eC(!0),T.push("/".concat(U.m7)),q(!1);return}if(!e1)return void eV(!0);tj()},setGridDescription:Q,setGridItems:eL,setGridTitle:H,isPublic:en,isSupportable:es,isFeatured:eo,suspended:el,keywords:eg,totalSupportDonations:ev,edit:em,isNewGrid:ek,onRestart:function(){eF.current=!0,window.location.href="/".concat(U.m7,"?new=true")},nonUserMaxInteractions:eH,setIsSearching:eD,setIsOnPreferences:eM,numUserGrids:td}),(0,E.jsx)(S.A,{open:eT,setDialogOpen:eV,nextAfterLoginOrSignup:tk})]}):(0,E.jsxs)("div",{children:[(0,E.jsx)(b.A,{userGridNames:ta,currentGridIndex:tf,includeCreateNew:!0,handleChange:function(e){-1==+e.target.value?(tI(),T.push("/".concat(U.m7,"?new=true"))):(tp(+e.target.value),tb(+e.target.value))},positionRight:!0}),(0,E.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,E.jsx)(C.B,{container:!0,justifyContent:"center",children:te?(0,E.jsx)(u.A,{container:!0,direction:"column",children:(0,E.jsx)(u.A,{children:(0,E.jsx)(x.A,{activeGrid:L?(0,E.jsx)("div",{style:{height:e2.height,width:e2.width},className:"emptyGridContainer",children:(0,E.jsx)(y.A,{})}):e7?(0,E.jsx)("div",{style:{height:e2.height,width:e2.width},className:"emptyGridContainer",children:(0,E.jsx)(m.A,{})}):(0,E.jsxs)(u.A,{container:!0,sx:{width:e2.width},children:[(0,E.jsx)(u.A,{size:{xs:12}
1,children:(0,E.jsx)(g.A,{mixItUp:function(){},currGridObj:M,setCurrGridObj:function(){},height:e2.height,width:e2.width,aspectRatio:1,hideShuffle:!0})}),(0,E.jsx)(h.A,{page:U.m7,lambdaInProgress:$,gridID:W,gridOwnerID:e$,gridInfo:M,gridIndex:tf,isSupportable:es,setOpenGridQuickEdit:eZ}),(0,E.jsx)(v.A,{open:eQ,setOpen:eZ,gridName:Y,setGridName:H,gridDescription:J,setGridDescription:Q,isPublic:en,setIsPublic:er,isSupportable:es,setIsSupportable:ea,suspended:el,setSuspended:ef,userGridInfo:M,setUserGridInfo:P,userGridIndex:_})]}),pieChartData:M,gridWidth:e2.width,gridName:Y,userID:e$,gridDescription:J,showZeroOrgs:!0,suspended:el})})}):(0,E.jsxs)("div",{className:"loadingHeader",children:["Loading the ",I.KM.toLowerCase(),"..."]})})})]}),(0,E.jsx)(o.A,{"aria-labelledby":"dialog-content",open:ez,fullWidth:!0,maxWidth:"sm",onClose:function(){return eB(!1)},children:(0,E.jsx)(d.A,{children:(0,E.jsxs)(u.A,{container:!0,direction:"column",children:[(0,E.jsx)(u.A,{sx:{margin:"10px",textAlign:"center",fontSize:"larger",fontWeight:"700"},children:"Please Verify Your Email"}),(0,E.jsx)(u.A,{size:{xs:12},sx:{margin:"10px 10px 20px 10px",textAlign:"center"},children:"Thank you for signing up for an account. Please check your email and verify your email address, then login, before proceeding."}),(0,E.jsx)(u.A,{container:!0,size:{xs:12},flexDirection:"row",justifyContent:"center",alignItems:"center",sx:{margin:"10px 0 10px 0"},children:(0,E.jsx)(c.A,{variant:"contained",color:"inherit",onClick:function(){return eB(!1)},sx:{minWidth:"100px",marginLeft:"20px"},children:"Okay"})})]})})})]})}}},e=>{e.O(0,[186,609,4370,6090,8872,2940,5292,2220,2096,989,8797,9782,1535,4033,9857,5578,4655,8300,636,6593,8792],()=>e(e.s=29660)),_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.