PageSourceSearch

https://grouprev.com/build/assets/FundraiserPageDashboardPage-DJYcBj6q.js

js grouprev.com collected 2026-09-26 00:48:53 UTC 6,745 bytes, 2 lines download raw bytes

1import{_ as R,s as P,T as w,a as x,ac as C,c as d,o,b as _,f as n,e as r,r as s,w as l,d as g,g as T,a3 as p}from"./app-6TUkk-lE.js";import{T as F,a as I,R as B}from"./recent-donations-table-CfiILtFv.js";import{D as V}from"./dashboard-donations-chart-t4SmKT7q.js";import"./donation-details-modal-u5EPBac5.js";const k={name:"FundraiserPageDashboardPage",components:{TwLoadingSpinner:C,TwCard:x,TwButton:w,DashboardDonationsChart:V,RecentDonationsTable:B,TwDashboardRightReportBox:I,TwDashboardReportBox:F,TwContainerFullWidth:P},props:{fundraiserPageId:{type:Number,required:!0}},data(){return{LoadingFetchingReportingData:!1,ReportingData:{lifetime_donations:1500,past_12_months:0,past_12_months_previous:0,past_30_days:0,past_30_days_previous:0,past_7_days:0,past_7_days_previous:0,past_24_hours:0,past_24_hours_previous:0,total_page_views:14210,unique_visitors:14210,total_donations:14210,average_donation:14210,highest_donation:14210}}},computed:{fundraiserPage(){return p().getItemById(this.fundraiserPageId)},fundraiserPageCurrency(){return this.ReportingData?.currency_metadata?.code||this.ReportingData?.currency||this.fundraiserPage?.currency_metadata?.code||this.fundraiserPage?.currency||this.fundraiserPage?.fundraiser?.currency_metadata?.code||this.fundraiserPage?.fundraiser?.currency||this.fundraiserPage?.fundraiser?.settings?.currency||"USD"}},mounted(){p().fetchItemById(this.fundraiserPageId),this.fetchReportingData()},methods:{async fetchReportingData(){try{this.ValidationErrorMessage=null,this.LoadingFetchingReportingData=!0,this.ReportingData=await p().fetchDashboardReport(this.fundraiserPageId),this.LoadingFetchingReportingData=!1}catch(i){throw console.error(i),this.LoadingFetchingReportingData=!1,i.response&&(this.ValidationErrorMessage=i.response.data),i}}}},L={key:0},N={class:"grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-5 gap-6"},q={class:"grid grid-cols-1 md:grid-cols-8 gap-6"},E={class:"col-span-6"},M={class:"flex flex-col h-[27rem]"},S={class:"col-span-6 md:col-span-2 md:border-l-gray-200 md:border-s md:-mr-6 md:-my-6"},U={class:"w-full flex flex-col divide-y-2 divide-gray-100"},A={class:"flex gap-5 justify-between mb-5"};function H(i,t,v,j,e,a){const u=s("tw-dashboard-report-box"),h=s("dashboard-donations-chart"),c=s("tw-dashboard-right-report-box"),y=s("tw-card"),D=s("tw-button"),b=s("recent-donations-table"),f=s("tw-loading-spinner"),m=s("tw-container-full-width");return o(),d("div",null,[a.fundraiserPage&&!e.LoadingFetchingReportingData?(o(),d("div",L,[n("div",N,[r(u,{title:"Lifetime Donations",value:e.ReportingData.lifetime_donations,"previous-value":e.ReportingData.lifetime_donations_previous,"values-by-currency":e.ReportingData.lifetime_donations_by_currency,currencies:e.ReportingData.currencies,currency:a.fundraiserPageCurrency},null,8,["value","previous-value","values-by-currency","currencies","currency"]),r(u,{title:"Past 12 Months",value:e.ReportingData.past_12_months,"previous-value":e.ReportingData.past_12_months_previous,"values-by-currency":e.ReportingData.past_12_months_by_currency,"previous-values-by-currency":e.ReportingData.past_12_months_previous_by_currency,currencies:e.ReportingData.currencies,currency:a.fundraiserPageCurrency},null,8,["value","previous-value","values-by-currency","previous-values-by-currency","currencies","currency"]),r(u,{title:"Past 30 Days",value:e.ReportingData.past_30_days,"previous-value":e.ReportingData.past_30_days_previous,"values-by-currency":e.ReportingData.past_30_days_by_currency,"previous-values-by-currency":e.ReportingData.past_30_days_previous_by_currency,currencies:e.ReportingData.currencies,currency:a.fundraiserPageCurrency},null,8,["value","previous-value","values-by-currency","previous-values-by-currency","currencies","currency"]),r(u,{title:"Past 7 Days",value:e.ReportingData.past_7_days,"previous-value":e.ReportingData.past_7_days_previous,"values-by-currency":e.ReportingData.past_7_days_by_currency,"previous-values-by-currency":e.ReportingData.past_7_days_previous_by_currency,currencies:e.ReportingData.currencies,currency:a.fundraiserPageCurrency},null,8,["value","previous-value","values-by-currency","previous-values-by-currency","currencies","currency"]),r(u,{title:"Past 24 Hours",value:e.ReportingData.past_24_hours,"previous-value":e.ReportingData.past_24_hours_previous,"values-by-currency":e.ReportingData.past_24_hours_by_currency,"previous-values-by-currency":e.ReportingData.past_24_hours_previous_by_currency,currencies:e.ReportingData.currencies,currency:a.fundraiserPageCurrency},null,8,["value","previous-value","values-by-currency","previous-values-by-currency","currencies","currency"])]),r(y,{class:"mt-6 bg-white"},{default:l(()=>[n("div",q,[n("div",E,[t[0]||(t[0]=n("h4",{class:"mb-8"}," Donations Over Time ",-1)),n("div",M,[e.ReportingData&&(e.ReportingData.donations_chart_by_currency||e.ReportingData.donations_chart)?(o(),_(h,{key:0,"report-data":e.ReportingData.donations_chart,"report-data-by-currency":e.ReportingData.donations_chart_by_currency,currencies:e.ReportingData.currencies},null,8,["report-data","report-data-by-currency","currencies"])):g("",!0)])]),n("div",S,[n("div",U,[r(c,{title:"Total Page Views",value:e.ReportingData.total_page_views},null,8,["value"]),r(c,{title:"Unique Visitors",value:e.ReportingData.unique_visitors},null,8,["value"]),r(c,{title:"Total Donations",value:e.ReportingData.total_donations},null,8,["value"]),r(c,{title:"Average Donation","value-type":"currency",value:e.ReportingData.average_donation,"values-by-currency":e.ReportingData.average_donation_by_currency,currencies:e.ReportingData.currencies,currency:a.fundraiserPageCurrency},null,8,["value","values-by-currency","currencies","currency"]),r(c,{title:"Highest Donation","value-type":"currency",value:e.ReportingData.highest_donation,"values-by-currency":e.ReportingData.highest_donation_by_currency,currencies:e.ReportingData.currencies,currency:a.fundraiserPageCurrency},null,8,["value","values-by-currency","currencies","currency"])])])])]),_:1}),r(y,{class:"bg-white mt-6"},{default:l(()=>[n("div",A,[t[2]||(t[2]=n("h4",null," Recent Donations ",-1)),r(D,{size:"sm",to:{name:"Fun
1draiserPageDonationsPage",params:{fundraiserPageId:v.fundraiserPageId}},variant:"secondary"},{default:l(()=>[...t[1]||(t[1]=[T(" View All ",-1)])]),_:1},8,["to"])]),a.fundraiserPage?(o(),_(b,{key:0,class:"mt-8","fundraiser-page":a.fundraiserPage},null,8,["fundraiser-page"])):g("",!0)]),_:1})])):e.LoadingFetchingReportingData?(o(),_(f,{key:1})):(o(),_(m,{key:2},{default:l(()=>[...t[3]||(t[3]=[n("h1",{class:"text-center my-20"}," Unable to load fundraiser ",-1)])]),_:1}))])}const J=R(k,[["render",H]]);export{J as default};
2//# sourceMappingURL=FundraiserPageDashboardPage-DJYcBj6q.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.