PageSourceSearch

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

js givingcompass.org collected 2026-09-24 09:18:09 UTC 12,134 bytes, 1 lines download raw bytes

1import{_ as t}from"./in4c0Ziq.js";import{N as e}from"./CpfFiYUB.js";import{B as a,r as o,c as r,w as s,x as i,q as n,aG as l,aO as u,av as p,aH as c,S as d,R as m,a0 as v,$ as g,ay as f,T as h,n as y,aw as _,aq as b,U as j,ax as w,C as k,i as x}from"./nX7w3--X.js";import{j as A,_ as C,f as S,k as q,R as E}from"#entry";import{u as I}from"./VF_Xyffv.js";import{d as $}from"./Bo4i1EJY.js";import{u as L}from"./inpFMjNm.js";import"./CzuCJjyz.js";import"./hO_nKiE5.js";import"./DodaJSdZ.js";import"./B9goy8s8.js";import"./CNAuE06t.js";import"./C-u_YpPl.js";import"./CtG27aky.js";import"./CzdGDBjF.js";import"./YLlTfYRz.js";import"./DeYW9Fiz.js";import"./DpWTXjFB.js";import"./CyrvrKgH.js";import"./IuZvmP1D.js";import"./CAgLKPVn.js";import"./BWrehKB2.js";import"./Bs0o2c6W.js";import"./Ch9sftxZ.js";import"./Boy9wtnx.js";import"./D-JenzQK.js";import"./BWNBbf6k.js";import"./egkXgMqP.js";import"./c2OJgEPi.js";import"./DvvXTHwb.js";import"./ByPbsARR.js";import"./CDUU9Wma.js";import"./BZRbIOp9.js";import"./BzdmcfQK.js";import"./BVL8vidX.js";import"./D5gjRk3K.js";import"./BCcckLnV.js";import"./CVi8ooJQ.js";import"./C2U5VtnP.js";import"./gjBqqy30.js";import"./m8SgQgoF.js";import"./D9lR2kcy.js";import"./depwn4iM.js";import"./ClUl-4LI.js";import"./BjwKG7kC.js";import"./D_KZxxer.js";import"./CZ21xYpZ.js";import"./qKU77sjr.js";import"./z4a_ZMkh.js";import"./DS5vur34.js";import"./D7YexoFe.js";import"./7ukZPocg.js";import"./DZ6T0PiR.js";import"./369w539r.js";import"./CnLvr--j.js";import"./DG_9ismW.js";import"./BnwUJFqU.js";import"./CtdwCalC.js";import"./CrSOwifn.js";import"./Tz3IgIqQ.js";const R=["aria-labelledby"],F={key:0,class:"gc-tour__dim"},N={class:"gc-tour__progress"},V={key:0,class:"gc-tour__progress-label"},T={class:"gc-tour__progress-count"},W=["aria-label"],G={key:0,class:"gc-tour__pro"},O={key:0,class:"gc-tour__pro-badge"},z={class:"gc-tour__pro-name"},H={class:"gc-tour__pro-price"},M={key:1,class:"gc-tour__logo"},P={class:"gc-tour__body-wrap"},B={key:0,class:"gc-tour__tag"},D={key:1,class:"gc-tour__eyebrow"},U=["id"],Y={key:2,class:"gc-tour__text"},J={key:3,class:"gc-tour__list"},K={key:1,class:"gc-tour__footnote"},Q={class:"gc-tour__nav"},X=14,Z=12,tt=C(a({__name:"OnboardingTour",props:{modelValue:{type:Boolean,default:!0},steps:{},startIndex:{default:0}},emits:["update:modelValue","finish","skip","change","action"],setup(t,{emit:e}){const a=t,k=e,x=o(a.modelValue),C=o(a.startIndex),S=o(!0),q=o("right"),E=o(null),I=o({}),$=o({}),L=o({}),tt=r((()=>a.steps.length)),et=r((()=>a.steps[C.value])),at=r((()=>0===C.value)),ot=r((()=>C.value===tt.value-1)),rt=r((()=>tt.value?(C.value+1)/tt.value*100:0)),st=r((()=>!(!et.value?.primaryAction&&!et.value?.secondaryAction))),it=r((()=>`gc-tour-title-${C.value}`));function nt(){x.value=!1,k("update:modelValue",!1)}function lt(){if(ot.value)return ct();C.value+=1}function ut(){at.value||(C.value-=1)}function pt(){k("skip"),nt()}function ct(){k("finish"),nt()}function dt(){et.value?.primaryAction&&k("action",{action:et.value.primaryAction,index:C.value}),ct()}function mt(){et.value?.secondaryAction&&k("action",{action:et.value.secondaryAction,index:C.value}),ct()}function vt(t){"Escape"===t.key?pt():"ArrowRight"!==t.key||st.value?"ArrowLeft"!==t.key||st.value||ut():lt()}function gt(t,e,a){return Math.max(e,Math.min(t,a))}async function ft(){await y();const t=et.value;if(!t)return;const e="tooltip"===t.variant&&t.target?document.querySelector(t.target):null;if(!e)return S.value=!0,I.value={},$.value={},void(L.value={});S.value=!1,e.scrollIntoView({block:"nearest",inline:"nearest"}),await y();const a=e.getBoundingClientRect(),o=E.value,r=o?.offsetWidth??320,s=o?.offsetHeight??240,i=t.placement&&"auto"!==t.placement?t.placement:function(t,e,a){const o=function(t){return{right:window.innerWidth-t.right,left:t.left,bottom:window.innerHeight-t.bottom,top:t.top}}(t);return o.right>=e+X+Z?"right":o.left>=e+X+Z?"left":o.bottom>=a+X+Z?"bottom":o.top>=a+X+Z?"top":Object.keys(o).reduce(((t,e)=>o[t]>=o[e]?t:e))}(a,r,s);q.value=i;let n=0,l=0;if("right"===i?(l=a.right+X,n=a.top+a.height/2-s/2):"left"===i?(l=a.left-X-r,n=a.top+a.height/2-s/2):"bottom"===i?(n=a.bottom+X,l=a.left+a.width/2-r/2):(n=a.top-X-s,l=a.left+a.width/2-r/2),l=gt(l,Z,window.innerWidth-r-Z),n=gt(n,Z,window.innerHeight-s-Z),I.value={top:`${n}px`,left:`${l}px`},"right"===i||"left"===i){const t=a.top+a.height/2;$.value={top:`${gt(t-n-6,16,s-16-12)}px`}}else{const t=a.left+a.width/2;$.value={left:`${gt(t-l-6,16,r-16-12)}px`}}L.value={top:a.top-6+"px",left:a.left-6+"px",width:`${a.width+12}px`,height:`${a.height+12}px`}}function ht(){y((()=>E.value?.focus()))}s(C,(t=>{k("change",t),ft(),ht()})),s((()=>a.modelValue),(t=>{x.value=t,t&&(C.value=a.startIndex,y((()=>{ft(),ht()})))}));let yt=0;function _t(){S.value||(cancelAnimationFrame(yt),yt=requestAnimationFrame(ft))}return i((()=>{x.value&&(ft(),ht()),window.addEventListener("resize",_t,{passive:!0}),window.addEventListener("scroll",_t,{passive:!0,capture:!0})}
1)),n((()=>{cancelAnimationFrame(yt),window.removeEventListener("resize",_t),window.removeEventListener("scroll",_t,{capture:!0})})),(t,e)=>(_(),l(u,{to:"body"},[x.value&&et.value?(_(),p("div",{key:0,class:d(["gc-tour",{"gc-tour--modal":S.value}]),role:"dialog","aria-modal":"true","aria-labelledby":it.value,onKeydown:vt},[e[2]||(e[2]=m("div",{class:"gc-tour__guard"},null,-1)),S.value?(_(),p("div",F)):(_(),p("div",{key:1,class:"gc-tour__spotlight",style:v(L.value)},null,4)),m("div",{ref_key:"cardRef",ref:E,class:d(["gc-tour__card",S.value?"is-centered":`is-anchored is-${q.value}`]),style:v(S.value?void 0:I.value),tabindex:"-1"},[S.value?c("",!0):(_(),p("div",{key:0,class:d(["gc-tour__arrow",`gc-tour__arrow--${q.value}`]),style:v($.value)},null,6)),g(h,{name:"gc-tour-step",mode:"out-in"},{default:f((()=>[(_(),p("div",{key:C.value,class:"gc-tour__inner"},[m("div",N,[et.value.label?(_(),p("span",V,b(et.value.label),1)):c("",!0),m("span",T,b(C.value+1)+"/"+b(tt.value),1)]),m("div",{class:"gc-tour__bar","aria-label":`Step ${C.value+1} of ${tt.value}`},[m("span",{class:"gc-tour__bar-fill",style:v({width:`${rt.value}%`})},null,4)],8,W),et.value.pro?(_(),p("div",G,[et.value.pro.badge?(_(),p("span",O,b(et.value.pro.badge),1)):c("",!0),m("p",z,b(et.value.pro.name),1),m("p",H,b(et.value.pro.price),1)])):et.value.logo?(_(),p("div",M,[...e[0]||(e[0]=[m("img",{src:A,alt:"Giving Compass",width:"34",height:"34"},null,-1)])])):c("",!0),m("div",P,[et.value.tag?(_(),p("span",B,b(et.value.tag),1)):c("",!0),et.value.pro?.eyebrow?(_(),p("p",D,b(et.value.pro.eyebrow),1)):c("",!0),m("h2",{id:it.value,class:"gc-tour__title"},b(et.value.title),9,U),et.value.body?(_(),p("p",Y,b(et.value.body),1)):c("",!0),et.value.items?.length?(_(),p("ul",J,[(_(!0),p(j,null,w(et.value.items,((t,a)=>(_(),p("li",{key:a,class:"gc-tour__item",style:v({"--i":a})},[e[1]||(e[1]=m("svg",{class:"gc-tour__check",viewBox:"0 0 24 24",width:"20",height:"20","aria-hidden":"true"},[m("circle",{cx:"12",cy:"12",r:"11",fill:"#00ab84"}),m("path",{d:"M7.1 12.4l3.1 3.1 6.6-6.7",fill:"none",stroke:"#fff","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),m("span",null,b(t),1)],4)))),128))])):c("",!0)]),m("div",{class:d(["gc-tour__footer",{"is-cta":st.value}])},[st.value?(_(),p(j,{key:0},[et.value.secondaryLabel?(_(),p("button",{key:0,type:"button",class:"gc-tour__btn gc-tour__btn--ghost is-block",onClick:mt},b(et.value.secondaryLabel),1)):c("",!0),m("button",{type:"button",class:"gc-tour__btn gc-tour__btn--primary is-block",onClick:dt},b(et.value.primaryLabel||"Continue"),1),et.value.footnote?(_(),p("span",K,b(et.value.footnote),1)):c("",!0)],64)):(_(),p(j,{key:1},[m("button",{type:"button",class:"gc-tour__skip",onClick:pt},"Skip all"),m("div",Q,[at.value?c("",!0):(_(),p("button",{key:0,type:"button",class:"gc-tour__btn gc-tour__btn--ghost",onClick:ut}," Previous ")),m("button",{type:"button",class:"gc-tour__btn gc-tour__btn--primary",onClick:lt},b(et.value.primaryLabel||(ot.value?"Done":"Next")),1)])],64))],2)]))])),_:1})],6)],42,R)):c("",!0)]))}}),[["__scopeId","data-v-b0155d8f"]]),et=[{id:"welcome",variant:"modal",label:"Welcome",logo:!0,title:"You've found it.",body:"One place to search, compare, and understand nonprofits — without the spreadsheets and the tab overload. Let's get started.",items:["Access 1.9M+ nonprofits","Compare impact and credibility","Save time with AI-powered discovery"]},{id:"ask-gg",variant:"tooltip",target:'[data-tour="ask-gg"]',placement:"right",label:"Compass Explorer",tag:"Compass Explorer",title:"Just ask. Compass Explorer understands plain English.",body:"Type any question into the search bar and it will find an answer. No filters. No forms.",items:["Environmental nonprofits near me","What is a donor-advised fund?","Best education charities in Texas"]},{id:"explore",variant:"tooltip",target:'[data-tour="nav-cards"]',placement:"bottom",label:"Four Ways to Explore",title:"Not sure where to start? These four tools get you there fast.",body:"Whether you want the latest updates, impact stories, sector trends, or a deep search across 1.9 million nonprofits, you can find it here on your home screen."},{id:"search",variant:"tooltip",target:'[data-tour="nonprofit-search"]',placement:"bottom",label:"Nonprofit Search",tag:"Nonprofit Search",title:"Search 1.9 million nonprofits in seconds.",body:"Filter by cause, location, size, and credibility to surface the organizations that match what you care about.",items:["Filter by issue area and geography","Sort by impact and financial health","Save the ones worth a closer look"]},{id:"pro",variant:"modal",pro:{badge:"PRO",eyebrow:"Start Your Free Trial",name:"Giving Compass Pro",price:"$12/month"},title:"Ready to go deeper?",body:"Giving Compass Pro gives you expanded search, custom queries, advanced filters, and more — all designed to support smarter, faster nonprofit research.",secondaryLabel:"Stay with Free",secondaryAction:"stay-free",primaryLabel:"Start Pro Trial",primaryAction:"start-trial",footnote:"Cancel anytime"}],at={class:"chat-page"},ot=C(a({__name:"index",setup(a){$({name:E.Home});const{setSEO:r,addOrganizationSchema:s,addWebsiteSchema:n}=L();r({title:"Compass Explorer — AI Nonprofit Research & Discovery",description:"Ask anything about 2 million nonprofits in plain English. Compass Explorer is Giving Compass's AI research assistant for vetted giving, nonprofit financials, grants, and impact.",keywords:["Compass Explorer","nonprofit research","AI nonprofit search","nonprofit data","IRS 990 data","foundation grants","vetted nonprofits","charitable giving","Giving Compass"]}),s(),n();const u=S(),d=q(),v=o(!1);function h(){if(!("tour"in u.query))return;const{tour:t,...e}=u.query;d.replace({query:e})}return i((()=>{const t="string"==typeof u.query.q?u.query.q.trim():"";if(t)return d.replace({query:{}}),void I().launch(t);(function(){const t=Array.isArray(u.query.tour)?u.query.tour[0]:u.query.tour;return null!=t&&"false"!==t&&"0"!==t})()&&y((()=>{v.value=!0}))})),(a,o)=>{const r=t;return _(),p("div",at,[g(r,null,{fallback:f((()=>[...o[1]||(o[1]=[m("div",{class:"seo-only"},[m("h1",null,"Compass Explorer — ask anything about nonprofits"),m("p",null,"Compass Explorer is Giving Compass's AI research assistant. Ask questions in plain English to discover vetted, over-performing nonprofits, explore IRS 990 financials and foundation grants, and get answers grounded in data and expert giving insights you can trust."),m("div",{class:"seo-features"},[m("div",null,[m("h2",null,"Newsfeed"),m("p",null,"All nonprofit updates in one feed")]),m("div",null,[m("h2",null,"See Impact"),m("p",null,"See impact stories and metrics")]),m("div",null,[m("h2",null,"Data & Reports"),m("p",null,"Turn questions into tables, reports, and datasets")]),m("div",null,[m("h2",null,"Nonprofit Search"),m("p",null,"Discover 1.8 Million nonprofits")])])],-1)])])),default:f((()=>[g(e)])),_:1}),k(v)?(_(),l(tt,{key:0,modelValue:k(v),"onUpdate:modelValue":o[0]||(o[0]=t=>x(v)?v.value=t:null),steps:k(et),onFinish:h,onSkip:h},null,8,["modelValue","steps"])):c("",!0)])}}}),[["__scopeId","data-v-dd42adcf"]]);export{ot 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.