PageSourceSearch

https://www.causes.com/_next/static/chunks/pages/mywallet-6855bc34bf6ced09.js

js causes.com collected 2026-09-24 08:35:17 UTC 43,059 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7929],{13755:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(82893),a=n(37876);let r=(0,i.A)((0,a.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"}),"TipsAndUpdatesOutlined")},23362:(e,t,n)=>{"use strict";n.d(t,{X:()=>d,o:()=>c});var i=n(63857),a=n(43081),r=n.n(a),o=n(14232),s=n(31866),l=n(84091),c=function(e,t){var n=(0,o.useState)([]),i=n[0],a=n[1],r=(0,o.useState)(!0),c=r[0],d=r[1],p=(0,o.useState)(null),u=p[0],x=p[1];return(0,o.useEffect)(function(){d(!0);var t,n=null==e||null==(t=e.getUser)?void 0:t.id;n&&(0,l.ZeB)(u,n,{status:{eq:s.Y3}}).then(function(e){var t=[];e&&e.items&&e.items.forEach(function(e,n){if(e&&e.statusHistory){var i=e.txnAmount/100,a=JSON.parse(e.statusHistory),r=a[s.Y3]?new Date(a[s.Y3]).toLocaleDateString():null;r&&t.push({id:n,amount:i,date:r})}}),a(i.concat(t)),x((null==e?void 0:e.nextToken)||null),d(!1)})},[t,e]),{loading:c,totalTxns:i,nextToken:u}},d=function(){var e=(0,i.A)(r().mark(function e(t,n,i){var a,o,s,c,d,p,u,x,h,m,g;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=[],o=null,!i){e.next=12;break}return c={and:(s=["collected","transferred-donate","deposited-wallet"]).map(function(e){return{status:{ne:e}}})},d={or:s.map(function(e){return{status:{eq:e}}})},p=n?c:d,e.next=9,(0,l.ZeB)(t,i,p);case 9:if(x=null==(u=e.sent)?void 0:u.items){for(h=0,m=x.length-1;m>=0;m--)(g=x[m])&&(n?g.walletBalance="Pending":(h+=g.userCommission?g.userCommission/100:g.txnAmount/100,g.walletBalance="$".concat(h.toFixed(2))),a[m]=g);o=(null==u?void 0:u.nextToken)||null}case 12:return e.abrupt("return",{results:a,nextToken:o});case 13:case"end":return e.stop()}},e)}));return function(t,n,i){return e.apply(this,arguments)}}()},25459:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ej});var i=n(42969),a=n(63857),r=n(43081),o=n.n(r),s=n(14232),l=n(59782),c=n(50694),d=n(50923),p=n(82893),u=n(37876);let x=(0,p.A)((0,u.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var h=n(64937),m=n(29492),g=n(65484),f=n(81490),A=n(96743),y=n(68572),v=n(52189),j=n(54587),b=n.n(j),w=n(89099),C=n(46885),S=n(31866),B=n(23362),O=n(44128),k=n(8257),F=n(6922),N=n(63562),T=n(94555),P=n(57683),D=n(45793),W=(0,P.Ay)(A.A)(function(e){var t=e.theme;return{zIndex:1,padding:"32px",width:"100%",maxWidth:"1028px",borderRadius:"8px","@media (max-width:621px)":{borderRadius:0,padding:"10px"},".walletActionContainer":{borderBottom:"1px solid ".concat(D.A2)},".walletActionGrid":{"@media (min-width:765px)":{flexGrow:0,maxWidth:"50%",flexBasis:"50%"},"@media (max-width:764px)":{flexGrow:0,maxWidth:"100%",flexBasis:"100%"}},".walletActionGrid.left":{paddingBottom:0,marginBottom:"30px",borderRight:"1px solid ".concat(D.A2),borderBottom:"none","@media (max-width:764px)":{paddingBottom:"30px",marginBottom:0,borderRight:"none",borderBottom:"1px solid ".concat(D.A2)}},".walletActionGrid.right":{paddingTop:0,paddingBottom:0,marginBottom:"30px",textAlign:"center","@media (max-width:764px)":{paddingTop:"35px",paddingBottom:"30px",marginBottom:0}},".walletGridContainer":{width:"320px",margin:"auto"},".creditCard":{width:"340px",height:"183px",borderRadius:"8px",backgroundImage:"linear-gradient(to bottom right, rgba(53, 52, 148,1) 50%, #6161a2 50%)",padding:"35px 30px 30px 30px"},".cardGreetingText":{color:"#FFFFFF",whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis"},".cardBalanceText":{fontSize:"20px",color:"#FFFFFF",paddingTop:"8px"},".cardBalanceContainer":{color:"#FFFFFF",alignItems:"center",paddingTop:"8px"},".cardBalanceItem":{paddingRight:"20px"},".cardBalanceNumber":{fontSize:"40px",lineHeight:1},".cardBottomRow":{justifyContent:"space-between"},".cardBottomLeft":{paddingRight:"5px"},".cardPendingAmount":{fontSize:"12px",color:"#FFFFFF",display:"inline-block",paddingRight:"7px"},".cardInfoIcon":{verticalAlign:"middle",color:"#FFFFFF",width:"16px",height:"16px"},".donationTitleText":{fontWeight:500,fontSize:"23px",paddingTop:"38px","@media (max-width:764px)":{paddingTop:"28px"}},".donationInstructionsText":{paddingTop:"15px",paddingBottom:"24px",maxWidth:"395px",lineHeight:"18.75px","@media (max-width:764px)":{paddingTop:"12px"}},".minimumBold":{fontWeight:700},".clickHere":{fontWeight:700},".donationActionsContainer":{justifyContent:"space-between",alignItems:"center",maxWidth:"340px"},".cashOutButton":{fontSize:"14px",fontWeight:400,color:"#000000 !important",display:"inline-block"},".donationHelpIcon":{verticalAlign:"middle",color:"#000000",width:"20px",height:"20px"},".gridName":{fontSize:"20px"},".historyTitleText":{fontWeight:500,fontSize:"23px",paddingTop:"32px"},".historyContainer":{paddingTop:"32px",paddingBottom:"24px",borderBottom:"1px solid ".concat(D.A2),maxWidth:"none",overflowX:"auto","@media (max-width:764px)":{paddingTop:"16px"}},".historyItem":{textAlign:"center",position:"relative",overflow:"visible",height:"207px"},".historyCard":{padding:"40px 25px 32px 25px",borderColor:t.palette.primary.main,borderRadius:"8px",width:"160px",height:"205px"},".semicircleContainer":{position:"absolute",width:"25px",height:"25px",border:"solid #353494 1px",backgroundColor:"#FFFFFF",borderRadius:"50%",top:"calc(50% - 12.5px)"}
1,".semicircleContainer.left":{left:"-12.5px"},".semicircleContainer.right":{right:"-12.5px"},".semicircleOverlap":{position:"absolute",top:"-1px",width:"12.5px",height:"25px",border:"solid #FFFFFF 1px",backgroundColor:"#FFFFFF"},".semicircleOverlap.left":{left:"-1px"},".semicircleOverlap.right":{right:"-1px"},".historyDetailsContainer":{justifyContent:"space-between",height:"100%"},".historyAmount":{fontSize:"18px",fontWeight:700},".historyDate":{fontSize:"18px"},".cashBackTermsText":{fontSize:"12px",paddingTop:"24px"},".cashBackTermsLink":{display:"inline-block",fontWeight:700,textDecoration:"none"}}});let I=function(e){var t,n=e.payoutBalance,i=e.walletBalance,a=e.pendingBalance,r=e.setWalletState,o=e.activeGrid,l=e.disableDonate,c=e.showCashout,p=(e.gridName,e.gridID),j=e.gridInfo,P=e.gridIndex,D=e.isSupportable,I=(0,T.S)(),z=I.user,E=I.isMobileApp,R=null==z?void 0:z.getUser,L=(null==R?void 0:R.id)||"",M=(0,s.useState)(0),H=M[0],G=M[1],_=(0,B.o)(z,H),U=_.loading,Y=_.totalTxns,V=_.nextToken,X=(0,s.useRef)(null),K=(0,s.useCallback)(function(e){!U&&(X.current&&X.current.disconnect(),X.current=new IntersectionObserver(function(e){e[0].isIntersecting&&V&&G(function(e){return e+1})}),e&&X.current.observe(e))},[U,V]),$=(0,s.useState)(!1),q=$[0],J=$[1],Z=(0,w.useRouter)(),Q=n<S.rr,ee=i<S.cv,et=n<0?0:n,en=function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e)};return(0,u.jsxs)(W,{children:[(0,u.jsxs)(f.A,{container:!0,className:"walletActionContainer",children:[(0,u.jsxs)(f.A,{className:"walletActionGrid left",size:{xs:12,md:6},children:[(0,u.jsxs)(A.A,{className:"creditCard",children:[(0,u.jsxs)(g.A,{className:"cardGreetingText",children:["Hi, ",(0,k.J3)(),"!"]}),(0,u.jsx)(g.A,{className:"cardBalanceText",children:"Your wallet balance is:"}),(0,u.jsx)(f.A,{container:!0,className:"cardBalanceContainer",children:(0,u.jsx)(f.A,{className:"cardBalanceItem",children:(0,u.jsx)(g.A,{className:"cardBalanceNumber",children:en(i)})})}),(0,u.jsxs)(f.A,{container:!0,className:"cardBottomRow",children:[(0,u.jsxs)(f.A,{className:"cardBottomLeft",children:[(0,u.jsxs)(g.A,{className:"cardPendingAmount",children:["$",a.toFixed(2)," pending"]}),(0,u.jsx)(y.A,{title:"Pending charges vary by store but typically take 1-2 weeks to post. Check your activity page for the latest updates.",enterTouchDelay:0,children:(0,u.jsx)(m.A,{className:"cardInfoIcon"})})]}),(0,u.jsx)(f.A,{children:(0,u.jsx)(b(),{width:37,height:22,alt:"Causes Logo",src:F.A.src})})]})]}),(0,u.jsx)(g.A,{className:"donationTitleText",children:ee?"Want to donate what's in your wallet?":"You have enough funds to donate!"}),ee?(0,u.jsxs)(g.A,{className:"donationInstructionsText",children:["You need a balance of at least ",(0,u.jsx)("span",{className:"minimumBold",children:"$10.00"})," in your wallet. Add to it and donate today!"]}):(0,u.jsxs)(g.A,{className:"donationInstructionsText",children:["You have met the minimum of at least ",(0,u.jsx)("span",{className:"minimumBold",children:"$10.00"})," in your wallet. Click below to donate to your ",S.KM,", or select Cash-out if you wish to keep the change."]}),(0,u.jsxs)(f.A,{container:!0,className:"donationActionsContainer",children:[(0,u.jsx)(f.A,{children:ee?(0,u.jsx)(v.A,{disabled:l,variant:"contained",color:"primary",size:"large",startIcon:(0,u.jsx)(x,{}),onClick:function(){E?d.Browser.open({url:"".concat(O.zx).concat(O.IW,"?fillItUp=true&index=").concat(P)}):Z.push({pathname:"".concat(O.IW),query:{fillItUp:!0,index:P}})},children:"Add and Donate"}):(0,u.jsx)(v.A,{disabled:l||!S.Bo,variant:"contained",color:"primary",size:"large",onClick:function(){E?d.Browser.open({url:"".concat(O.zx).concat(O.IW,"?walletDonation=true&index=").concat(P)}):Z.push({pathname:"".concat(O.IW),query:{walletDonation:!0,index:P}})},children:S.Bo?"Donate Now":"Donations Disabled"})}),c&&(0,u.jsxs)(f.A,{children:[(0,u.jsxs)(v.A,{disabled:Q,onClick:function(){J(!0)},className:"cashOutButton",sx:{textDecoration:Q?"none":"underline"},children:["Cash-Out ",Q?" not available":" $".concat(et.toFixed(2))]}),(0,u.jsx)(y.A,{title:(t="You need at least $10.00 in Cash-Out amounts in order to cash-out. You currently have ".concat(en(et),"."),(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(g.A,{variant:"subtitle2",children:[Q?t:""," Cash-Out amounts occur on a different cadence and may reflect a different amount than your wallet balance."]})})),enterTouchDelay:0,children:(0,u.jsx)(h.A,{className:"donationHelpIcon"})})]})]})]}),(0,u.jsx)(f.A,{className:"walletActionGrid right",size:{xs:12,md:6},children:(0,u.jsxs)("div",{className:"walletGridContainer",children:[o,(0,u.jsx)(N.A,{page:"mywallet",gridID:p,gridOwnerID:L,gridInfo:j,gridIndex:P,isSupportable:D})]})})]}),(0,u.jsx)(g.A,{className:"historyTitleText",children:"Wallet Donation History"}),(0,u.jsx)(f.A,{container:!0,wrap:"nowrap",className:"historyContainer",gap:4,children:Y.length?Y.map(function(e,t){return(0,u.jsx)(f.A,{className:"historyItem",ref:Y.length===t+1?K:null,children:(0,u.jsxs)(A.A,{variant:"outlined",className:"historyCard",children:[(0,u.jsx)("div",{className:"semicircleContainer left",children:(0,u.jsx)("div",{className:"semicircleOverlap left"})}),(0,u.jsx)("div",{className:"semicircleContainer right",children:(0,u.jsx)("div",{className:"semicircleOverlap right"})}),(0,u.jsxs)(f.A,{container:!0,direction:"column",className:"historyDetailsContainer",children:[(0,u.jsx)(f.A,{children:(0,u.jsx)(g.A,{className:"historyAmount",children:en(e.amount)})}),(0,u.jsxs)(f.A,{children:[(0,u.jsx)(g.A,{className:"historyDate",children:"Donated on"}),(0,u.jsx)(g.A,{className:"historyDate",children:e.date})]})]})]})},e.id)}):(0,u.jsx)(g.A,{children:"You have not made a wallet donation yet. Add to it and donate today!"})}),(0,u.jsx)(C.A,{open:q,onClose:function(){return J(!1)},leftOptionFunction:function(){return J(!1)},rightOptionFunction:function(){r("cashout"),J(!1)},message:(0,u.jsx)(function(){return(0,u.jsx)(g.A,{align:"center",children:"By cashing-out, this money will not be donated to the causes in your ".concat(S.KM,'. To change this and donate\n      your money, click the "No, I want to donate" button.')})},{}),dialogTitle:(0,u.jsx)(function(){return(0,u.jsxs)(g.A,{gutterBottom:!0,align:"center",variant:"h5",sx:{fontWeight:"bold",margin:"10px"}
1,children:["You are choosing ",(0,u.jsx)("em",{children:"not"})," to donate your cash-back to your ",S.KM,". Are you sure you wish to continue?"]})},{}),leftOptionText:"No, I want to donate",rightOptionText:"Yes, I want the cash"})]})};var z=n(45751),E=n(41930),R=n(71090),L=n(14970);let M=(0,p.A)((0,u.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch");var H=n(39548),G=n(34711),_=n(65401),U=n(81195),Y=n(3412),V=n(60758),X=n(88992),K=n(91408),$=n(48969),q=n(62796),J=n(84091);let Z={src:"/_next/static/media/paypalLogo.938ec1b5.png"};var Q=n(21911),ee=(0,P.Ay)("div")(function(e){return{backgroundColor:e.theme.palette.grey[50]}}),et=(0,P.Ay)(Q.A)({paddingTop:"65px",paddingBottom:"120px"}),en=(0,P.Ay)(g.A)(function(e){return{display:"inline-block",borderBottom:"solid",borderBottomColor:e.theme.palette.primary.light}}),ei=(0,P.Ay)(f.A)(function(e){return e.theme,{paddingTop:"30px",paddingBottom:"30px"}}),ea=(0,P.Ay)(g.A)(function(e){return{color:e.theme.palette.grey[700]}}),er=(0,P.Ay)(f.A)({paddingBottom:"35px"});(0,P.Ay)(f.A)({display:"flex",justifyContent:"flex-end"}),(0,P.Ay)(f.A)({display:"flex",justifyContent:"space-between",alignItems:"center"});var eo=(0,P.Ay)(f.A)({paddingTop:"35px",paddingBottom:"75px"});(0,P.Ay)("img")({objectFit:"cover",width:"170px",height:"170px"});let es=function(e){var t=e.paymentInfo,n=e.email;return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ee,{children:(0,u.jsxs)(et,{maxWidth:"md",children:[(0,u.jsx)(en,{variant:"h5",children:"Cash-Out Details"}),(0,u.jsx)(Y.A,{}),(0,u.jsxs)(ei,{container:!0,children:[(0,u.jsxs)(f.A,{container:!0,size:{xs:12,md:6},children:[(0,u.jsxs)(f.A,{size:6,children:[(0,u.jsx)(ea,{noWrap:!0,variant:"subtitle1",children:"Date"}),(0,u.jsx)(g.A,{noWrap:!0,variant:"subtitle1",children:new Date().toLocaleDateString()})]}),(0,u.jsxs)(f.A,{size:6,children:[(0,u.jsx)(ea,{noWrap:!0,variant:"subtitle1",children:"Confirmation Number"}),(0,u.jsx)(g.A,{noWrap:!0,variant:"subtitle1",children:t.payoutId})]})]}),(0,u.jsxs)(f.A,{container:!0,size:{xs:12,md:6},children:[(0,u.jsxs)(f.A,{size:6,children:[(0,u.jsx)(ea,{noWrap:!0,variant:"subtitle1",children:"Account Type"}),(0,u.jsx)(g.A,{noWrap:!0,variant:"subtitle1",children:"PayPal"})]}),(0,u.jsxs)(f.A,{size:6,children:[(0,u.jsx)(ea,{noWrap:!0,variant:"subtitle1",children:"Name"}),(0,u.jsx)(g.A,{variant:"subtitle1",children:(0,k.J3)()})]})]})]}),(0,u.jsx)(er,{container:!0,children:(0,u.jsx)(f.A,{container:!0,size:{xs:12,sm:12,md:12}})}),(0,u.jsx)(Y.A,{}),(0,u.jsxs)(eo,{container:!0,children:[(0,u.jsx)(f.A,{container:!0,size:{lg:6,md:7,xs:6},alignItems:"center",justifyContent:"flex-end",children:(0,u.jsx)(g.A,{noWrap:!0,variant:"h6",children:"Total Cash-Back:"})}),(0,u.jsx)(f.A,{container:!0,size:{md:3,xs:6,sm:4},alignItems:"center",justifyContent:"flex-end",children:(0,u.jsxs)(g.A,{noWrap:!0,variant:"h6",children:["$",t.amount]})})]}),(0,u.jsx)(Q.A,{maxWidth:"sm",children:(0,u.jsxs)(g.A,{variant:"h6",align:"center",children:["Your cash-back will be sent to the PayPal account ",(0,u.jsx)("strong",{children:n})," within 1-3 business days."]})})]})})})};var el=n(54202),ec=n(82817);let ed=function(e){var t=e.payoutInfo,n=e.setWalletState,i=e.email,a=function(){v.A};return(0,u.jsx)("div",{children:t.statusCode===ec.paypalAccountNotFoundStatusCode?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{children:["The email you provided does not have a verified"," ",(0,u.jsxs)(U.A,{href:S._0,target:"_blank",rel:"noreferrer",underline:"hover",children:["PayPal ",(0,u.jsx)(M,{sx:{fontSize:"12px"}})]})," ","account. Please either sign up for an account or verify that the email entered is correct."," "]}),a()]}):t.statusCode===ec.paypalPayoutFailedStatusCode?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{children:["There was an error processing the cash out. Your ",S.$i," balance has not been affected. Please contact",S.$i," support."]}),a()]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(el.A,{userEmail:i,cashout:!0,setWalletState:n}),(0,u.jsx)(es,{email:i,paymentInfo:t})]})})};function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ep(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ex=K.Ik().shape(eu(eu({},q.R0),q.lj));let eh=function(e){var t,n,i,r,l,c,d=e.userID,p=e.paypalAddress,x=e.amount,h=e.setPayPalAddress,m=e.setWalletState,A=e.fetchUserInfo,y=(0,s.useState)(!!p),j=y[0],b=y[1],w=(0,s.useState)(!1),C=w[0],B=w[1],O=(0,s.useState)({statusCode:0,amount:"",payoutId:""}),k=O[0],F=O[1],N=(0,H.A)(),P=(0,G.A)(N.breakpoints.down("md")),D=(0,X.mN)({resolver:(0,R.t)(ex)}),W=D.handleSubmit,I=D.control,z=D.formState.errors,K=(0,T.S)().setLoadingSpinner,q=(t=(0,a.A)(o().mark(function e(t){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return K(!0),e.next=3,(0,J.Gjm)(d,{paypalAddress:t.paypalEmail}).then(function(){p=t.paypalEmail,h(t.paypalEmail),b(!0)}).catch(function(e){console.log("error updating user paypal address:",e)});case 3:K(!1);case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),Q=(n=(0,a.A)(o().mark(function e(){var t,n,i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return K(!0),e.next=3,V.n.graphql({authMode:E.Tv.AMAZON_COGNITO_USER_POOLS,query:$._F,variables:{updateType:"payout",donateAmount:0}});case 3:t=e.sent,A(d),i=(n=t.data.triggerUpdateCollectedTxns).statusCode,F({statusCode:i,amount:n.amount,payoutId:n.txnId}),B(!0),K(!1);case 9:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),ee=function(e,t,n,i){return(0,u.jsx)(X.xI,{name:e,control:I,rules:{required:!0},defaultValue:"",render:function(e){var a=e.field;return(0,u.jsx)(_.A,eu(eu({},a),{},{variant:"outlined",required:!0,sx:{width:"100%",maxWidth:"425px",margin:"15px 0 15px 0",display:"flex"},label:t,autoFocus:!0,error:n,helperText:i}))}})};return(0,u.jsx)(f.A,{container:!0,justifyContent:"center",children:(0,u.jsx)(f.A,{size:{xs:12,sm:12,md:10,lg:8},sx:{textAlign:"center",padding:"".concat(P?"0":"100px"," 30px 100px 30px")},children:C?(0,u.jsx)(ed,{payoutInfo:k,setWalletState:m,email:p}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(g.A,{gutterBottom:!0,align:"center",variant:"h4",sx:{fontWeight:"bold",margin:"10px"},children:"Review & Confirm Cash-Out"}),(0,u.jsx)(g.A,{gutterBottom:!0,align:"center",variant:"subtitle1",children:"Please verify that the information below is correct. You should see the funds in your PayPal account in 1-5 business days."}),(0,u.jsxs)(f.A,{sx:{border:"solid 1px ".concat((null==N||null==(c=N.palette)||null==(c=c.grey)?void 0:c[500])||"#bcbcbc"),borderRadius:"8px",padding:"20px",position:"relative"},children:[(0,u.jsx)("img",{src:Z.src,alt:"PayPal Logo",style:{position:"absolute",width:"100px",top:"10px",left:"20px"}}),j?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(L.A,{sx:{position:"absolute",top:"10px",right:"20px"}}),(0,u.jsxs)(f.A,{container:!0,alignItems:"center",sx:{marginTop:"30px"},children:[(0,u.jsx)(f.A,{size:8,children:(0,u.jsxs)(g.A,{gutterBottom:!0,variant:"subtitle1",textAlign:"start",sx:{marginBottom:0},children:["Your cash-back will be sent to the PayPal account ",(0,u.jsx)("b",{children:" ".concat(p)})]})}),(0,u.jsx)(f.A,{size:4,onClick:function(){return b(!1)},children:(0,u.jsx)(v.A,{variant:"text",children:"Change PayPal Account"})})]})]}):(l=p?(0,u.jsxs)("span",{children:["Update your"," ",(0,u.jsxs)(U.A,{href:S._0,target:"_blank",rel:"noreferrer",underline:"hover",children:["PayPal ",(0,u.jsx)(M,{sx:{fontSize:"12px"}})]})," ","details below."," "]}):(0,u.jsxs)("span",{children:["You must have a"," ",(0,u.jsxs)(U.A,{href:S._0,target:"_blank",rel:"noreferrer",underline:"hover",children:["PayPal ",(0,u.jsx)(M,{sx:{fontSize:"12px"}})]})," ","account on file to receive cash-out. Please enter your PayPal details below."," "]}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f.A,{size:12,sx:{display:"flex",marginBottom:"15px",justifyContent:"center",alignItems:"center"},children:(0,u.jsx)(g.A,{gutterBottom:!0,variant:"subtitle1",sx:{marginTop:"30px",fontWeight:"bold",width:"100%",maxWidth:"425px"},children:l})}),(0,u.jsxs)("form",{id:"payoutConfirmation",onSubmit:W(q),style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center"},children:[ee("paypalEmail","Paypal Email",!!z.paypalEmail,z.paypalEmail?null==(i=z.paypalEmail)?void 0:i.message:""),ee("confirmPaypalEmail","Confirm Paypal Email",!!z.confirmPaypalEmail,z.confirmPaypalEmail?null==(r=z.confirmPaypalEmail)?void 0:r.message:""),(0,u.jsxs)(f.A,{children:[(0,u.jsx)(v.A,{variant:"contained",color:"primary",type:"submit",sx:{width:"100px",margin:"8px 20px 8px 0px"},children:"Save"}),(0,u.jsx)(v.A,{variant:"outlined",color:"primary",sx:{width:"100px",margin:"8px 0px 8px 20px"},onClick:function(){p?b(!0):m("")},children:"Cancel"})]})]})]}))]}),function(){if(j)return(0,u.jsxs)(f.A,{container:!0,style:{width:"100%",display:"flex",marginTop:"50px",flexDirection:"column"},justifyContent:"center",children:[(0,u.jsx)(Y.A,{style:{width:"100%",marginBottom:"25px"}}),(0,u.jsxs)(g.A,{variant:"h6",align:"center",sx:{fontSize:"1.25rem",marginBottom:"15px"},children:["Total Amount: $",x.toFixed(2)]}),(0,u.jsxs)(f.A,{children:[(0,u.jsx)(v.A,{variant:"contained",color:"primary",onClick:Q,sx:{width:"auto",margin:"8px 20px 8px 0px"},children:"Confirm Cash-Out"}),(0,u.jsx)(v.A,{variant:"outlined",color:"primary",sx:{width:"100px",margin:"8px 0px 8px 20px"},onClick:function(){return m("")},children:"Cancel"})]})]})}()]})})})};var em=n(46185),eg=n(60696),ef=n(69592),eA=n(38233);function ey(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ev(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ey(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ey(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let ej=function(){var e,t=(0,T.S)(),n=t.fetchUserInfo,i=t.user,r=null==i?void 0:i.getUser,d=(0,s.useState)(""),p=d[0],x=d[1],h=(0,s.useState)(""),m=h[0],g=h[1],f=(0,s.useState)([]),A=f[0],y=f[1],v=(0,s.useState)(0),j=v[0],b=v[1],w=(0,s.useState)([]),C=w[0],S=w[1],B=(0,s.useState)(!1),O=B[0],F=B[1],N=function(e){var t,n,i=null==r||null==(t=r.grid)?void 0:t.items;if(i){var a=(null==r?void 0:r.gridSet)||[];if(a){var o=a[e];n=i.find(function(e){return(null==e?void 0:e.id)===o})}else n=i[0];n&&(x(n.gridName||""),g(n.id||""),y(n.gridInfo||[]),F(n.isSupportable||!1))}},P=(e=(0,a.A)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=10;break}return e.next=3,(0,J.DHd)(r.id,r);case 3:return e.sent,e.next=6,(0,J.qC1)(r.id,r);case 6:S(e.sent.map(function(e){return(null==e?void 0:e.gridName)||""})),N(0);case 10:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});(0,s.useEffect)(function(){P()},[r]);var D=(0,s.useState)(""),W=D[0],E=D[1],R=(0,s.useState)(""),L=R[0],M=R[1],H=(0,s.useState)({donationAmount:0,cardholderName:"",date:(0,eg.LV)()}),G=H[0],_=H[1],U=(0,s.useState)(""),Y=(U[0],U[1]);(0,s.useEffect)(function(){null!=r&&r.id&&(null!=r&&r.donateBalance&&_(ev(ev({},G),{},{donationAmount:(null==r?void 0:r.donateBalance)/100})),null!=r&&r.paypalAddress&&M(r.paypalAddress))},[i]),(0,s.useEffect)(function(){if("donate"===W&&null!=r&&r.grid){var e=null==r?void 0:r.id,t=null!=r&&r.grid.items?null==r?void 0:r.grid.items.filter(function(e){return e&&("number"==typeof e.gridIndex?e.gridIndex===j:0===j)}):null,n=t?t[0]:null;(0,k.fT)(Y,(0,ef.Gj)(e,(null==n?void 0:n.id)||""),e)}},[W]);var V=function(e){b(+e.target.value),N(+e.target.value)};return(0,u.jsx)(eA.A,{children:"cashout"===W?(0,u.jsx)(eh,{fetchUserInfo:n,userID:(null==r?void 0:r.id)||"",paypalAddress:L,amount:(null==r?void 0:r.payoutBalance)/100||0,setPayPalAddress:M,setWalletState:E}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(c.A,{user:i}),(0,u.jsx)("div",{className:"accountPageWrapper",children:(0,u.jsx)(I,{showCashout:!!(null==r?void 0:r.cashOut),activeGrid:(0,u.jsx)(function(){return A.length>0?(0,u.jsxs)("div",{style:{position:"relative"},children:[(0,u.jsx)(em.A,{userGridNames:C,currentGridIndex:j,handleChange:V,gapAbove:"small"}),(0,u.jsx)(l.A,{mixItUp:function(){},hideShuffle:!0,donationAmount:G.donationAmount,currGridObj:A,setCurrGridObj:function(){},height:320,width:320,aspectRatio:1})]}):(0,u.jsx)("div",{style:{height:"320px",width:"320px",margin:"auto"},children:(0,u.jsx)(z.A,{wallet:!0})})},{}),payoutBalance:(null==r?void 0:r.payoutBalance)/100||0,walletBalance:(null==r?void 0:r.donateBalance)/100||0,pendingBalance:(null==r?void 0:r.pendingBalance)/100||0,setWalletState:E,disableDonate:A.length<1,gridName:p,gridID:m,gridInfo:A,gridIndex:j,isSupportable:O})})]})})}},29492:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(82893),a=n(37876);let r=(0,i.A)((0,a.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},30764:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(82893),a=n(37876);let r=(0,i.A)((0,a.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined")},38233:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(57683),a=n(12691);let r=(0,i.Ay)("div")(function(e){return e.theme,{paddingBottom:"55px",position:"relative",marginTop:"".concat(a.Ce,"px"),".accountPageWrapper":{display:"flex",justifyContent:"center",padding:"0px 5px","@media (max-width:621px)":{padding:0},minHeight:"992px"},".resetPasswordWrapper":{maxWidth:"1028px",position:"relative",margin:"auto",padding:"18px 5px 0px 5px"},".resetPasswordText":{display:"inline-block",paddingRight:"24px"}}})},45751:(e,t,n)=>{"use strict";n.d(t,{A:()=>g}),n(14232);var i=n(65484),a=n(81490),r=n(52189),o=n(48230),s=n.n(o),l=n(31866),c=n(8257),d=n(19189),p=n(44128),u=n(23215),x=n(42969),h=(0,n(13310).A)(function(e){var t,n,i,a,r,o,s;return{emptyGridContainer:{backgroundColor:(null==e||null==(t=e.palette)||null==(t=t.grey)?void 0:t[200])||"#eeeeee",padding:"20px",textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center"},emptyHeader:(0,x.A)({fontSize:"24px",fontWeight:700,lineHeight:1.25,color:(null==e||null==(n=e.palette)||null==(n=n.primary)?void 0:n.main)||"rgba(53, 52, 148,1)",marginBottom:"24px"},(null==e||null==(i=e.breakpoints)||null==(a=i.down)?void 0:a.call(i,"sm"))||"@media (max-width:599.95px)",{fontSize:"24px"}),emptySubHeader:(0,x.A)({fontSize:"16px",color:(null==e||null==(r=e.palette)||null==(r=r.primary)?void 0:r.main)||"rgba(53, 52, 148,1)",marginBottom:"24px"},(null==e||null==(o=e.breakpoints)||null==(s=o.down)?void 0:s.call(o,"sm"))||"@media (max-width:599.95px)",{fontSize:"16px"}),buttonContainer:{justifyContent:"space-around",textAlign:"center"}}}),m=n(37876);let g=function(e){var t=e.wallet,n=void 0!==t&&t,o=h(),x=(0,d.A)(u.pc),g=(0,c.F6)(),f=g?"/".concat(p.m7,"?new=true"):p.uF,A=g?"Build a ".concat(l.KM):"Join Now";return(0,m.jsxs)("div",{className:o.emptyGridContainer,style:{width:n?320:x.width,height:n?320:x.height},children:[(0,m.jsxs)(i.A,{className:o.emptyHeader,children:["Create a ",l.KM," to customize your giving"]}),(0,m.jsx)(i.A,{className:o.emptySubHeader,children:"Explore a diverse range of charities, add them to your portfolio, and adjust your contributions according to your preferences—all in one convenient place."}),(0,m.jsx)(a.A,{container:!0,rowGap:2,className:o.buttonContainer,children:(0,m.jsx)(a.A,{size:12,children:(0,m.jsx)(s(),{href:f,passHref:!0,children:(0,m.jsx)(r.A,{variant:"contained",children:A})})})})]})}},46185:(e,t,n)=>{"use strict";n.d(t,{A:()=>h}),n(14232);var i=n(39548),a=n(34711),r=n(12524),o=n(79762),s=n(29562),l=n(97304),c=n(41842),d=n(31866),p=n(42969),u=(0,n(57683).Ay)(r.A)(function(e){var t=e.theme;return{".switchGridMenu":{minWidth:"150px",maxWidth:"300px",margin:"30px auto 10px",label:{paddingRight:"5px",background:"white"}},".gapAbove5":{marginTop:"5px"}
1,".gapBelow30":{marginBottom:"30px"},".positionRight":(0,p.A)({position:"fixed",top:"70px",right:"40px",width:"110px",minWidth:"110px"},t.breakpoints.down("md"),{position:"relative",top:"0",right:"0",width:"unset",minWidth:"150px",maxWidth:"300px"})}}),x=n(37876);let h=function(e){var t=e.userGridNames,n=e.currentGridIndex,p=e.includeCreateNew,h=e.isOwner,m=e.handleChange,g=e.positionRight,f=void 0!==g&&g,A=e.gapAbove,y=e.gapBelow,v=e.showGridNames,j=void 0===v?[]:v,b=(0,i.A)(),w=(0,a.A)(b.breakpoints.down("md")),C=t.length,S=function(e){var n=f&&!w?"".concat(e+1," of ").concat(C):0===j.length||j[e]?t[e]:"Private ".concat(d.KM);return 0===j.length||j[e]?n:"(".concat(n,")")};return(0,x.jsx)(u,{children:(0,x.jsx)(r.A,{className:"switchGridMenu".concat("small"===A?" gapAbove5":"").concat("medium"===y?" gapBelow30":"").concat(f?" positionRight":""),children:(0,x.jsxs)(o.A,{fullWidth:!0,children:[(0,x.jsxs)(s.A,{id:"demo-simple-select-label",children:[void 0===h||h?"Your ":"",d.KM,"s"]}),(0,x.jsxs)(c.A,{labelId:"grid-index-select-label",id:"grid-index-select",value:C>0?n.toString():"",label:"Grid",onChange:m,renderValue:function(e){return S(+e)},children:[t.map(function(e,t){return(0,x.jsx)(l.A,{value:t,children:S(t)},t)}),void 0!==p&&p&&(0,x.jsx)(l.A,{value:-1,children:(0,x.jsx)("i",{children:"Create New"})},-1)]})]})})})}},49594:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i={src:"/_next/static/media/circleCheckmark.b95ea748.png",height:240,width:240,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEVDscdEs8lEtstDs8hEtMZMaXE/rcNDs8dDscVCsMZFts1HvdRFuM22i9B4AAAAC3RSTlP3s+r9LQAwp1SPzAXco9EAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAA3SURBVHicNctBDsAwCAPBNSSByPz/vVUr9T7DXgKtzQlnOg7ypCsElKsB5nbHgJw3cvRif/jvDytWATfLlcb5AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},50694:(e,t,n)=>{"use strict";n.d(t,{A:()=>g}),n(14232);var i=n(34711),a=n(39548),r=n(81490),o=n(65484),s=n(96743),l=n(48230),c=n.n(l),d=n(89099),p=n(44128),u=n(57683),x=n(45793),h=(0,u.Ay)("div")(function(e){var t=e.theme;return{".backgroundTop":{position:"absolute",width:"100%",height:"254px",backgroundColor:t.palette.primary.main},".backgroundBottom":{position:"absolute",width:"100%",top:"254px",height:"calc(100% - 254px)",backgroundColor:"#E5E5E5"},".navCardWrapper":{display:"flex",justifyContent:"center",padding:"32px 5px 24px 5px","@media (max-width:621px)":{padding:0}},".navCard":{zIndex:1,width:"100%",maxWidth:"1028px",padding:"32px 2px 0px 4px",borderRadius:"8px",boxShadow:"none","@media (max-width:621px)":{zIndex:2,padding:0,borderRadius:0,boxShadow:"0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px ".concat(x.A2)},".titleText":{fontWeight:700,fontSize:"23px",paddingLeft:"15px",paddingBottom:"5px"},".lifetimeText":{fontWeight:700,display:"inline-block",paddingRight:"12px"},".lifetimeAmount":{color:t.palette.primary.main,display:"inline-block",marginRight:"20px"},".linkText":{"&:hover":{cursor:"pointer",filter:"brightness(0.6)",boxShadow:"inset 0 0 100px 100px rgba(255, 255, 255, 0.1)"},padding:"10px 15px",marginRight:"15px",textDecoration:"none",fontSize:"20px",width:"auto",display:"inline-grid","@media (max-width:621px)":{padding:"10px 0px 6px 0px",marginRight:"0px",fontSize:"14px",fontWeight:600,width:"100%"},"@media (max-width:830px)":{marginRight:"5px"}}}}}),m=n(37876);let g=function(e){var t=e.user,n=(0,d.useRouter)().route,l=(0,i.A)("(max-width:621px)"),u=(0,a.A)(),x=function(e){var t,i=l?u.palette.primary.main:"#000000";return{color:n===e?i:(null==u||null==(t=u.palette)||null==(t=t.grey)?void 0:t[800])||"#00000099",fontWeight:n===e?700:400,borderBottomStyle:n===e?"solid":"none"}},g=null==t?void 0:t.getUser,f=(null==g?void 0:g.lifetimeDonations)/100||0,A=(null==f?void 0:f.toFixed(2))||"0.00";return t?(0,m.jsxs)(h,{children:[(0,m.jsx)("div",{className:"backgroundTop"}),(0,m.jsx)("div",{className:"backgroundBottom"}),(0,m.jsx)("div",{className:"navCardWrapper",children:(0,m.jsxs)(s.A,{raised:!0,className:"navCard",children:[!l&&(0,m.jsxs)(r.A,{container:!0,justifyContent:"space-between",children:[(0,m.jsx)(r.A,{children:(0,m.jsx)(o.A,{className:"titleText",children:"My A
1ccount"})}),(0,m.jsxs)(r.A,{children:[(0,m.jsx)(o.A,{className:"lifetimeText",children:"Lifetime Donations"}),(0,m.jsxs)(o.A,{className:"lifetimeAmount",children:["$",A]})]})]}),(0,m.jsx)(r.A,{container:!0,textAlign:l?"center":"left",children:[{text:"Profile",href:(0,p.FX)(t),sx:x("/users/[username]")},{text:"".concat(l?"":"Personal ","Info"),href:p.WR,sx:x(p.WR)},{text:"Settings",href:p.Xf,sx:x(p.Xf)},{text:"".concat(l?"":"My ","Donations"),href:p.fv,sx:x(p.fv)},{text:"Tax Doc",href:p.Ri,sx:x(p.Ri)}].map(function(e){return(0,m.jsx)(r.A,{size:{xs:l?2.2:"auto"},children:(0,m.jsx)(c(),{href:e.href,children:(0,m.jsx)(o.A,{className:"linkText",sx:e.sx,children:e.text})})},e.text)})})]})})]}):(0,m.jsx)(m.Fragment,{})}},53994:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(82893),a=n(37876);let r=(0,i.A)((0,a.jsx)("path",{d:"m18.19 12.44-3.24-1.62c1.29-1 2.12-2.56 2.12-4.32 0-3.03-2.47-5.5-5.5-5.5s-5.5 2.47-5.5 5.5c0 2.13 1.22 3.98 3 4.89v3.26c-2.15-.46-2.02-.44-2.26-.44-.53 0-1.03.21-1.41.59L4 16.22l5.09 5.09c.43.44 1.03.69 1.65.69h6.3c.98 0 1.81-.7 1.97-1.67l.8-4.71c.22-1.3-.43-2.58-1.62-3.18m-.35 2.85-.8 4.71h-6.3c-.09 0-.17-.04-.24-.1l-3.68-3.68 4.25.89V6.5c0-.28.22-.5.5-.5s.5.22.5.5v6h1.76l3.46 1.73c.4.2.62.63.55 1.06M8.07 6.5c0-1.93 1.57-3.5 3.5-3.5s3.5 1.57 3.5 3.5c0 .95-.38 1.81-1 2.44V6.5c0-1.38-1.12-2.5-2.5-2.5s-2.5 1.12-2.5 2.5v2.44c-.62-.63-1-1.49-1-2.44"}),"TouchAppOutlined")},54202:(e,t,n)=>{"use strict";n.d(t,{A:()=>b}),n(14232);var i=n(81490),a=n(21911),r=n(52189),o=n(65484),s=n(48230),l=n.n(s),c=n(31866),d=n(39533),p=n(42969),u=n(57683),x=(0,u.Ay)(a.A)({paddingTop:"30px",paddingBottom:"70px"}),h=(0,u.Ay)(i.A)(function(e){var t=e.theme;return(0,p.A)((0,p.A)({},t.breakpoints.down("md"),{padding:"0px 10px 0px 10px"}),"margin","-16px")}),m=(0,u.Ay)(i.A)({display:"flex",justifyContent:"center",alignSelf:"center",padding:"16px !important"}),g=(0,u.Ay)("img")({width:"45%"}),f=(0,u.Ay)(o.A)(function(e){var t=e.theme;return(0,p.A)({fontSize:"2.5rem",fontWeight:500},t.breakpoints.down("md"),{fontSize:"1.5rem",fontWeight:500})}),A=(0,u.Ay)(o.A)(function(e){var t=e.theme;return(0,p.A)({fontSize:"1.5rem",fontWeight:400},t.breakpoints.down("md"),{fontSize:"1rem",fontWeight:400})}),y=(0,u.Ay)(i.A)({marginTop:"2em",padding:"16px !important"}),v=n(49594),j=n(37876);let b=function(e){var t=e.userEmail,n=e.cashout,s=void 0!==n&&n,p=e.setWalletState,u=e.support,b=void 0!==u&&u,w=e.supportNext,C=e.donationFrequency,S=void 0===C?"":C;return(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(x,{maxWidth:"md",children:(0,j.jsxs)(h,{container:!0,direction:"column",alignContent:"center",spacing:4,children:[(0,j.jsx)(m,{size:12,children:(0,j.jsx)(g,{src:v.A.src,alt:"Email"})}),(0,j.jsx)(i.A,{sx:{padding:"16px !important"},children:(0,j.jsx)(f,{variant:"h4",align:"center",children:s?"Cash-Out Successful":"Thank you!"})}),(0,j.jsxs)(i.A,{sx:{padding:"16px !important"},children:[(0,j.jsxs)(A,{variant:"h6",align:"center",children:[s?"A money transfer has been initiated.":"Your donation was successful."," A confirmation email has been sent to ",(0,j.jsx)("strong",{children:t}),"."]}),b?(0,j.jsxs)(A,{variant:"h6",align:"center",sx:{marginTop:"20px",fontSize:"16px"},children:["This is a ","once"===S?"one-time":S," donation."," ","once"!==S?(0,j.jsxs)("span",{children:["Future payments will be made automatically at the beginning of each period until canceled, starting on ",(0,d.tU)(S),"."]}):null]}):null]}),(0,j.jsx)(y,{children:(0,j.jsx)(a.A,{sx:{maxWidth:"300px !important"},children:s&&p?(0,j.jsx)(r.A,{variant:"contained",color:"primary",fullWidth:!0,onClick:function(){return p("")},children:"Back to My Wallet"}):b?(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(A,{variant:"h6",align:"center",children:(0,j.jsxs)("a",{href:void 0===w?"":w,children:["Back to ",c.KM]})})}):(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(o.A,{align:"center",children:(0,j.jsx)(l(),{href:"/discover",children:(0,j.jsx)(r.A,{variant:"contained",color:"primary",fullWidth:!0,children:"Discover"})})})})})})]})})})}},59017:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(82893),a=n(37876);let r=(0,i.A)((0,a.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline")}
1,61662:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(82893),a=n(37876);let r=(0,i.A)((0,a.jsx)("path",{d:"m4.01 6.03 7.51 3.22-7.52-1zm7.5 8.72L4 17.97v-2.22zM2.01 3 2 10l15 2-15 2 .01 7L23 12z"}),"SendOutlined")},64937:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(82893),a=n(37876);let r=(0,i.A)((0,a.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline")},73794:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(82893),a=n(37876);let r=(0,i.A)((0,a.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History")},81195:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var i=n(59860),a=n(42969),r=n(27925),o=n(44478),s=n(14232),l=n(69241),c=n(13323),d=n(92179),p=n(30573),u=n(57683),x=n(39548),h=n(52169),m=n(44707),g=n(16542),f=n(65484),A=n(14457),y=n(21849);function v(e){return(0,y.Ay)("MuiLink",e)}var j=(0,A.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),b=n(77617),w=n(92181);let C=function(e){var t=e.theme,n=e.ownerState,i=n.color;if("colorSpace"in t&&t.colorSpace){var a=(0,b.Yn)(t,"palette.".concat(i,".main"))||(0,b.Yn)(t,"palette.".concat(i))||n.color;return t.alpha(a,.4)}var r=(0,b.Yn)(t,"palette.".concat(i,".main"),!1)||(0,b.Yn)(t,"palette.".concat(i),!1)||n.color,o=(0,b.Yn)(t,"palette.".concat(i,".mainChannel"))||(0,b.Yn)(t,"palette.".concat(i,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,w.X4)(r,.4)};var S=n(37876),B=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"];function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var F={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},N=function(e){var t=e.classes,n=e.component,i=e.focusVisible,a=e.underline,r={root:["root","underline".concat((0,p.A)(a)),"button"===n&&"button",i&&"focusVisible"]};return(0,c.A)(r,v,t)},T=(0,u.Ay)(f.A,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["underline".concat((0,p.A)(n.underline))],"button"===n.component&&t.button]}})((0,h.A)(function(e){var t=e.theme;return{variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:function(e){var t=e.underline,n=e.ownerState;return"always"===t&&"inherit"!==n.color},style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:function(e){var t=e.underline,n=e.ownerState;return"always"===t&&"inherit"===n.color},style:t.colorSpace?{textDecorationColor:t.alpha("currentColor",.4)}:null}].concat((0,o.A)(Object.entries(t.palette).filter((0,m.A)()).map(function(e){var n=(0,r.A)(e,1)[0];return{props:{underline:"always",color:n},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette[n].main,.4)}}})),[{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:(0,a.A)({position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(j.focusVisible),{outline:"auto"})}])}}));let P=s.forwardRef(function(e,t){var n=(0,g.b)({props:e,name:"MuiLink"}),a=(0,x.A)(),c=n.className,p=n.color,u=void 0===p?"primary":p,h=n.component,m=void 0===h?"a":h,f=n.onBlur,A=n.onFocus,y=n.TypographyClasses,v=n.underline,j=void 0===v?"always":v,b=n.variant,w=void 0===b?"inherit":b,O=n.sx,P=(0,i.A)(n,B),D=s.useState(!1),W=(0,r.A)(D,2),I=W[0],z=W[1],E=k(k({},n),{},{color:u,component:m,focusVisible:I,underline:j,variant:w}),R=N(E);return(0,S.jsx)(T,k(k({color:u,className:(0,l.A)(R.root,c),classes:y,component:m,onBlur:function(e){(0,d.A)(e.target)||z(!1),f&&f(e)},onFocus:function(e){(0,d.A)(e.target)&&z(!0),A&&A(e)},ref:t,ownerState:E,variant:w},P),{},{sx:[].concat((0,o.A)(void 0===F[u]?[{color:u}]:[]),(0,o.A)(Array.isArray(O)?O:[O])),style:k(k({},P.style),"always"===j&&"inherit"!==u&&!F[u]&&{"--Link-underlineColor":C({theme:a,ownerState:E})})}))})},82817:e=>{e.exports={addDefaultAttributes:function(e){var t=new Date().toISOString(),n=Date.now();e.createdAt=t,e.updatedAt=t,e._version=1,e._lastChangedAt=n},paypalAccountNotFoundStatusCode:406,paypalFailedApiCallStatusCode:409,paypalPayoutFailedStatusCode:500}},97994:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mywallet",function(){return n(25459)}])}},e=>{e.O(0,[186,8797,9782,5578,636,6593,8792],()=>e(e.s=97994)),_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.