PageSourceSearch

https://www.goodcompany.com.au/_next/static/chunks/pages/admin/bac…/charity-suppressions-a88ccc7c601c474b.js

js goodcompany.com.au collected 2026-10-02 11:24:48 UTC 3,942 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:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="2acf8f90-05c4-49fe-a51f-d60f531b2897",e._sentryDebugIdIdentifier="sentry-dbid-2acf8f90-05c4-49fe-a51f-d60f531b2897")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4276],{83856:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>j});var i=t(37876),n=t(14232),s=t(532),r=t(49246),l=t(28751),d=t(20982),o=t(99067),c=t(69034),u=t(8949),h=t(88052),f=t(80425),b=t(32395),y=t(83334),p=t(69666),m=t(84548),g=t(57065),w=t(78770),v=t(83130);let j=(0,d.Y)(l.x.BackOffice_ManageBusinessUnits)(()=>{let[e,a]=(0,n.useState)("au"),[t,l]=(0,n.useState)(),[d,j]=(0,n.useState)(!0),[x,C]=(0,n.useState)(!1),[E,_]=(0,n.useState)(),S=async()=>{j(!0),_(void 0);let a=await (0,o.dC)(e);if(j(!1),(0,c.JN)(a)){l(void 0),_("Error loading charity email health");return}l(a)};(0,n.useEffect)(()=>{S()},[e]);let k=async()=>{C(!0),_(void 0);let a=await (0,o.bV)(e);if(C(!1),(0,c.JN)(a))return void _("Error downloading CSV");let t=new Blob([a.data],{type:"text/csv;charset=utf-8"}),i=window.URL.createObjectURL(t),n=document.createElement("a");n.href=i,n.setAttribute("download",a.fileName||"charity-hard-bounces-".concat(e,".csv")),n.click(),window.URL.revokeObjectURL(i)},N=[{title:"Charity",sortable:!0,sortKey:"charityName",render:e=>(0,i.jsx)(u.E,{as:"span",fontWeight:"semibold",children:e.charityName})},{title:"Total staff",sortable:!0,sortKey:"totalStaff",render:e=>(0,i.jsx)(u.E,{as:"span",children:(0,w.B4)(e.totalStaff)})},{title:"Hard bounced",sortable:!0,sortKey:"hardBouncedCount",render:e=>(0,i.jsx)(u.E,{as:"span",children:(0,w.B4)(e.hardBouncedCount)})},{title:"Reachable",sortable:!0,sortKey:"reachableCount",render:e=>(0,i.jsx)(u.E,{as:"span",children:(0,w.B4)(e.reachableCount)})},{title:"",render:e=>e.allHardBounced?(0,i.jsx)(h.E,{tone:"critical",children:"All addresses bounced"}):null}];return(0,i.jsx)(s.yB,{adminArea:"backoffice",title:"Charity email health",subtitle:"Approved charities with hard-bounced staff addresses, from every email we send (Chooseday, campaigns, transactional).",backAction:{content:"Email Campaigns",url:"/admin/backoffice/email-campaigns"},primaryAction:{content:"Download CSV",loading:x,disabled:d||!(null==t?void 0:t.charityCount),onAction:k},children:(0,i.jsx)(f.P,{children:(0,i.jsx)(f.P.Section,{children:(0,i.jsxs)(b.a,{gap:"400",children:[E&&(0,i.jsx)(y.lZ,{tone:"critical",onDismiss:()=>_(void 0),children:E}),(0,i.jsx)(p.Z,{children:(0,i.jsxs)(b.a,{gap:"400",children:[(0,i.jsx)(m.l,{label:"Country",options:w.gH,value:e,onChange:a,disabled:d}),(0,i.jsxs)(g.m,{columns:3,gap:"400",children:[(0,i.jsx)(v.A,{label:"Charities with hard bounces",value:null==t?void 0:t.charityCount}),(0,i.jsx)(v.A,{label:"All addresses bounced",value:null==t?void 0:t.allHardBouncedCharityCount}),(0,i.jsx)(v.A,{label:"Hard-bounced addresses",value:null==t?void 0:t.distinctHardBouncedAddressCount})]})]})}),(0,i.jsx)(r.H,{data:(null==t?void 0:t.charities)||[],columns:N,searchableFields:["charityName"],resourceName:{singular:"charity",plural:"charities"},loading:d,searchPlaceholder:"Search by charity name...",resourceIDResolver:e=>e.charityId,getRowUrl:e=>"/admin/backoffice/email-campaigns/charity-suppressions/".concat(e.charityId),emptyState:(0,i.jsx)(u.E,{as:"p",children:"No charities with hard-bounced staff addresses"}),pagination:{enabled:!0,defaultPageSize:20,pageSizeOptions:[20,50,100]}})]})})})})})},85021:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/backoffice/email-campaigns/charity-suppressions",function(){return t(83856)}])}},e=>{e.O(0,[2026,9879,6494,6960,2120,7930,1286,7083,4465,3399,4974,6190,1318,636,6593,8792],()=>e(e.s=85021)),_N_E=e.O()}]);
2//# sourceMappingURL=charity-suppressions-a88ccc7c601c474b.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.