PageSourceSearch

https://gg.givingcompass.org/_nuxt/C8v8jA2Z.js

js givingcompass.org collected 2026-09-24 09:18:45 UTC 6,045 bytes, 1 lines download raw bytes

1import{_ as e}from"./DpWTXjFB.js";import{u as t}from"./BdsANIqb.js";import{u as a}from"./9iAuHKQB.js";import{c as r,V as s,T as c,_ as i}from"#entry";import{V as l}from"./CnLvr--j.js";import{V as o}from"./BcVEr5iZ.js";import{V as d}from"./B9goy8s8.js";import{B as n,r as m,c as p,x as u,av as v,C as _,$ as y,U as b,R as f,aH as g,ay as h,ax as x,aT as k,aw as w,az as j,aq as T,aG as $,a8 as C}from"./nX7w3--X.js";import"./CzuCJjyz.js";import"./CNAuE06t.js";import"./C-u_YpPl.js";import"./CtG27aky.js";import"./CzdGDBjF.js";const S={key:0,class:"loading-state"},U={key:0,class:"metrics-table-container"},z={class:"type-cell"},I={class:"summary-cell"},N={class:"value-cell text-right"},F={class:"metric-value"},R={key:0,class:"blurred-row","aria-hidden":"true"},M={key:1,class:"blurred-row","aria-hidden":"true"},P={key:2,class:"locked-row"},V={colspan:"3",class:"locked-cell"},B={class:"metrics-cards"},K={class:"metric-card__body"},L={class:"metric-card__row"},D={class:"metric-card__value"},E={class:"metric-card__description"},O={key:0,class:"metrics-cards"},q={key:1,class:"empty-state"},A=i(n({__name:"metrics",props:{nonprofit:{}},setup(i){const n=i,A=t(),G=a(),H=r(),J=m([]),Q=m(0),W=m({}),X=m(!0),Y=p((()=>!H.isPro&&J.value.length>0));function Z(e,t){let a;return a=e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e.toLocaleString(),t?`${a} ${t}`:a}function ee(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function te(e){return e.split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ")}return u((async()=>{try{const e=await A.getMetricsForNonprofit(n.nonprofit.ein);J.value=e.items,Q.value=e.total;const t=await G.getFeedbackStatus(n.nonprofit.ein),a={};for(const r of t)"METRIC"===r.item_type&&r.accepted&&(a[r.item_id]=r.date);W.value=a}catch(e){console.error("Error loading metrics:",e)}finally{X.value=!1}})),(t,a)=>{const r=e;return w(),v("div",null,[_(X)?(w(),v("div",S,[y(o,{type:"table-row@5"})])):(w(),v(b,{key:1},[_(J).length>0?(w(),v("div",U,[y(l,{class:"metrics-table",density:"comfortable"},{default:h((()=>[a[2]||(a[2]=f("thead",null,[f("tr",null,[f("th",{class:"text-left"},"Type"),f("th",{class:"text-left"},"Summary"),f("th",{class:"text-right"},"Value")])],-1)),f("tbody",null,[(w(!0),v(b,null,x(_(J),(e=>(w(),v("tr",{key:e.metric_id},[f("td",z,[y(r,{to:`/impact?type=metrics&metricType=${encodeURIComponent(e.metric_type)}`,class:"type-badge type-badge--clickable"},{default:h((()=>[j(T(te(e.metric_type)),1)])),_:2},1032,["to"])]),f("td",I,T(e.metric_text),1),f("td",N,[f("span",F,[j(T(Z(e.metric_value,e.unit))+" ",1),_(W)[e.metric_id]?(w(),$(d,{key:0,location:"top"},{activator:h((({props:e})=>[y(s,C({ref_for:!0},e,{icon:"mdi-check-circle-outline",size:"16",color:"#05ab84",class:"approved-icon"}),null,16)])),default:h((()=>[j(" Nonprofit verified this metric on "+T(ee(_(W)[e.metric_id])),1)])),_:2},1024)):g("",!0)])])])))),128)),_(Y)?(w(),v("tr",R,[...a[0]||(a[0]=[f("td",{class:"type-cell"},[f("span",{class:"type-badge blurred-text"},"Community")],-1),f("td",{class:"summary-cell"},[f("span",{class:"blurred-text"},"Number of individuals served through outreach programs")],-1),f("td",{class:"value-cell text-right"},[f("span",{class:"metric-value blurred-text"},"12.4K")],-1)])])):g("",!0),_(Y)?(w(),v("tr",M,[...a[1]||(a[1]=[f("td",{class:"type-cell"},[f("span",{class:"type-badge blurred-text"},"Financial")],-1),f("td",{class:"summary-cell"},[f("span",{class:"blurred-text"},"Total grant dollars distributed to partner organizations")],-1),f("td",{class:"value-cell text-right"},[f("span",{class:"metric-value blurred-text"},"$2.1M")],-1)])])):g("",!0),_(Y)?(w(),v("tr",P,[f("td",V,[y(r,{to:_(c).SUBSCRIPTION,class:"locked-content"},{default:h((()=>[y(s,{icon:"mdi-lock",size:"20",color:"#9ca3af"}),f("span",null,"Upgrade to Pro to see all "+T(_(Q))+" metrics",1)])),_:1},8,["to"])])])):g("",!0)])])),_:1}),f("div",B,[(w(!0),v(b,null,x(_(J),(e=>(w(),v("div",{key:`card-${e.metric_id}`,class:"metric-card"},[f("div",K,[f("div",L,[y(r,{to:`/impact?type=metrics&metricType=${encodeURIComponent(e.metric_type)}`,class:"type-badge type-badge--clickable"},{default:h((()=>[j(T(te(e.metric_type)),1)])),_:2},1032,["to"]),f("span",D,[j(T(Z(e.metric_value,e.unit))+" ",1),_(W)[e.metric_id]?(w(),$(d,{key:0,location:"top"},{activator:h((({props:e})=>[y(s,C({ref_for:!0},e,{icon:"mdi-check-circle-outline",size:"16",color:"#05ab84",class:"approved-icon"}),null,16)])),default:h((()=>[j(" Nonprofit verified this metric on "+T(ee(_(W)[e.metric_id])),1)])),_:2},1024)):g("",!0)])]),f("p",E,T(e.metric_text),1)])])))),128))]),_(Y)?(w(),v("div",O,[a[3]||(a[3]=k('<div class="metric-card blurred-row" aria-hidden="true" data-v-06ec9308><div class="metric-card__body" data-v-06ec9308><div class="metric-card__row" data-v-06ec9308><span class="type-badge blurred-text" data-v-06ec9308>Community</span><span class="metric-card__value blurred-text" data-v-06ec9308>12.4K</span></div><p class="metric-card__description blurred-text" data-v-06ec9308>Number of individuals served through outreach programs</p></div></div><div class="metric-card blurred-row" aria-hidden="true" data-v-06ec9308><div class="metric-card__body" data-v-06ec9308><div class="metric-card__row" data-v-06ec9308><span class="type-badge blurred-text" data-v-06ec9308>Financial</span><span class="metric-card__value blurred-text" data-v-06ec9308>$2.1M</span></div><p class="metric-card__description blurred-text" data-v-06ec9308>Total grant dollars distributed to partner organizations</p></div></div>',2)),y(r,{to:_(c).SUBSCRIPTION,class:"locked-card"},{default:h((()=>[y(s,{icon:"mdi-lock",size:"20",color:"#9ca3af"}),f("span",null,"Upgrade to Pro to see all "+T(_(Q))+" metrics",1)])),_:1},8,["to"])])):g("",!0)])):(w(),v("div",q,[y(s,{icon:"mdi-chart-bar",size:"48",color:"grey"}),a[4]||(a[4]=f("p",null,"No metrics available for this nonprofit.",-1))]))],64))])}}}),[["__scopeId","data-v-06ec9308"]]);export{A 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.