PageSourceSearch

https://app.creditorwatchcollect.com.au/assets/index-D-fQin5n.js

js creditorwatchcollect.com.au collected 2026-10-04 04:50:04 UTC 6,689 bytes, 2 lines download raw bytes

1var P=Object.defineProperty;var A=(t,r,s)=>r in t?P(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s;var c=(t,r,s)=>A(t,typeof r!="symbol"?r+"":r,s);import{P as n,j as e,R as x,ax as b,y as O,c as S,F as B,aG as D,H as q,o as E,b as N}from"./vendor-n-AGci6T.js";import{G,w as M}from"./withGettingStarted-3vIRSinW.js";import{w as $}from"./withParams-C5NoMu5d.js";import{f as h,h as z,m,F as j,bk as H,B as L,b6 as u,t as W,A as U,bl as d}from"./index-SY5v2qD0.js";import{F as V,E as Q,y as Y,p as _,z as J,u as K,L as X,C as Z}from"./index-CdMkZeLP.js";import{k as ee,w as te,U as se,x as re,y as oe,z as ne}from"./index-DKOKA4Yi.js";import{P as ae,F as p}from"./index-DxBn-1LT.js";import{a as ie,b as ce}from"./last-CHXuAhGN.js";import{E as le}from"./index-jNEoflG5.js";import{R as de}from"./index-Qk94lVFf.js";import{c as me}from"./capitalize-RzLRQeU6.js";import{e as g,B as ue}from"./index-Co3kCK1G.js";import"./StepProgress-WAVahKpe.js";import{R as C,C as a}from"./index-DDau-7tx.js";import{L as pe}from"./List-Br523QXj.js";import{C as he}from"./Connected-CKEnbTSh.js";import{C as xe}from"./index-DW_0hAtv.js";import{C as je}from"./index-D3wkG1OL.js";import{O as fe}from"./index-Cr2l3CE7.js";import{A as ye}from"./index-eBI3PHdN.js";import"./index-BkkPGRKS.js";import"./index-BST6usSS.js";import"./index-CjtDVra2.js";import"./index-DG3sYo10.js";import"./index-B38pdbgQ.js";import"./get-CBRa6hhM.js";import"./stringifyQuery-IAUZ8-yr.js";import"./Tabs-CwDfuyvX.js";import"./index-DJh1KumL.js";import"./index-BVlRWl9S.js";import"./transformAndSort-CsW9Oi9-.js";import"./ListGroup-dXgMFLqn.js";const f=({onHide:t})=>e.jsx(G,{icon:"calendar-2",title:"Scheduled reminders",intro:"Monitor and control scheduled email reminders",footer:e.jsx(z,{appearance:"minimal",onClick:()=>t("scheduleIntro"),children:"Continue →"}),children:e.jsx(h,{maxWidth:512,children:"With the scheduled list you can easily see what's going out in the next few days. You can pause automatic reminders and approve manual reminders."})});f.propTypes={onHide:n.func};f.isHidden=t=>t.scheduleIntro;const v=({count:t})=>e.jsx(le,{icon:"calendar-2",title:"No reminders",children:t>0&&e.jsxs("p",{children:["Change your filters to view ",t," other invoices"]})});v.propTypes={count:n.number};const be=[["auto","Auto send"],["manual","Manual send"],["calls","Calls"],["paused","Paused"]];class Se extends x.Component{render(){return e.jsx(de,{labels:be})}}const I=t=>{let r="@",s=t,o=Math.abs(s)===1?"day":"days";return s<0?(r="due in",s=Math.abs(s)):s===0&&(r="due",o="today",s=""),`${r} ${s} ${o}`},ge=t=>e.jsxs("span",{children:[t.invoiceNumber," ",e.jsx("small",{children:I(t.daysOverdue)})]},t.id),Ce=t=>`${t.invoiceNumber} ${I(t.daysOverdue)}`,w=({invoices:t})=>{const r=ee(t);return r>1?e.jsxs("abbr",{title:b(t,Ce).join(", "),children:[r," invoices"]}):e.jsx("span",{children:b(t,ge)})};w.propTypes={invoices:n.oneOfType([n.array,n.object]).isRequired};const ve={"& small":{fontSize:"1em"}},F=({contact:t,invoices:r,collector:s,collection:o,...l})=>{const{id:i,baseCurrency:R,totalAmountDue:T}=o;return e.jsxs(C,{children:[e.jsx(a,{preset:"checkbox",children:e.jsx(g,{self:{collections:i},dependants:{invoices:o.invoices}})}),e.jsxs(a,{preset:"main",children:[e.jsx(h,{is:"span",fontSize:1,fontWeight:4,children:t.name})," ",e.jsx(h,{is:"span",fontSize:"95%",css:ve,children:e.jsx(w,{invoices:r})})]}),e.jsx(V,{name:"organisation.accountOwnershipEnabled",children:e.jsx(a,{preset:"owner",children:e.jsx(fe,{contactId:t.id,ownerId:t.accountOwnerId})})}),e.jsxs(a,{preset:"collector",children:[e.jsx(he,{...o}),e.jsx(je,{component:xe,collectorId:s&&s.id,size:"xs"})]}),e.jsx(a,{preset:"amountDue",children:e.jsx(O,{value:T,style:"currency",currency:R})}),e.jsx(a,{preset:"actions",children:l.status==="queued"?"Queued":null})]})};F.propTypes={contact:n.object.isRequired,invoices:n.object.isRequired,collector:n.object.isRequired,collection:n.object.isRequired};const Ie=ie("scheduled.search"),we=m("collectionId"),Fe=Y(m("contact")),ke=Q((t,r)=>r),Re=J(m("nextReminder")),Te=_(m("collector")),Pe=(t,r)=>{const s=te(we)(t,r);return(o,l)=>({collection:s,nextReminder:Re(o,s),collector:Te(o,s),contact:Fe(o,s),invoices:ke(o,s.invoices)})},Ae={setSearchFilter:Ie},Oe=S(Pe,Ae)(F),Be=()=>e.jsxs(j,{children:[e.jsx(ue,{}),e.jsx(ye,{})]});class k extends x.PureComponent{constructor(){super(...arguments);c(this,"renderGroup",s=>e.jsx(De,{...s,children:s.collections.map(this.renderCollection)},s.id));c(this,"renderCollection",s=>e.jsx(Oe,{collectionId:s},s));c(this,"renderHeader",({totalCount:s,totalAmount:o})=>
1e.jsxs(e.Fragment,{children:[e.jsx(a,{preset:"main",children:e.jsx(Be,{})}),e.jsx(a,{preset:"amountDue",children:o}),e.jsxs(a,{preset:"actions",children:[s," reminders"]})]}))}render(){return e.jsx(pe,{...this.props,renderRow:this.renderGroup,headerContent:this.renderHeader})}}c(k,"propTypes",{list:n.array.isRequired});function De({id:t,collections:r,date:s,children:o}){const l=x.useMemo(()=>new Date,[]),i=s&&Date.parse(s);return e.jsxs(j,{flexDirection:"column",children:[e.jsxs(C,{bg:"neutral.lightest",children:[e.jsx(a,{preset:"checkbox",py:3,children:e.jsx(g,{self:{temporals:t},dependants:{collections:r}})}),e.jsx(a,{preset:"main",py:3,children:e.jsx(H,{updateIntervalInSeconds:3600**2,value:(i-l)/1e3,units:"seconds",numeric:"auto",children:me})}),e.jsxs(a,{preset:"actions",py:3,children:[e.jsx(B,{day:"2-digit",month:"short",value:i}),","," ",e.jsx(D,{hour:"numeric",minute:"numeric",hour12:!0,value:i})]})]}),e.jsx(L,{children:o})]},t)}const qe=()=>e.jsx(v,{}),Ee=Object.keys(ce),Ne=E.mapValues(t=>t.name),y=({teamMembers:t,...r})=>{const s=K("organisation.accountOwnershipEnabled"),o=[{label:"All users",value:""},{label:"Unassigned",value:se},...t];return e.jsxs(j,{height:"100%",flexDirection:"column",children:[e.jsx(q,{title:"Scheduled list"}),e.jsx(ae,{title:"Schedule",filterNamespace:"scheduled",filters:[e.jsx(p,{name:"collectorId",component:u,values:{...Ne(r.collectors),0:"All workflows"},width:180},"collectorId"),...s?[e.jsx(p,{name:"ownerId",component:u,values:o,width:180},"ownerId")]:[],e.jsx(p,{name:"aged",component:u,placeholder:"Filter by age",values:Ee,width:180},"aged")],pb:0,children:e.jsx(Se,{})}),e.jsx(k,{renderEmpty:qe,...r})]})};y.propTypes={list:n.array.isRequired,collectors:n.object.isRequired,teamMembers:n.array};y.defaultProps={teamMembers:[]};const Ge=N({filters:ne,pagination:d.selectPagination,nextPage:d.selectNextPage,status:d.selectStatus,totalAmount:oe,list:re,organisation:U,organisationId:W,collectors:Z,teamMembers:X}),Me={fetchList:d.request},bt=$(S(Ge,Me)(M(f)(y)));export{bt as default};
2//# sourceMappingURL=index-D-fQin5n.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.