PageSourceSearch

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

js givingcompass.org collected 2026-09-24 09:18:35 UTC 9,512 bytes, 1 lines download raw bytes

1import{P as e}from"./CrK_MUeO.js";import{b as a}from"./CzuCJjyz.js";import{Y as r,m as i,V as t,Z as o,$ as l,e as s,a0 as n,a1 as m,a2 as u,_ as d,p as c,R as p}from"#entry";import{V as g}from"./Ch9sftxZ.js";import{V as v,b as _,c as h}from"./BWrehKB2.js";import{V as y,a as f}from"./DUo8jQh5.js";import{V as b}from"./BWNBbf6k.js";import{V as k}from"./7ukZPocg.js";import{B as j,aG as V,aw as w,C as x,ay as z,$ as U,R as S,az as C,c as M,x as N,av as B,aH as G}from"./nX7w3--X.js";import{_ as I}from"./CJTSTlNu.js";import{A as Y,H as P}from"./BqU3GkkW.js";import{d as E}from"./Bo4i1EJY.js";import{u as A}from"./inpFMjNm.js";import"./CNAuE06t.js";import"./C-u_YpPl.js";import"./CtG27aky.js";import"./CzdGDBjF.js";import"./Boy9wtnx.js";import"./Bs0o2c6W.js";import"./DeYW9Fiz.js";import"./egkXgMqP.js";import"./gjBqqy30.js";import"./m8SgQgoF.js";import"./CVi8ooJQ.js";import"./C2U5VtnP.js";import"./DZ6T0PiR.js";import"./BCcckLnV.js";import"./369w539r.js";import"./DpWTXjFB.js";const R={class:"mb-6"},H={class:"mt-2 ms-n5"},$={class:"mb-6"},F={class:"mt-2 ms-n5"},W={class:"mb-6"},Z={class:"mt-2 ms-n5"},D={class:"mb-6"},L={class:"mt-2 ms-n5"},T={class:"mb-6"},K={class:"mt-2 ms-n5"},O={class:"mb-6"},J={class:"mt-2 ms-n5"},Q=d(j({__name:"EditBenchmarkModal",setup(e){const d=r(),{editModal:c}=a(d);const p=async()=>{if(c.value.errors={},["birth_year","education","income","prior_year_giving","prior_year_volunteer","zipcode"].forEach((e=>{const a=c.value[e];if(a){if("string"==typeof a&&!function(e,a){if("prior_year_giving"===e)return n(a.replace(",",""));if("prior_year_volunteer"===e)return m(a)&&Number(a)<=8760;if("birth_year"===e){const e=new Date;return Number(a)>e.getFullYear()-120&&Number(a)<e.getFullYear()}return"zipcode"!==e||u(a)}(e,a)){let a="number";"birth_year"===e&&(a="year"),"zipcode"===e&&(a="U.S. zip code"),c.value.errors[e]=`Please enter a valid ${a}`}}else c.value.errors[e]="Please enter a value"})),Object.keys(c.value.errors).length)return;let e,a;if(c.value.income){const[r,i]=c.value.income.split("-");e=Number(r),i&&(a=Number(i))}const r={dob:c.value.birth_year||void 0,education:c.value.education||void 0,min_income:e,max_income:a,prior_giving:Number(String(c.value.prior_year_giving).replace(/[$,]/g,"")),prior_volunteering:Number(c.value.prior_year_volunteer),zip:c.value.zipcode||void 0};await d.updateBenchmark(r)};return(e,a)=>(w(),V(g,{modelValue:x(c).open,"onUpdate:modelValue":a[7]||(a[7]=e=>x(c).open=e),width:"auto"},{default:z((()=>[U(v,{rounded:"xl"},{default:z((()=>[U(_,null,{default:z((()=>[a[14]||(a[14]=S("h2",null,"Update Your Benchmark",-1)),a[15]||(a[15]=S("p",null,"You can edit any or all of the response below to adjust your Benchmark.",-1)),U(i,null,{default:z((()=>[U(y,null,{default:z((()=>[U(f,{cols:"12",sm:"6",class:"ps-5 py-2"},{default:z((()=>[S("div",R,[S("h5",H,[U(t,{icon:"mdi-heart"}),a[8]||(a[8]=C(" Prior Giving ",-1))]),U(b,{modelValue:x(c).prior_year_giving,"onUpdate:modelValue":a[0]||(a[0]=e=>x(c).prior_year_giving=e),class:"gtm-benchmark-prior-giving",type:"text",inputmode:"decimal",placeholder:"Amount","error-messages":x(c).errors.prior_year_giving,"hide-details":"auto"},null,8,["modelValue","error-messages"])]),S("div",$,[S("h5",F,[U(t,{icon:"mdi-clock-outline"}),a[9]||(a[9]=C(" Volunteering ",-1))]),U(b,{modelValue:x(c).prior_year_volunteer,"onUpdate:modelValue":a[1]||(a[1]=e=>x(c).prior_year_volunteer=e),class:"gtm-benchmark-prior-volunteer",type:"text",inputmode:"decimal",placeholder:"Hours","error-messages":x(c).errors.prior_year_volunteer,"hide-details":"auto"},null,8,["modelValue","error-messages"])]),S("div",W,[S("h5",Z,[U(t,{icon:"mdi-map-marker"}),a[10]||(a[10]=C(" Zip Code ",-1))]),U(b,{modelValue:x(c).zipcode,"onUpdate:modelValue":a[2]||(a[2]=e=>x(c).zipcode=e),class:"gtm-benchmark-zip",type:"text",inputmode:"decimal",placeholder:"Zip Code","error-messages":x(c).errors.zipcode,"hide-details":"auto"},null,8,["modelValue","error-messages"])])])),_:1}),U(f,{cols:"12",sm:"6",class:"pe-5 py-2"},{default:z((()=>[S("div",D,[S("h5",L,[U(t,{icon:"mdi-cake-variant"}),a[11]||(a[11]=C(" Birth Year ",-1))]),U(b,{modelValue:x(c).birth_year,"onUpdate:modelValue":a[3]||(a[3]=e=>x(c).birth_year=e),class:"gtm-benchmark-birthyear",type:"text",inputmode:"decimal",placeholder:"Birth Year","error-messages":x(c).errors.birth_year,"hide-details":"auto"},null,8,["modelValue","error-messages"])]),S("div",T,[S("h5",K,[U(t,{icon:"mdi-school"}),a[12]||(a[12]=C(" Education ",-1))]),U(k,{modelValue:x(c).education,"onUpdate:modelValue":a[4]||(a[4]=e=>x(c).education=e),items:x(o),"item-title":"text","item-value":"value",class:"gtm-benchmark-education","error-messages":x(c).errors.education,"hide-details":"auto"},null,8,["modelValue","items","error-messages"])]),S("div",O,[S("h5",J,[U(t,{icon:"mdi-currency-usd"}),a[13]||(a[13]=C(" Income ",-1))]),U(k,{modelValue:x(c).income,"onUpdate:modelValue":a[5]||(a[5]=e=>x(c).income=e),items:x(l),"item-title":"text","item-value":"value",class:"gtm-benchmark-income","error-messages":x(c).errors.income,"hide-details":"auto"},null,8,["modelValue","items","error-messages"])])])),_:1})])),_:1})])),_:1})])),_:1}),U(h,{class:"justify-end"},{default:z((()=>[U(s,{color:"cta",variant:"text",onClick:a[6]||(a[6]=e=>x(c).open=!1)},{default:z((()=>[...a[16]||(a[16]=[C(" Cancel ",-1)])])),_:1}),U(s,{color:"cta",rounded:"",variant:"flat",onClick:p},{default:z((()=>[...a[17]||(a[17]=[C(" Update ",-1)])])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"]))}}),[["__scopeId","data-v-818336fd"]]),X={key:0},q={class:"my-10 d-flex align-center"},ee={key:1},ae={key:0,class:"my-0"},re={key:1,class:"my-0"},ie={key:2,class:"my-0"},te={key:3},oe=d(j({__name:"PlannerCalculator",setup(e){const t=r(),{benchmark:o,givingWeights:l,volunteeringWeights:n,isFallback:m,isLoading:u}=a(t),d=()=>{t.openEditModal()},p=M((()=>
1!!o.value.data.user_id)),g=M((()=>Number(o.value.data.prior_giving)>=Number(o.value.data.cash_leaders_like_me))),_=M((()=>Number(o.value.data.prior_giving)>=Number(o.value.data.cash_like_me)));return N((()=>{t.loadUserBenchmark()})),(e,a)=>x(u)?(w(),V(i,{class:"my-10 py-10",key:"loading"},{default:z((()=>[U(y,{justify:"center",align:"center"},{default:z((()=>[U(f,{cols:"auto"},{default:z((()=>[U(c,{indeterminate:"",color:"primary",size:"64"})])),_:1})])),_:1})])),_:1})):(w(),V(i,{key:1,class:"ma-0 pa-0"},{default:z((()=>[U(Q),x(p)?(w(),B("div",ee,[a[5]||(a[5]=S("p",null,"How does your past giving and your giving plan compare to others like you?",-1)),U(I,{"error-id":"updateBenchmarkResults"}),U(Y,{"birth-year":x(o).data.dob,"education-code":x(o).data.education,"max-income":String(x(o).data.max_income),"min-income":String(x(o).data.min_income),"prior-giving":String(x(o).data.prior_giving),"prior-volunteering":String(x(o).data.prior_volunteering),zip:x(o).data.zip},null,8,["birth-year","education-code","max-income","min-income","prior-giving","prior-volunteering","zip"]),a[6]||(a[6]=S("h3",null,"My Giving",-1)),x(g)?(w(),B("p",ae," Wow! You've reached Giving Leader status. Keep it going! ")):x(_)?(w(),B("p",re," Nice work! Keep going and become a Giving Leader! ")):G("",!0),x(m)?(w(),B("p",ie," Based on partial criteria. People similar to you weren't found when using all input criteria. ")):G("",!0),U(P,{animate:!x(o).recalculating,color:"giving-green",weights:x(l)},null,8,["animate","weights"]),a[7]||(a[7]=S("h3",null,"My Volunteering",-1)),x(m)?(w(),B("p",te," Based on partial criteria. People similar to you weren't found when using all input criteria. ")):G("",!0),U(P,{animate:!x(o).recalculating,color:"giving-green",weights:x(n)},null,8,["animate","weights"]),U(v,{color:"#E9EAEA",flat:""},{default:z((()=>[U(i,null,{default:z((()=>[U(y,null,{default:z((()=>[U(f,null,{default:z((()=>[...a[2]||(a[2]=[S("p",null,"Update your information and get new benchmark values. This will not affect your giving plan.",-1)])])),_:1}),U(f,{cols:"auto",class:"d-flex align-center"},{default:z((()=>[U(s,{class:"font-weight-bold",color:"primary",variant:"flat",rounded:"",onClick:d},{default:z((()=>[...a[3]||(a[3]=[C(" Update ",-1)])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),U(y,null,{default:z((()=>[U(f,{md:"9"},{default:z((()=>[...a[4]||(a[4]=[S("p",{class:"text-medium-emphasis"},[S("small",null,"Source: The Giving Compass benchmark algorithm uses the Panel Study of Income Dynamics, public use dataset - produced and distributed by the Survey Research Center, Institute for Social Research, University of Michigan, Ann Arbor, MI (2017); and the 2019 Survey of Consumer Finances.")],-1)])])),_:1})])),_:1}),U(Q)])):(w(),B("div",X,[a[1]||(a[1]=S("p",null,"You still need to create a goal. Get started on your journey to more meaningful giving!",-1)),S("div",q,[U(s,{to:"/giving-goals",flat:"",rounded:"",class:"mx-auto",color:"primary"},{default:z((()=>[...a[0]||(a[0]=[C("Set My Giving Goals ",-1)])])),_:1})])]))])),_:1}))}}),[["__scopeId","data-v-0c697245"]]),le=j({__name:"measure-impact",setup(a){E({name:p.MeasureImpact});const{setSEO:r}=A();return r({title:"Measure Impact",description:"Calculate and track the real-world impact of your charitable giving. Use our tools to understand how your donations create measurable positive change.",keywords:["impact measurement","donation calculator","giving effectiveness","charitable impact tracking","philanthropy analytics","social return on investment"]}),(a,r)=>(w(),V(e,{class:"mb-10",title:"Measure My Impact"},{default:z((()=>[U(oe,{class:"max-page-width"})])),_:1}))}});export{le 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.