PageSourceSearch

https://www.goodcompany.com.au/_next/static/chunks/pages/admin/bac…/[id]/remittances-e65d434a594950c7.js

js goodcompany.com.au collected 2026-10-02 11:24:12 UTC 14,761 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]="3a664d18-5050-4240-9dd2-be40c54890b8",e._sentryDebugIdIdentifier="sentry-dbid-3a664d18-5050-4240-9dd2-be40c54890b8")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1748],{532:(e,t,a)=>{"use strict";a.d(t,{Lw:()=>x,yB:()=>r.A});var r=a(84974),n=a(37876),i=a(14232);a(30063),a(80828);var s=a(15039),o=a.n(s),l=a(8949),c=a(35070),d=a(68441),u=a(44264),h=a(45991);let g=u.Ay.div.withConfig({componentId:"sc-13b73589-0"})(["background-color:#ffffff;position:fixed;z-index:400;top:5.1428571rem;right:0;left:0;"]),m=e=>{let{titleList:t,selected:a,hidePreviousButton:r,onClickBack:i,onNavigate:s}=e,o=t.map(e=>{let{id:t,title:a}=e;return{id:String(t),label:a}}),l=null!=a?String(a):o.length>0?o[0].id:void 0;return(0,n.jsx)(g,{children:(0,n.jsx)(h.A,{onClickBack:i,onNavigate:s,stepList:o,currentStep:l,hideLeftButton:r})})};var p=a(19818),y=a(7550),f=a.n(y);let x=e=>{let{actions:t,onPrevious:a,onNext:r,children:s,showTopCard:u,titleList:h,pageIndex:g,topTitle:y,tipsOpen:x,onCloseTips:_,hidePreviousButton:b=!1}=e,v=(0,i.useContext)(p.f5);return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(d.TD,{}),(0,n.jsxs)("header",{className:f().header,children:[(0,n.jsx)("div",{className:f().logoContainer,children:(0,n.jsx)("a",{href:"/","aria-label":"Home",children:(0,n.jsx)("img",{className:f().logoImage,src:v.getLogoUrl(),height:60,alt:"Logo"})})}),(0,n.jsx)("div",{className:f().progressContainer,children:(0,n.jsx)(l.E,{as:"h1",fontWeight:"medium",children:y})}),(0,n.jsx)("div",{className:f().actionsContainer,children:null==t?void 0:t.map((e,t)=>(0,n.jsx)(c.$,{onClick:e.onAction,url:e.url,target:e.external?"_blank":void 0,tone:e.destructive?"critical":void 0,disabled:e.disabled,icon:e.icon,children:e.content},t))})]}),u&&0!=g&&(0,n.jsx)(m,{onClickBack:a,onNavigate:r,titleList:h,selected:g,hidePreviousButton:b}),(0,n.jsxs)("main",{className:o()(f().main,0===g&&f().extraPadding),children:[(0,n.jsx)("div",{className:f().pageControl,children:!1}),(0,n.jsx)("div",{className:f().pageContent,children:s}),(0,n.jsx)("div",{className:f().pageControl,children:!1})]})]})}},1576:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var r=a(37876),n=a(14232),i=a(69666),s=a(86265),o=a(78202),l=a(89219),c=a(45890);let d=function(e){let{resourceName:t,items:a,selectedItems:n,handleSelectionChange:d,sortValue:u,onSortChange:h,onNext:g,onPrevious:m,filterControl:p,hasNext:y,hasPrevious:f,loading:x=!0,renderItem:_,sortOptions:b,bulkActions:v,hideSelectAllAction:C,totalItemsCount:j,tabs:S}=e;return(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsxs)(i.Z,{children:[S&&(0,r.jsx)(s.t,{tabs:S.tabs,selected:S.selected,onSelect:S.onSelect}),(0,r.jsx)(o.j,{resourceName:t,items:a,renderItem:_,selectedItems:n,onSelectionChange:d,sortValue:u,sortOptions:b,onSortChange:h,filterControl:p,loading:x,bulkActions:v,hasMoreItems:!C&&(y||f),totalItemsCount:j}),(0,r.jsx)(l.o,{align:"center",children:(0,r.jsx)(c.d,{onNext:g,onPrevious:m,hasPrevious:f,hasNext:y,type:"table"})})]})})};var u=a(50495),h=a(9938),g=a(43159);let m=function(e){let{items:t,renderItem:a,sortOptions:i,resourceName:s,bulkActions:o,selectedItems:l,onRemoveFilter:c,onClearAllFilters:m,handleSelectionChange:p,setItems:y,disableFilters:f,defaultSort:x,pageSize:_,hideSelectAllAction:b,filters:v,totalItemsCount:C,getItems:j,tabs:S}=e,k=JSON.stringify(v),A=e=>e&&e.reduce((e,t)=>(e[t.key]="[]"===JSON.stringify(t.value)?void 0:t.value,e),{}),[w,q]=(0,n.useState)({total:0,sortValue:[],queryValue:"",items:[],queryData:{query:"",sortBy:x?[x.value]:[],filters:A(v)||{},pageSize:_||10,pageNumber:1},loading:!1}),N=(0,n.useRef)(!1),D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.queryData,a={...e,filters:e.filters||{},query:e.query.length>0?e.query+"~":e.query};if(q(e=>({...e,loading:!0})),j&&"function"==typeof j)return void j(a).then(e=>{q(t=>({...t,items:e.result,total:e.total,loading:!1})),y&&y(e.result)});if("string"==typeof t){let e;e=t.includes("http")?t:"https://portalapis.cloud.goodcompany.org/api"+(t.startsWith("/")?t:"/"+t),(0,h.KU)(u.A).then(t=>t.getRecords(e,a).then(e=>{q(t=>({...t,items:e.result,total:e.total,loading:!1})),y&&y(e.result)}))}else q(e=>({...e,items:t,total:t.length,loading:!1}))};v&&(0,n.useEffect)(()=>{q(e=>({...e,queryData:{...e.queryData,filters:A(v)}}))},[k]),(0,n.useEffect)(()=>
1{if(!N.current){N.current=!0;return}let e=setTimeout(()=>{q(e=>({...e,queryData:{...e.queryData,query:e.queryValue||""}}))},500);return()=>{clearTimeout(e)}},[w.queryValue]),(0,n.useEffect)(()=>{D()},[w.queryData]);let I=v&&v.map(e=>({key:e.key,label:e.name,filter:e.component()})),E=v&&Array.isArray(v)&&v.length>0?v.filter(e=>Array.isArray(e.value)&&0!==e.value.length||!Array.isArray(e.value)&&void 0!==e.value).map(e=>({key:e.key,label:" For ".concat(e.name," : ").concat(!0===e.value?"Yes":e.displayValue||e.value),onRemove:()=>{c(null==e?void 0:e.key)}})):void 0,L=f?void 0:(0,r.jsx)(g.C,{queryValue:w.queryValue,onQueryChange:e=>{q(t=>({...t,queryValue:e}))},filters:I||[],onQueryClear:()=>{q(e=>({...e,queryValue:""}))},onClearAll:m,appliedFilters:E||[]});return(0,r.jsx)(d,{onNext:()=>{let{pageNumber:e}=w.queryData;q(t=>({...t,queryData:{...t.queryData,pageNumber:e+1}}))},onPrevious:()=>{let{pageNumber:e}=w.queryData;e>1&&q(t=>({...t,queryData:{...t.queryData,pageNumber:e-1}}))},onSortChange:e=>{q(t=>({...t,queryData:{...t.queryData,sortBy:[e]}}))},selectedItems:l,handleSelectionChange:p,items:w.items,resourceName:s,sortValue:w.queryData.sortBy[0],filterControl:L,hasNext:w.queryData.pageNumber*w.queryData.pageSize<w.total,hasPrevious:w.queryData.pageNumber>1,loading:w.loading,renderItem:a,sortOptions:i,bulkActions:o,hideSelectAllAction:b,totalItemsCount:C,tabs:S})}},7550:e=>{e.exports={logoContainer:"CreateScreenLayout_logoContainer__2fp5V",progressContainer:"CreateScreenLayout_progressContainer__4DD_0",progressBar:"CreateScreenLayout_progressBar__xgvqz",actionsContainer:"CreateScreenLayout_actionsContainer__8_h8E",main:"CreateScreenLayout_main__p0uYF",pageControl:"CreateScreenLayout_pageControl__B_bMn",pageControlButton:"CreateScreenLayout_pageControlButton__f9iHq",pageContent:"CreateScreenLayout_pageContent__bnc4p",hide:"CreateScreenLayout_hide__Rxh8m",extraPadding:"CreateScreenLayout_extraPadding__yrr_a",logoImage:"CreateScreenLayout_logoImage__5b_HQ",header:"CreateScreenLayout_header__hAzxV",skeletonShimmerAnimation:"CreateScreenLayout_skeletonShimmerAnimation__R5i4z"}},13677:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/backoffice/charity/[id]/remittances",function(){return a(35439)}])},20982:(e,t,a)=>{"use strict";a.d(t,{Y:()=>c});var r=a(36190),n=a(69034),i=a(93087),s=a(9938),o=a(53965);let l=(e=>async t=>{let a=await r.LN(t.req),i=(await (0,s.KU)(o.RootClient,t.req)).getRoot(),l=(await i).currentSite.features,c=(0,n.bJ)(a)?[]:a.items;return[...e?[...c,...await e(t)]:c,...l]})(),c=(0,i.Lu)(l)},26195:(e,t,a)=>{"use strict";a.d(t,{N:()=>i,x:()=>n});var r=a(80992);function n(e){return"\n    font-size: ".concat({extraSmall:.625,small:1.2/1.6,medium:1.4/1.6,large:1.125,extraLarge:2.4/1.6}[e],"rem;\n  ")}function i(e){let t={positive:"color:".concat((0,r.y)("green","dark"),";"),negative:"color:".concat((0,r.y)("red","dark"),";"),strong:"font-weight: 600;",subdued:"opacity:0.5;"}[e];return"\n    ".concat(t,";\n  ")}},35439:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>b});var r=a(37876);a(14232);var n=a(1576),i=a(28751),s=a(9938),o=a(74633),l=a.n(o),c=a(53965),d=a(31632),u=a(532),h=a(20982),g=a(14196),m=a(32395),p=a(8949),y=a(89219),f=a(35070);let x=[{label:"Donations Sum",value:"donationsSum_desc"},{label:"Donations Count",value:"donationsCount_desc"},{label:"Month to Receive",value:"dueDate_desc"}],_=e=>{let{charityId:t}=e;return(0,r.jsx)(u.yB,{title:"Remittance",adminArea:"backoffice",backAction:{content:"Charity Settings",url:"/admin/backoffice/charity-settings/".concat(t,"/edit")},children:(0,r.jsx)(n.A,{getItems:e=>(0,s.KU)(c.CharityBillsClient).then(a=>a.getCharityBills(t,e)),sortOptions:x,defaultSort:x[x.length-1],totalItemsCount:1,resourceName:{singular:"Remittance",plural:"Remittances"},renderItem:e=>{let{id:t,reference:a,billingDate:n,dueDate:i,status:s,type:o,donationsSum:u,donationsCount:h,donationsCsvUrl:x}=e;return s!==c.BillStatus.Closed?null:(0,r.jsx)(g.K,{id:"".concat(t),accessibilityLabel:"Edit details for ".concat(a),persistActions:!0,url:"",children:(0,r.jsxs)("div",{className:l().displayGrid,children:[(0,r.jsxs)(m.a,{gap:"200",children:[(0,r.jsx)(p.E,{as:"span",fontWeight:"medium",children:"Reference"}),(0,r.jsx)(p.E,{as:"span",children:a})]}),(0,r.jsxs)(m.a,{gap:"200",children:[(0,r.jsx)(p.E,{as:"span",fontWeight:"medium",children:"Donations"}),(0,r.jsxs)(y.o,{gap:"200",children:[(0,r.jsxs)(p.E,{as:"span",variant:"bodyMd",tone:"subdued",children:["$",u]}),(0,r.jsxs)(p.E,{as:"span",children:["(",h," donations)"]})]})]}),(0,r.jsxs)(m.a,{gap:"200",children:[(0,r.jsx)(p.E,{as:"span",fontWeight:"medium",children:"Pledged"}),(0,r.jsx)(p.E,{as:"span",children:(0,d.ae)(n,"mmmm, yyyy")})]}),(0,r.jsxs)(m.a,{gap:"200",children:[(0,r.jsx)(p.E,{as:"span",fontWeight:"medium",children:"Month to Receive"}),(0,r.jsx)(p.E,{as:"span",children:(0,d.ae)(i,"mmmm, yyyy")})]}),(0,r.jsxs)(m.a,{gap:"200",children:[(0,r.jsx)(p.E,{as:"span",fontWeight:"medium",children:"Type"}),(0,r.jsx)(p.E,{as:"span",tone:"subdued",children:o})]}),(0,r.jsx)(y.o,{children:(0,r.jsx)(f.$,{variant:"primary",size:"slim",onClick:()=>{window.open(x)},children:"Csv"})})]})})}})})};_.getInitialProps=async e=>{let{id:t}=e.query;return{charityId:t}};let b=(0,h.Y)(i.x.BackOffice_ManageCharities)(_)},41729:(e,t,a)=>{"use strict";a.d(t,{V:()=>n});var r=a(80992);function n(e){return({base:"3px",large:"6px"})[e]}(0,r.y)("sky"),(0,r.y)("sky","dark")},45991:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var r=a(37876);a(14232);var n=a(44264),i=a(61436),s=a(67299),o=a(64850),l=a(41943),c=a(56362);let d=n.Ay.div.withConfig({componentId:"sc-daf0229e-0"})(["display:flex;justify-content:space-between;background:",";"],(0,i.yW)("white")),u=n.Ay.div.withConfig({componentId:"sc-daf0229e-1"})(["flex:0 1 90%;padding:",";display:flex;justify-content:center;align-items:center;flex-wrap:wrap;"],(0,i.YK)("extra-tight")),h=n.Ay.div.withConfig({componentId:"sc-daf0229e-2"})(["flex:0 1 5%;padding:",";text-align:right;"],(0,i.YK)("tight")),g=n.Ay.div.withConfig({componentId:"sc-daf0229e-3"})(["flex:0 1 5%;padding:",";"],(0,i.YK)("tight")),m=n.Ay.div.withConfig({componentId:"sc-daf0229e-4"})(["",""],e=>{let{$selected:t}=e;return(0,n.AH)(["display:flex;flex-direction:column;align-items:center;margin:0.7rem 0.7rem;@media (max-width:","){& > *{display:none;}
1height:15px;width:10px;background-color:",";border-radius:50%;display:inline-block;}"],s.f.tabletLandscape+"px",t?(0,i.yW)("primary"):"#e9e9e9")}),p=n.Ay.span.withConfig({componentId:"sc-daf0229e-5"})([""," ",";position:relative;margin-bottom:0.35rem;"],e=>{let{$selected:t}=e;return t?"\n    ".concat((0,i.xP)("extraLarge"),";\n    color: #0b1f59;\n  "):"\n    ".concat((0,i.xP)("large"),";\n    color: #e9e9e9;\n  ")},(0,i.N9)("strong")),y=n.Ay.span.withConfig({componentId:"sc-daf0229e-6"})(["background-color:",";height:",";width:150px;"],e=>e.$selected?(0,i.yW)("primary"):"#e9e9e9",(0,i.YK)("extra-tight"));function f(e){let{stepList:t,currentStep:a,onNavigate:n,hideButtons:i,hideLeftButton:s,hideRightButton:f,onClickBack:x}=e;return(0,r.jsxs)(d,{children:[!i&&!s&&(0,r.jsx)(g,{children:(0,r.jsx)(o.A,{primary:!0,icon:l.S,direction:"left",onClick:x,children:"Back"})}),(0,r.jsx)(u,{children:t.map(e=>{let{id:t,label:n}=e,i=a===t;return(0,r.jsxs)(m,{$selected:i,children:[(0,r.jsx)(p,{$selected:i,children:n}),(0,r.jsx)(y,{$selected:i})]},t)})}),!i&&!f&&(0,r.jsx)(h,{children:(0,r.jsx)(o.A,{primary:!0,icon:c.S,direction:"right",onClick:n,children:"Next"})})]})}},50495:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(91040);class n{getRecords(e,t){let a=e.replace(/[?&]$/,"");return this.instance.request({method:"POST",url:a,headers:{Accept:"application/json"},data:t}).then(e=>this.processRecords(e))}processRecords(e){let t=e.status,a={};if(e.headers&&"object"==typeof e.headers)for(let t in e.headers)e.headers.hasOwnProperty(t)&&(a[t]=e.headers[t]);if(200===t){let t=e.data;return t}}constructor(e,t){this.instance=t||r.A.create()}}},56362:(e,t,a)=>{"use strict";a.d(t,{S:()=>n});var r=a(14232),n=function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),r.createElement("path",{fillRule:"evenodd",d:"M3.5 10a.75.75 0 0 1 .75-.75h9.69l-2.72-2.72a.75.75 0 1 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06l2.72-2.72h-9.69a.75.75 0 0 1-.75-.75Z"}))};n.displayName="ArrowRightIcon"},61436:(e,t,a)=>{"use strict";a.d(t,{Vq:()=>r.V,yW:()=>n.y,p0:()=>o,cz:()=>s,r7:()=>l,YK:()=>i.Y,xP:()=>c.x,N9:()=>c.N});var r=a(41729),n=a(80992),i=a(84578);function s(e){return({base:"cubic-bezier(0.64, 0, 0.35, 1)",in:"cubic-bezier(0.36, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.42, 1)",excite:"cubic-bezier(0.18, 0.67, 0.6, 1.22)",overshoot:"cubic-bezier(0.07, 0.28, 0.32, 1.22)",anticipate:"cubic-bezier(0.38, -0.4, 0.88, 0.65)"})[e]}function o(e){return({fast:100,base:200,slow:300,slower:400,slowest:500})[e]+"ms"}function l(e){return({faint:"0 1px 0 0 rgba(22, 29, 37, 0.05)",base:"0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 rgba(63, 63, 68, 0.15)",deep:"0 0 0 1px rgba(6, 44, 82, 0.1), 0 2px 16px rgba(33, 43, 54, 0.08)",layer:"0 31px 41px 0 rgba(32, 42, 53, 0.2), 0 2px 16px 0 rgba(32, 42, 54, 0.08)",transparent:"0 0 0 0 transparent"})[e]}var c=a(26195)},64850:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(37876);a(14232);var n=a(35070);let i=e=>{let{children:t,icon:a,onClick:i,...s}=e;return(0,r.jsx)(n.$,{external:!0,variant:"primary",size:"large",fullWidth:!0,icon:a,onClick:i,...s,children:t})}},74633:e=>{e.exports={img:"remittances_img__yJ_2Y",displayGrid:"remittances_displayGrid__U0t76",skeletonShimmerAnimation:"remittances_skeletonShimmerAnimation__vugmN"}},80828:e=>{e.exports={header:"minimal_header__XpFdq",main:"minimal_main__ZyzSJ",pageContent:"minimal_pageContent__Mj_hS",skeletonShimmerAnimation:"minimal_skeletonShimmerAnimation__EZC7x"}},84578:(e,t,a)=>{"use strict";function r(e){let t={none:0,"extra-tight":.625,tight:1.25,base:2.5,loose:3.125,"extra-loose":5}[e];return 0===t?0:"".concat(t,"rem")}a.d(t,{Y:()=>r})}},e=>{e.O(0,[2026,9879,6494,6960,2120,7930,1286,7083,4465,8202,6265,7396,4974,6190,636,6593,8792],()=>e(e.s=13677)),_N_E=e.O()}]);
2//# sourceMappingURL=remittances-e65d434a594950c7.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.