PageSourceSearch

https://www.goodcompany.com.au/_next/static/chunks/pages/admin/bac…/charity/[charityId]-7edf69cbbb1c4635.js

js goodcompany.com.au collected 2026-09-24 23:09:46 UTC 14,891 bytes, 2 lines download raw bytes

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]="6948698d-d462-4cce-af37-3f3c36afc48b",e._sentryDebugIdIdentifier="sentry-dbid-6948698d-d462-4cce-af37-3f3c36afc48b")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8376],{14080:e=>{e.exports={spaceCenter:"gallery-card_spaceCenter__w3WKp",galleryHeader:"gallery-card_galleryHeader__pTpYM",galleryImages:"gallery-card_galleryImages__2BoYz",galleryImage:"gallery-card_galleryImage__DJJhd",skeletonShimmerAnimation:"gallery-card_skeletonShimmerAnimation__8MuMa"}},27379:e=>{e.exports={spaceCenter:"other-ways-card_spaceCenter__b1RHb",btn:"other-ways-card_btn__sMfVi",linkPrimary:"other-ways-card_linkPrimary__mkxsL",skeletonShimmerAnimation:"other-ways-card_skeletonShimmerAnimation__vsM__"}},31043:e=>{e.exports={image:"charity-detail-description-card_image__9ZaAq",skeletonShimmerAnimation:"charity-detail-description-card_skeletonShimmerAnimation__3pz_w"}},38077:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var i=n(37876),a=n(14232),r=n(44264),s=n(75773),o=n(51377),l=n(47677),d=n(33698),c=n(91930),h=n(48110),g=n(44576),m=n(52387),u=n(1384),p=n(56092);class x extends a.Component{render(){let{amountSelector:e,amountTextField:t,onChange:n,onClickAmountSelectorButton:a,onClickDonate:r,emptyAmountError:x}=this.props;return(0,i.jsxs)(s.u,{children:[(0,i.jsx)(s.u.Section,{children:(0,i.jsxs)(o.a,{gap:"300",children:[(0,i.jsxs)(l.o,{align:"start",blockAlign:"center",gap:"200",children:[(0,i.jsx)(d.I,{source:u.S}),(0,i.jsx)(c.E,{as:"span",variant:"headingMd",fontWeight:"medium",children:"Learn More"})]}),(0,i.jsxs)(j,{children:[(0,i.jsxs)(y,{children:[(0,i.jsxs)(o.a,{gap:"050",children:[(0,i.jsx)(c.E,{as:"span",tone:"subdued",children:"YOUR AMOUNT"}),(0,i.jsx)(c.E,{as:"span",variant:"headingLg",fontWeight:"semibold",children:"$"})]}),(0,i.jsx)(f,{children:(0,i.jsx)(h.A,{id:"amountTextField",value:t,onChange:n,autoComplete:"off",inputMode:"decimal",label:"",labelHidden:!0})})]}),x&&(0,i.jsx)(g.W,{fieldID:"amountTextField",message:"Please enter amount to donate!"}),(0,i.jsx)(v,{children:(0,i.jsxs)(l.o,{align:"start",blockAlign:"center",gap:"100",wrap:!1,children:[(0,i.jsx)(m.$,{variant:e.ten?"primary":void 0,size:"slim",onClick:()=>a("ten","10"),children:"$10"}),(0,i.jsx)(m.$,{variant:e.twenty?"primary":void 0,size:"slim",onClick:()=>a("twenty","20"),children:"$20"}),(0,i.jsx)(m.$,{variant:e.fifty?"primary":void 0,size:"slim",onClick:()=>a("fifty","50"),children:"$50"}),(0,i.jsx)(m.$,{variant:e.hundred?"primary":void 0,size:"slim",onClick:()=>a("hundred","100"),children:"$100"}),(0,i.jsx)(m.$,{variant:e.twoHundred?"primary":void 0,size:"slim",onClick:()=>a("twoHundred","200"),children:"$200"})]})})]})]})}),(0,i.jsx)(p.A,{onClickDonate:r})]})}}let j=r.Ay.div.withConfig({componentId:"sc-c4d5f72d-0"})(["margin-top:0;"]),y=r.Ay.div.withConfig({componentId:"sc-c4d5f72d-1"})(["border:1px solid var(--p-color-border);padding:var(--p-space-400);display:flex;align-items:center;justify-content:space-between;border-radius:var(--p-border-radius-100);"]),f=r.Ay.div.withConfig({componentId:"sc-c4d5f72d-2"})(["margin-top:calc(var(--p-space-600) * -1);min-width:11rem;border-bottom:1px solid var(--p-color-border);&:hover,&:focus-within{border-bottom:1px solid var(--p-color-text-primary);}"]),v=r.Ay.div.withConfig({componentId:"sc-c4d5f72d-3"})(["overflow:hidden;"])},56092:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(37876);n(14232);var a=n(44264),r=n(75773),s=n(51377),o=n(33698),l=n(91930),d=n(47677),c=n(24901),h=n(52387),g=n(98597),m=n(96810),u=n(1134);let p=e=>{let{recurring:t,id:n,quantity:a,amount:p,onClickDonate:f,onClickRecurring:v}=e;return(0,i.jsx)(r.u.Section,{children:(0,i.jsxs)(s.a,{align:"center",gap:"300",children:[(0,i.jsxs)(x,{children:[(0,i.jsx)(o.I,{source:u.S}),(0,i.jsx)(j,{children:(0,i.jsx)(l.E,{as:"span",fontWeight:"medium",children:"Make this a recurring donation"})})]}),(0,i.jsx)(d.o,{align:"center",blockAlign:"center",children:(0,i.jsx)(c.S,{label:"",labelHidden:!0,checked:!!t,onChange:e=>null==v?void 0:v(e)})}),(0,i.jsx)(g.A,{recurring:t,quantity:a,id:n,amount:p,pageType:m.g6.GIFT}),(0,i.jsx)(y,{src:"/static/images/Cards.png",alt:""}),(0,i.jsx)(h.$,{fullWidth:!0,variant:"primary",onClick:f,children:"Donate with Voucher"})]})})},x=a.Ay.div.withConfig({componentId:"sc-2402a99d-0"})(["display:flex;align-items:center;"]),j=a.Ay.div.withConfig({componentId:"sc-2402a99d-1"})(["margin-top:0;padding-left:var(--p-space-200);"]),y=a.Ay.img.withConfig({componentId:"sc-2402a99d-2"})(["width:10rem;height:2rem;margin-bottom:var(--p-space-400);"])},72034:e=>{e.exports={imageLogo:"follow-charity-card_imageLogo__gDhtl",spaceCenter:"follow-charity-card_spaceCenter__HBAw3",followCharity:"follow-charity-card_followCharity__NSowZ",skeletonShimmerAnimation:"follow-charity-card_skeletonShimmerAnimation__NBjhm"}},72195:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ec});var i=n(37876),a=n(14232),r=n(94836),s=n(68465),o=n(84325),l=n(95725),d=n(89099),
1c=n.n(d),h=n(55645),g=n(51377),m=n(62557),u=n(29516),p=n(75773),x=n(47677),j=n(91930),y=n(60574),f=n(31043),v=n.n(f),C=n(96810);let _=e=>{let{charityImage:t,charityDesc:n,charityTitle:a}=e;return(0,i.jsxs)(p.u,{children:[(0,i.jsx)(p.u.Section,{children:(0,i.jsxs)(g.a,{gap:"300",children:[(0,i.jsx)("img",{src:t,alt:"",className:v().image}),(0,i.jsx)(x.o,{align:"center",blockAlign:"center",children:(0,i.jsxs)(g.a,{gap:"100",children:[(0,i.jsx)(j.E,{as:"span",fontWeight:"medium",children:a}),(0,i.jsx)(j.E,{as:"p",tone:"subdued",children:(0,s.xN)(n)})]})})]})}),(0,i.jsx)(p.u.Section,{children:(0,i.jsx)(y.gA,{imageUrl:t,title:a,pageType:C.zf.CHARITY})})]})};var w=n(33698),b=n(68522),S=n(8585),k=n(14080),A=n.n(k);let I=e=>{let{galleryImages:t}=e;return(0,i.jsxs)(p.u,{children:[(0,i.jsx)(p.u.Section,{children:(0,i.jsx)("div",{className:A().spaceCenter,children:(0,i.jsx)("div",{className:A().galleryHeader,children:(0,i.jsxs)(x.o,{align:"space-between",blockAlign:"center",gap:"300",children:[(0,i.jsxs)(x.o,{align:"start",blockAlign:"center",gap:"150",children:[(0,i.jsx)(w.I,{source:S.S}),(0,i.jsx)(j.E,{as:"span",fontWeight:"medium",children:"Gallery"})]}),(0,i.jsxs)(j.E,{as:"span",tone:"subdued",children:[t.length," Images"]})]})})})}),(0,i.jsx)(p.u.Section,{children:(0,i.jsx)("div",{className:A().galleryImages,children:t.map((e,t)=>(0,i.jsx)(b.a,{as:"div",children:(0,i.jsx)("img",{src:e,alt:"charity",className:A().galleryImage})},t))})})]})};var M=n(52387),D=n(188),N=n(72034),E=n.n(N);let T=e=>{let{charityLogo:t}=e;return(0,i.jsx)(p.u,{children:(0,i.jsx)(p.u.Section,{children:(0,i.jsxs)("div",{className:E().spaceCenter,children:[(0,i.jsx)("img",{src:"".concat(t,"?width=116"),alt:"charity",className:E().imageLogo}),(0,i.jsx)(x.o,{align:"center",children:(0,i.jsx)(M.$,{variant:"plain",onClick:()=>{window.alert("This feature is coming soon.")},icon:(0,i.jsx)(w.I,{source:D.S}),children:"FOLLOW CHARITY"})})]})})})};var O=n(86151),L=n(69999),W=n(9105),$=n(27379),H=n.n($),F=n(88062);let P=e=>{let{charityWebsiteLink:t,onClickNominate:n}=e;return(0,i.jsx)(p.u,{children:(0,i.jsx)(p.u.Section,{children:(0,i.jsxs)("div",{className:H().spaceCenter,children:[(0,i.jsxs)(x.o,{align:"center",gap:"200",children:[(0,i.jsx)(w.I,{source:L.S}),(0,i.jsx)(j.E,{as:"span",fontWeight:"medium",children:"Other ways to give"})]}),(0,i.jsxs)(g.a,{gap:"200",children:[(0,i.jsx)(M.$,{url:"/fundraising/create",variant:"plain",fullWidth:!0,children:"Fundraise For This Cause"}),(0,i.jsx)(F.f5.Consumer,{children:e=>"GoodCompany"===e.getSiteConfig().currentSite.siteName?(0,i.jsx)(M.$,{variant:"plain",fullWidth:!0,onClick:()=>null==n?void 0:n(),children:"Start a Workplace Giving Program"}):null})]}),(0,i.jsx)(x.o,{align:"center",children:(0,i.jsx)(O.N,{url:t,external:!0,children:(0,i.jsxs)(x.o,{align:"center",gap:"100",children:[(0,i.jsx)(j.E,{as:"span",children:"Visit Charity's Website"}),(0,i.jsx)(w.I,{source:W.S})]})})})]})})})};var B=n(1384),R=n(77360),z=n(81552);let Y=()=>(0,i.jsx)(p.u,{children:(0,i.jsx)(p.u.Section,{children:(0,i.jsx)("div",{children:(0,i.jsxs)(x.o,{align:"center",blockAlign:"center",gap:"300",children:[(0,i.jsx)(j.E,{as:"span",fontWeight:"medium",children:"Other ways to give"}),(0,i.jsx)(w.I,{source:B.S}),(0,i.jsx)(w.I,{source:R.S}),(0,i.jsx)(w.I,{source:L.S}),(0,i.jsx)(w.I,{source:z.S})]})})})});var U=n(74946),q=n(8647),G=n(28888),V=n(92510),J=n(44264),X=n(62988),Z=n(24197),K=n(45393),Q=n(52454);function ee(){let e=(0,G._)(["\n      grid-template-columns: 1fr 1fr;\n    "]);return ee=function(){return e},e}function et(){let e=(0,G._)(["\n      grid-template-columns: repeat(",", 1fr);\n    "]);return et=function(){return e},e}let en=(0,Z.k)("div","wide"),ei=(0,J.Ay)(en).withConfig({componentId:"sc-af357f5c-0"})(["",""],e=>{let{wide:t}=e;return(0,J.AH)(["display:grid;grid-gap:2rem;justify-content:space-between;grid-template-columns:1fr;"," ",""],X.$.tabletPortrait(ee()),X.$.tabletLandscape(et(),t?"4":"3"))});class ea extends a.Component{componentDidMount(){this.context.searchkit.addDefaultQuery(e=>{})}render(){let e=(0,i.jsx)(K.A,{title:"There are no Volunteering Roles",description:"Checkout the large range of volunteering roles on Good Company",browseButton:"Browse Roles",onClick:()=>{c().push("/".concat((0,Q.JJ)(),"/volunteering"))}});if(!this.props.loading)return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(p.u,{children:(0,i.jsx)(p.u.Section,{children:(0,i.jsxs)(g.a,{gap:"300",children:[(0,i.jsxs)(x.o,{align:"space-between",blockAlign:"center",gap:"200",children:[(0,i.jsx)(x.o,{gap:"100",children:(0,i.jsx)(j.E,{as:"span",fontWeight:"medium",children:"More Volunteering Roles"})}),(0,i.jsx)(x.o,{blockAlign:"center",gap:"100",children:(0,i.jsx)(O.N,{url:"/volunteering",children:(0,i.jsx)(j.E,{as:"span",fontWeight:"medium",children:" See more volunteering roles >"})})})]}),(0,i.jsxs)(x.o,{align:"center",blockAlign:"center",gap:"300",wrap:!0,children:[e,(0,i.jsx)(ei,{wide:!0})]})]})})})})}constructor(...e){super(...e),this.renderUrl=e=>
1{let t=V.y.CHARITY_DOLLAR_HANDLES,[n,i]=e.split("/");return{url:t,params:{charityUrl:n,productUrl:i}}}}}ea.contextType=a.createContext(null);class er extends a.Component{render(){return(0,i.jsx)(ea,{...this.props})}}var es=n(12824);n(38077);class eo extends a.Component{renderFooter(){let{data:e,loading:t,host:n}=this.props,{name:a="",isAcceptingVolunteering:r}=e;return(0,i.jsxs)("div",{children:[(null==e?void 0:e.id)&&!t&&(0,i.jsx)(q.A,{loading:t,title:a,charityId:e.id,host:n}),r&&(null==e?void 0:e.id)&&!t&&(0,i.jsx)(er,{title:a,charityId:e.id,loading:t,host:n}),(0,i.jsx)(Y,{}),(0,i.jsx)("br",{})]})}render(){let{amountTextField:e,amountSelector:t,data:n,errorMessage:a,loading:r,onChange:s,onClickAmountSelectorButton:o,emptyAmountError:l,nominateModalOpen:d,handleDonateClick:c,handleClickNominateButton:p,handleCloseModal:x}=this.props,{description:j="",logoImageUrl:y="",name:f="",charityGalleryImageUrls:v=[],isAcceptingDonations:w,contactWebsite:b=""}=n;return(0,i.jsx)(u.yB,{title:"Detail",titleHidden:!0,preFooter:this.renderFooter(),loading:r,errorMessage:a,children:(0,i.jsxs)(h.P,{children:[(0,i.jsxs)(h.P.Section,{children:[(0,i.jsx)(_,{charityDesc:j,charityImage:y,charityTitle:f}),(0,i.jsx)(I,{galleryImages:v})]}),(0,i.jsxs)(h.P.Section,{variant:"oneThird",children:[(0,i.jsx)(T,{charityLogo:y}),(0,i.jsx)("br",{}),w&&(0,i.jsxs)(g.a,{gap:"300",children:[!1,(0,i.jsx)(es.A,{id:n.defaultProductId,pageType:C.g6.CHARITY,isLoggedIn:this.props.isLoggedIn}),(0,i.jsx)(P,{charityWebsiteLink:function(e){let t="https://",n="http://";return e.substr(0,t.length)==t||e.substr(0,n.length)==n||(e=n+e),e}(b),onClickNominate:p})]}),(0,i.jsx)(m.a,{open:!!d,onClose:()=>{null==x||x("nominateModalOpen")},title:"Nominate your workspace",primaryAction:{content:"Nominate your workspace",onAction:()=>null==p?void 0:p()},children:(0,i.jsx)(m.a.Section,{children:(0,i.jsx)(U.A,{onNominate:()=>{null==x||x("nominateModalOpen")}})})})]})]})})}}var el=n(52573);class ed extends a.Component{static async getInitialProps(e){return{charityId:e.query.charityId,host:(0,o.Y2)(e)}}async componentDidMount(){let{charityId:e}=this.props,t=await (0,l.M3)();this.setState(e=>({...e,loggedIn:t}));try{let t=await (0,el.cL)(e);this.setState({data:t})}catch(e){this.setState({errorMessage:e.message})}try{let e=await (0,r.r5)(this.state.data.id);this.setState({donationData:e})}catch(e){}try{let e=await (0,r.ms)(this.state.data.id);this.setState({fundraisingData:e})}catch(e){}try{let e=await (0,r.Iq)(this.state.data.id);this.setState({volunteeringData:e})}catch(e){}this.setState({loading:!1})}render(){let{amountTextField:e,loading:t,amountSelector:n,data:a,donationData:r,errorMessage:s,fundraisingData:o,volunteeringData:l,emptyAmountError:d,donateModalOpen:c,nominateModalOpen:h}=this.state;return(0,i.jsx)(eo,{amountTextField:e,amountSelector:n,data:a,errorMessage:s,loading:t,donationData:r,fundraisingData:o,volunteeringData:l,onChange:this.handleChange,onClickAmountSelectorButton:this.handleClickAmountSelectorButton,emptyAmountError:d,donateModalOpen:c,nominateModalOpen:h,handleDonateClick:this.handleDonateClick,handleClickNominateButton:this.handleClickNominateButton,handleCloseModal:this.handleCloseModal,host:this.props.host,isLoggedIn:this.state.loggedIn})}constructor(...e){super(...e),this.state={amountTextField:"",amountSelector:{five:!1,ten:!1,twenty:!1,fifty:!1,hundred:!1},emptyAmountError:!1,donateModalOpen:!1,nominateModalOpen:!1,loading:!0,errorMessage:void 0,donationData:{items:[]},fundraisingData:{items:[]},volunteeringData:{items:[]}},this.handleClickAmountSelectorButton=(e,t)=>{this.setState({amountSelector:{[e]:!0},amountTextField:t,emptyAmountError:!1})},this.handleDonateClick=async()=>{let{amountTextField:e}=this.state;await (0,l.M3)()?(0,s.Im)(e)?this.setState({emptyAmountError:!0,donateModalOpen:!1}):c().push({pathname:"/checkout",query:{amount:e,name:encodeURI(this.state.data.name),id:this.state.data.id,type:"charity",imageUrl:this.state.data.logoImageUrl,referer:c().asPath}}):(0,s.Im)(e)?this.setState({emptyAmountError:!0,donateModalOpen:!1}):this.setState({donateModalOpen:!0})},this.handleChange=(e,t)=>
1{this.setState({[t]:e})},this.handleClickNominateButton=()=>{this.setState({nominateModalOpen:!0,donateModalOpen:!1})},this.handleCloseModal=e=>{this.setState(t=>({...t,[e]:!1}))}}}let ec=ed},87829:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/backoffice/view/charity/[charityId]",function(){return n(72195)}])}},e=>{e.O(0,[2026,9879,9174,888,6989,4751,8174,9830,3266,2402,6896,4905,6374,3600,646,897,6963,4182,9763,2573,9978,9024,2532,574,2824,9488,636,6593,8792],()=>e(e.s=87829)),_N_E=e.O()}]);
2//# sourceMappingURL=[charityId]-7edf69cbbb1c4635.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.