1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7d7f6b17-bdbb-4f69-8d74-a8a0512482ab",e._sentryDebugIdIdentifier="sentry-dbid-7d7f6b17-bdbb-4f69-8d74-a8a0512482ab")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5400],{51512:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(37876),s=n(14232),o=n(51579),a=n(29516),d=n(81199),r=n(2032),c=n(70506),l=n(55608),h=n(88062),u=n(55645),p=n(75773),y=n(51377),g=n(47677),f=n(91930),x=n(83143),m=n(98159),N=n(52387);function k(e){let{transactionReference:t}=e,[n,d]=(0,s.useState)(!0),[r,k]=(0,s.useState)(void 0),b=async()=>{k(await (0,o.mK)(t)),d(!1)};(0,s.useEffect)(()=>{b()},[]);let j=async()=>{let e=await (0,o.$h)(t);window.open(e.taxReceiptUrl)};return(0,i.jsx)(a.yB,{adminArea:"user",backAction:{content:"Donations",url:"/admin/user/donations/history"},title:r&&r.transactionReference,loading:n,children:(0,i.jsx)(u.P,{children:(0,i.jsx)(u.P.Section,{children:(0,i.jsx)(p.u,{title:"Donation Details",children:(0,i.jsx)(p.u.Section,{children:(0,i.jsx)(h.f5.Consumer,{children:e=>{var t;return(0,i.jsxs)(y.a,{gap:"400",children:[(0,i.jsxs)(g.o,{align:"space-between",children:[(0,i.jsxs)(y.a,{gap:"050",children:[(0,i.jsx)(f.E,{as:"p",tone:"subdued",children:"Date"}),(0,i.jsx)(f.E,{as:"p",tone:"subdued",children:"Reference"}),(0,i.jsx)(f.E,{as:"p",tone:"subdued",children:"Status"}),(0,i.jsx)(f.E,{as:"p",tone:"subdued",children:"Charity"})]}),(0,i.jsxs)(y.a,{gap:"050",align:"end",children:[(0,i.jsx)(f.E,{as:"p",children:(0,l.ae)(r&&r.createdOn,"d mmm yyyy h:MM TT")}),(0,i.jsx)(f.E,{as:"p",children:r&&r.transactionReference}),(0,i.jsx)(f.E,{as:"p",children:(0,c.D)(r&&r.paymentStatus)}),(0,i.jsx)(f.E,{as:"p",children:null==r||null==(t=r.pageDonations[0])?void 0:t.charityName})]})]}),(0,i.jsx)(p.u.Section,{children:(0,i.jsx)(x.b,{columnContentTypes:["text","text","text","text"],headings:["","Title","Donated to","Amount"],rows:r?r.pageDonations.map(t=>[(0,i.jsx)(m._,{source:t.fundraisingPageImageUrl||"https://cdn-test.goodcompany.org/unknown/tset.png",alt:"image"},t.fundraisingPageTitle),t.fundraisingPageTitle,t.charityName,"".concat(e.getCountry().currency," $").concat(t.donationAmount)]):[]})}),(0,i.jsxs)(g.o,{align:"end",gap:"200",children:[(0,i.jsx)(f.E,{as:"p",fontWeight:"medium",children:"Donation Total:"}),(0,i.jsx)(f.E,{as:"p",tone:"subdued",children:"".concat(e.getCountry().currency," $").concat(r&&r.total)})]}),r&&r.requiresTaxReceipt&&(0,i.jsx)(g.o,{align:"start",children:(0,i.jsx)(N.$,{variant:"primary",onClick:j,children:"Download Tax Receipt"})})]})}})})})})})})}k.getInitialProps=async e=>{let{transactionReference:t}=e.query;return{transactionReference:t}};let b=(0,r.m)(d.x.User_ManageDonations)(k)},62218:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var i=n(14232),s=n(13346),o=n(68441),a=n(43351);class d extends i.Component{constructor(...e){super(...e),this.state={isSticky:!1,style:{}},this.placeHolderNode=null,this.stickyNode=null,this.setPlaceHolderNode=e=>{this.placeHolderNode=e},this.setStickyNode=e=>{this.stickyNode=e},this.handlePositioning=(e,t=0,n=0,i=0)=>{let{isSticky:s}=this.state;(e&&!s||!e&&s)&&(this.adjustPlaceHolderNode(e),this.setState({isSticky:!s},()=>null==this.props.onStickyChange||(this.props.onStickyChange(!s),null==this.props.boundingElement)?null:void this.props.boundingElement.toggleAttribute("data-sticky-active"))),this.setState({style:e?{position:"fixed",top:t,left:n,width:i}:{}})},this.adjustPlaceHolderNode=e=>{this.placeHolderNode&&this.stickyNode&&(this.placeHolderNode.style.paddingBottom=e?`${(0,s.w)(this.stickyNode).height}px`:"0px")}}componentDidMount(){let{boundingElement:e,offset:t=!1,disableWhenStacked:n=!1,stickyManager:i}=this.props;this.stickyNode&&this.placeHolderNode&&i.registerStickyItem({stickyNode:this.stickyNode,placeHolderNode:this.placeHolderNode,handlePositioning:this.handlePositioning,offset:t,boundingElement:e,disableWhenStacked:n})}componentDidUpdate(){let{boundingElement:e,offset:t=!1,disableWhenStacked:n=!1,stickyManager:i}=this.props;if(!this.stickyNode||!this.placeHolderNode)return;let s=i.getStickyItem(this.stickyNode);s&&e===s.boundingElement&&t===s.offset&&n===s.disableWhenStacked||(i.unregisterStickyItem(this.stickyNode),i.registerStickyItem({stickyNode:this.stickyNode,placeHolderNode:this.placeHolderNode,handlePositioning:this.handlePositioning,offset:t,boundingElement:e,disableWhenStacked:n}))}componentWillUnmount(){let{stickyManager:e}=this.props;this.stickyNode&&e.unregisterStickyItem(this.stickyNode)}render(){let{style:e,isSticky:t}=this.state,{children:n}=this.props,s="function"==typeof n?n(t):n;return i.createElement("div",null,i.createElement("div",{ref:this.setPlaceHolderNode}),i.createElement("div",{ref:this.setStickyNode,style:e},s))}}function r(e){let t=function(){let e=(0,i.useContext)(a.C);if(!e)throw new o.r("No StickyManager was provided.");return e}();return i.createElement(d,Object.assign({},e,{stickyManager:t}))}},70506:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var i=n(37876);n(14232);var s=n(80407);let o=e=>{switch(e){case"Pending":return(0,i.jsx)(s.E,{tone:"info",children:"Pending"});case"Confirmed":return(0,i.jsx)(s.E,{tone:"success",children:"Confirmed"});case"Denied":return(0,i.jsx)(s.E,{tone:"warning",children:"Denied"});default:return(0,i.jsx)(s.E,{children:"null"})}}},98919:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/user/donations/history/[transactionReference]/page",function(){return n(51512)}])}},e=>{e.O(0,[2026,9879,6989,4751,8174,9830,3266,2402,8359,4182,477,636,6593,8792],()=>e(e.s=98919)),_N_E=e.O()}]); 2//# sourceMappingURL=page-6217ae23eb13dac4.js.map
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.