PageSourceSearch

https://get.checkfront.com/lib/vite/RevenueReport-d5b7d7c5.js

js checkfront.com collected 2026-10-02 02:17:49 UTC 5,259 bytes, 1 lines download raw bytes

1import{a as B,b as U,e as Y,c,j as t,F as z,P as a}from"./componentLoader.jsx-2026.10.01-3d77ab87.js";import{r as s}from"./logger-3e1e3eff.js";import{a as A}from"./index-213dd4d3.js";import{f as S,v as I}from"./universe.js-2026.10.01-3d77ab87.js";import{c as G}from"./capitalize-7d1af713.js";import{E as N}from"./EmptyState-cc61b9d7.js";import{E as l}from"./Link-bec2c870.js";import{P as q,a as J}from"./Page-6cd9626c.js";import{T as K}from"./Table-78d06123.js";import{T as Q}from"./Text-db1ebb07.js";import{d as V,p as W,f as X}from"./dates-d2ad9abb.js";import{c as Z,a as tt,f as rt}from"./hooks-70a7028d.js";import{F as et}from"./FilterRow-d083834f.js";import{B as ot}from"./BannerOnboard-0c6cc060.js";import{c as at,d as st,b as u}from"./commonReportColumns-cc3d5b88.js";import{D as it}from"./DateFilter-c37baa56.js";import{S as nt,R as pt}from"./RawHTMLChart-8a846b8c.js";import{R as mt}from"./ReportSecondaryActions-8090174b.js";import"./vendor-21ae10b1.js";import"./brand-387037d2.js";import"./toString-4b4600cf.js";import"./isSymbol-34885b27.js";import"./_baseSlice-35988e44.js";import"./index-e642497c.js";import"./isEqual-8f2d02ec.js";import"./_baseIsEqual-8f542891.js";import"./_Uint8Array-4a201bc7.js";import"./eq-9168d086.js";import"./_equalByTag-f809a93d.js";import"./_getAllKeys-a79fe303.js";import"./_isIndex-1f105582.js";import"./tokens-95b521bf.js";import"./filterParamsToQueryString-45819f69.js";import"./index-6a18cc6d.js";import"./orderBy-697545e4.js";import"./_baseOrderBy-8b0fc0ae.js";import"./_baseIteratee-2da5a91f.js";import"./_baseMap-d2567cee.js";import"./_baseEach-5996395c.js";import"./debounce-a96a8bf6.js";import"./toNumber-8f88376b.js";import"./Button-daed7707.js";import"./Tooltip-9af70d1f.js";import"./Columns-7dbee6ce.js";import"./customColumns-1c693f03.js";import"./Banner-1832e2d9.js";import"./Image-957b8b4e.js";import"./staffside.js-2026.10.01-3d77ab87.js";import"./Stack-f3325040.js";import"./styled-3cf1ada0.js";import"./objectWithoutPropertiesLoose-4f48578a.js";import"./clsx.m-1229b3e0.js";import"./styled-0757f9a4.js";import"./extendSxProp-dc84791e.js";import"./Box-68545293.js";import"./index-b6a278bc.js";import"./index-2506ba77.js";import"./TableCell-bc13db52.js";import"./TableHeader-146e1398.js";import"./StatusDot-969459df.js";import"./CurrencyField-7dd4444c.js";import"./TextField-9054bcd3.js";import"./CurrencyLabel-7f777d48.js";import"./customerside.js-2026.10.01-3d77ab87.js";import"./DropDown2-e3cea584.js";import"./DateRangePicker-86f5a8c5.js";import"./moment-3238fc2d.js";import"./Visible-444530d1.js";import"./VisibleDisabled-35c3beb4.js";import"./Download-b378aa08.js";import"./Upload-0892eabe.js";import"./HelpButton-7bf06877.js";import"./HelpCircle-0303da15.js";import"./Grid-95575dae.js";import"./MessageCard-9adb8c14.js";import"./usePaywall-28cf01a3.js";dt.propTypes={datetype:a.string,dateOptions:a.array,startDate:a.string,endDate:a.string,rows:a.array,tally:a.object,rawChartHTML:a.string,hideReportBanner:a.bool,csrfToken:a.string};function dt({datetype:R,dateOptions:w,startDate:C,endDate:D,rows:T,tally:_,rawChartHTML:v,hideReportBanner:O,csrfToken:x}){const r=B(),L=U(),[f,F]=s.useState(T),[p,M]=s.useState(_),[P,h]=s.useState(!1),[e,E]=s.useState(R),[i,g]=s.useState(C),[n,y]=s.useState(D),[d,H]=s.useState(!0),b=Y();return Z(()=>{async function m(){h(!0);const{data:o}=await A("/reports/revenue/",{params:{format:"json",date:e,start_date:e==="C"&&i,end_date:e==="C"&&n}});rt(()=>{F(o.rows),M(o.tally),g(o.startDate),y(o.endDate),h(!1)}),$.getScript(`/dashboard/revenue/?${$.param({start_date:o.startDate,end_date:o.endDate})}`)}m()},[e,e==="C"&&i,e==="C"&&n]),tt({date:e,start_date:e==="C"?i:void 0,end_date:e==="C"?n:void 0,hide_chart:d?0:1}),c(q,{className:"margin-bottom-4",width:"lg",pageHeader:t(J.PageHeader,{title:r.heading,subtitle:V({startDate:i,endDate:n,translations:r}),content:c(ot,{csrfToken:x,reportId:"revenueReport",hideBanner:O,imageSrc:"/images/reports/revenue-icon.png",children:[r.bannerOnboardInfo," ",!b.isHighlander&&c(z,{children:[r.learnMore," ",t(l,{url:"https://support.checkfront.com/hc/en-us/articles/115004877014-Reports-Revenue-Report",external:!0,children:r.bannerOnboardSupport})," ",r.or," "]}),b.isHighlander?`${G(r.bannerOnboardSee)} `:`${r.bannerOnboardSee} `,t(l,{url:"/reports/",external:!0,children:r.bannerOnboardOverview})]}),secondaryActions:t(mt,{helpUrl:"https://support.checkfront.com/hc/en-us/articles/115004877014-Reports-Revenue-Report",children:t(nt,{showGraph:d,setShowGraph:H})})}),children:[t(pt,{hidden:!d,html:v}),t(et,{children:t(it,{dateOptions:w,datetype:e,setDatetype:E,startDate:i,setStartDate:g,endDate:n,setEndDate:y})}),f.length?t(K,{isLoading:P,defaultPageSize:20,size:"sm",data:f,columns:[at({accessor:"month",Cell:({value:m})=>{const o=W(m),j=S(o,"yyyy-LL-01"),k=S(I(o),"yyyy-LL-dd");return t(l,{url:L.checkReportPermission("transaction")&&`/reports/transaction/?date=C&start_date=${j}&end_date=${k}`,children:X(m,"MMMM YYYY")})},Footer:t(Q,{weight:"bold",children:r.total})}),st({accessor:"transactions_count",tally:p}),u({accessor:"payments_amount",tally:p}),u({accessor:"refunds_amount",tally:p}),u({accessor:"total",tally:p})],tableOptions:{defaultSorted:[{id:"month",desc:!1}]}}):t(N,{})]})}
1export{dt as default};

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.