1import{e as y,r as a,j as t,an as p,B as h}from"./index-_aijvlUq.js";import{p as c,P as g}from"./paymentsReport-nJtEMH9X.js";import"./PrintSheet-BwuplKw5.js";import"./format-BheQoBt9.js";function d({children:s}){return t.jsxs(t.Fragment,{children:[t.jsx(p,{}),t.jsx("div",{className:"min-h-[80vh] flex items-center justify-center text-gray-500 text-base px-6 text-center",children:s})]})}function v(){const[s]=y(),n=s.get("start")||"",i=s.get("end")||"",[e,l]=a.useState(null),[o,f]=a.useState(null);return a.useEffect(()=>{let r=!1;const u={...n?{start:n}:{},...i?{end:i}:{}};return Promise.all([c.summary(u),c.payouts(u)]).then(([m,x])=>{r||l({sm:m,pd:x})}).catch(m=>{r||f(m?.message||"Could not load")}),()=>{r=!0}},[n,i]),a.useEffect(()=>{if(!e)return;const r=setTimeout(()=>{try{window.print()}catch{}},500);return()=>clearTimeout(r)},[e]),o?t.jsxs(d,{children:["Couldnât load the summary: ",o]}):e?t.jsxs(t.Fragment,{children:[t.jsx(p,{children:t.jsx(h,{variant:"primary",size:"md",onClick:()=>window.print(),children:"Print"})}),t.jsx(g,{screen:!0,orgName:e.sm.orgName,range:e.sm.range,fiscalYearStart:e.sm.fiscalYearStart,summary:e.sm.summary,payouts:e.pd.payouts,deposits:e.pd.deposits,undeposited:e.pd.undeposited})]}):t.jsx(d,{children:"Preparing the summaryâ¦"})}export{v as PrintPaymentsSummaryPage};
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.