PageSourceSearch

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

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

1import{_ as a}from"./DpWTXjFB.js";import{g as e}from"./D4S_qZ_g.js";import{f as t,c as i,T as o,X as n,bg as s,j as r,_ as l}from"#entry";import{u as d}from"./depwn4iM.js";import{u as c}from"./inpFMjNm.js";import{u}from"./YHQz9MCf.js";import{B as h,bV as p,c as v,x as m,av as f,R as _,$ as g,ay as y,C as b,U as k,aT as w,aq as C,aH as x,az as M,aw as j}from"./nX7w3--X.js";import"./CzuCJjyz.js";import"./in4c0Ziq.js";const B={class:"oauth-screen"},G={class:"oauth-card"},T={class:"oauth-card__handshake"},q=["aria-label"],S={class:"oauth-card__title"},I={class:"oauth-card__promise"},z={class:"oauth-perms"},L={class:"oauth-perms__label"},P={class:"oauth-perms__label"},R={class:"oauth-actions",method:"post",action:"/api/oauth/consent"},N=["value"],A=["value"],U=["value"],V=["value"],O=["value"],W=["value"],Y=["value"],$=["value"],E=["value"],H={class:"oauth-btn oauth-btn--primary",type:"submit",name:"decision",value:"approve"},J={class:"oauth-card__foot"},X={key:0},D={class:"oauth-identity"},F={class:"oauth-identity__host"},K={class:"oauth-identity__url"},Q={class:"oauth-card__handshake"},Z=["aria-label"],aa={class:"oauth-card__title"},ea={class:"oauth-card__promise"},ta={class:"oauth-pro-note"},ia={class:"oauth-actions",method:"post",action:"/api/oauth/consent"},oa=["value"],na=["value"],sa=["value"],ra=["value"],la=["value"],da=["value"],ca=["value"],ua=["value"],ha=["value"],pa={class:"oauth-card__foot"},va={key:0},ma={class:"oauth-identity"},fa={class:"oauth-identity__host"},_a={class:"oauth-identity__url"},ga={class:"oauth-card__reason"},ya=l(h({__name:"authorize",async setup(l){let h,ya;const{setSEO:ba}=c();
1ba({title:"Connect to Giving Compass",description:"Approve or deny an application's access to your Giving Compass account.",noIndex:!0});const ka=t(),wa=s(),{data:Ca}=([h,ya]=p((()=>u("oauth-authorize-context",(()=>wa("/api/oauth/authorize-context",{query:ka.query}))))),h=await h,ya(),h),xa=d(),Ma=v((()=>i().user?.email||"")),ja=v((()=>{const a=Ca.value?.status;return"consent"!==a||xa.value?a:"pro_required"})),Ba=v((()=>Ca.value?.clientName||"This application")),Ga=v((()=>Ba.value.trim().charAt(0).toUpperCase()||"?")),Ta=v((()=>{const a=Ca.value?.params?.client_id;if(!a)return"";try{return new URL(a).hostname}catch{return a}})),qa=`${o.SUBSCRIPTION}?upgrade_required=true`;return m((()=>{const a=Ca.value?.status;"redirect_error"===a&&Ca.value?.redirectTo?window.location.replace(Ca.value.redirectTo):"login_required"===a&&n()})),(t,i)=>{const o=a;return j(),f("div",B,[i[20]||(i[20]=_("img",{class:"oauth-screen__watermark",src:e,alt:"","aria-hidden":"true",width:"560",height:"509"},null,-1)),g(o,{to:"/",class:"oauth-screen__wordmark","aria-label":"Giving Compass home"},{default:y((()=>[...i[0]||(i[0]=[_("img",{src:e,alt:"","aria-hidden":"true",width:"26",height:"24"},null,-1),_("span",null,"Giving Compass",-1)])])),_:1}),_("div",G,["consent"===b(ja)?(j(),f(k,{key:0},[_("div",T,[_("div",{class:"oauth-tile oauth-tile--client","aria-label":b(Ba)},C(b(Ga)),9,q),i[1]||(i[1]=w('<svg class="oauth-link" viewBox="0 0 44 24" width="44" height="24" aria-hidden="true" data-v-bdf9367e><path d="M4 12h36" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-dasharray="1 6" fill="none" data-v-bdf9367e></path><path d="M17 6a6 6 0 0 0 0 12h3M27 18a6 6 0 0 0 0-12h-3" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" data-v-bdf9367e></path></svg><div class="oauth-tile oauth-tile--gc" aria-label="Giving Compass" data-v-bdf9367e><img src="'+r+'" alt="" width="34" height="31" data-v-bdf9367e></div>',2))]),_("h1",S,"Connect "+C(b(Ba))+" to Giving Compass",1),_("p",I," Ask "+C(b(Ba))+" anything about a nonprofit. It answers from the actual filings, not from memory. ",1),_("div",z,[_("div",L,C(b(Ba))+" will be able to",1),i[2]||(i[2]=w('<ul data-v-bdf9367e><li class="oauth-perms__can" data-v-bdf9367e><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true" data-v-bdf9367e><circle cx="10" cy="10" r="9" fill="currentColor" opacity="0.15" data-v-bdf9367e></circle><path d="M6 10.5l2.6 2.6L14 7.8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-bdf9367e></path></svg><span data-v-bdf9367e>Run nonprofit research and analyses for you</span></li><li class="oauth-perms__can" data-v-bdf9367e><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true" data-v-bdf9367e><circle cx="10" cy="10" r="9" fill="currentColor" opacity="0.15" data-v-bdf9367e></circle><path d="M6 10.5l2.6 2.6L14 7.8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-bdf9367e></path></svg><span data-v-bdf9367e>Look up organizations, filings, and impact evidence</span></li></ul><div class="oauth-perms__divider" data-v-bdf9367e></div>',2)),_("div",P,C(b(Ba))+" will not be able to",1),i[3]||(i[3]=w('<ul data-v-bdf9367e><li class="oauth-perms__cant" data-v-bdf9367e><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true" data-v-bdf9367e><circle cx="10" cy="10" r="9" fill="currentColor" opacity="0.18" data-v-bdf9367e></circle><path d="M6.5 10h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-bdf9367e></path></svg><span data-v-bdf9367e>See your email, name, or profile</span></li><li class="oauth-perms__cant" data-v-bdf9367e><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true" data-v-bdf9367e><circle cx="10" cy="10" r="9" fill="currentColor" opacity="0.18" data-v-bdf9367e></circle><path d="M6.5 10h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-bdf9367e></path></svg><span data-v-bdf9367e>Change your account or settings</span></li><li class="oauth-perms__cant" data-v-bdf9367e><svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true" data-v-bdf9367e><circle cx="10" cy="10" r="9" fill="currentColor" opacity="0.18" data-v-bdf9367e></circle><path d="M6.5 10h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-bdf9367e></path></svg><span data-v-bdf9367e>Create or edit your saved lists</span></li></ul>',1))]),_("form",R,[_("input",{type:"hidden",name:"client_id",value:b(Ca).params.client_id},null,8,N),_("input",{type:"hidden",name:"redirect_uri",value:b(Ca).params.redirect_uri},null,8,A),_("input",{type:"hidden",name:"response_type",value:b(Ca).params.response_type}
1,null,8,U),b(Ca).params.state?(j(),f("input",{key:0,type:"hidden",name:"state",value:b(Ca).params.state},null,8,V)):x("",!0),b(Ca).params.scope?(j(),f("input",{key:1,type:"hidden",name:"scope",value:b(Ca).params.scope},null,8,O)):x("",!0),_("input",{type:"hidden",name:"code_challenge",value:b(Ca).params.code_challenge},null,8,W),_("input",{type:"hidden",name:"code_challenge_method",value:b(Ca).params.code_challenge_method},null,8,Y),_("input",{type:"hidden",name:"resource",value:b(Ca).params.resource},null,8,$),_("input",{type:"hidden",name:"csrf_token",value:b(Ca).csrfToken},null,8,E),i[4]||(i[4]=_("button",{class:"oauth-btn oauth-btn--ghost",type:"submit",name:"decision",value:"deny"}," Not now ",-1)),_("button",H," Connect "+C(b(Ba)),1)]),_("div",J,[b(Ma)?(j(),f("div",X,[i[5]||(i[5]=M("Signed in as ",-1)),_("b",null,C(b(Ma)),1)])):x("",!0),_("details",D,[_("summary",null,[i[6]||(i[6]=_("svg",{viewBox:"0 0 20 20",width:"14",height:"14","aria-hidden":"true"},[_("circle",{cx:"10",cy:"10",r:"9",fill:"currentColor",opacity:"0.15"}),_("path",{d:"M6 10.5l2.6 2.6L14 7.8",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),i[7]||(i[7]=_("span",{class:"oauth-identity__label"},"Verified client",-1)),_("span",F,C(b(Ta)),1)]),_("div",K,C(b(Ca).params.client_id),1)])])],64)):"pro_required"===b(ja)?(j(),f(k,{key:1},[_("div",Q,[_("div",{class:"oauth-tile oauth-tile--client","aria-label":b(Ba)},C(b(Ga)),9,Z),i[8]||(i[8]=w('<svg class="oauth-link oauth-link--locked" viewBox="0 0 44 24" width="44" height="24" aria-hidden="true" data-v-bdf9367e><path d="M4 12h36" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-dasharray="1 6" fill="none" data-v-bdf9367e></path><path d="M17 6a6 6 0 0 0 0 12h3M27 18a6 6 0 0 0 0-12h-3" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" data-v-bdf9367e></path></svg><div class="oauth-tile oauth-tile--gc" aria-label="Giving Compass" data-v-bdf9367e><img src="'+r+'" alt="" width="34" height="31" data-v-bdf9367e><span class="oauth-tile__lock" aria-hidden="true" data-v-bdf9367e><svg viewBox="0 0 16 16" width="13" height="13" data-v-bdf9367e><rect x="3" y="7" width="10" height="7" rx="1.5" fill="currentColor" data-v-bdf9367e></rect><path d="M5 7V5a3 3 0 0 1 6 0v2" fill="none" stroke="currentColor" stroke-width="1.8" data-v-bdf9367e></path></svg></span></div>',2))]),_("h1",aa,"Connecting "+C(b(Ba))+" needs Giving Compass Pro",1),_("p",ea," The "+C(b(Ba))+" connection is a Pro feature. Your account isn't on Giving Compass Pro yet, so nothing was connected. ",1),_("div",ta,[_("b",null,"With Pro, "+C(b(Ba))+" can",1),i[9]||(i[9]=_("span",null," run nonprofit research and analyses for you, and look up organizations, filings, and impact evidence, straight from Giving Compass. ",-1))]),_("form",ia,[_("input",{type:"hidden",name:"client_id",value:b(Ca).params.client_id},null,8,oa),_("input",{type:"hidden",name:"redirect_uri",value:b(Ca).params.redirect_uri},null,8,na),_("input",{type:"hidden",name:"response_type",value:b(Ca).params.response_type},null,8,sa),b(Ca).params.state?(j(),f("input",{key:0,type:"hidden",name:"state",value:b(Ca).params.state},null,8,ra)):x("",!0),b(Ca).params.scope?(j(),f("input",{key:1,type:"hidden",name:"scope",value:b(Ca).params.scope},null,8,la)):x("",!0),_("input",{type:"hidden",name:"code_challenge",value:b(Ca).params.code_challenge},null,8,da),_("input",{type:"hidden",name:"code_challenge_method",value:b(Ca).params.code_challenge_method},null,8,ca),_("input",{type:"hidden",name:"resource",value:b(Ca).params.resource},null,8,ua),_("input",{type:"hidden",name:"csrf_token",value:b(Ca).csrfToken},null,8,ha),i[10]||(i[10]=_("button",{class:"oauth-btn oauth-btn--ghost",type:"submit",name:"decision",value:"deny"}," Not now ",-1)),_("a",{class:"oauth-btn oauth-btn--primary",href:qa}," See Giving Compass Pro ")]),_("div",pa,[b(Ma)?(j(),f("div",va,[i[11]||(i[11]=M("Signed in as ",-1)),_("b",null,C(b(Ma)),1)])):x("",!0),_("div",null,"Already upgraded? Close this window and connect again from "+C(b(Ba))+".",1),_("details",ma,[_("summary",null,[i[12]||(i[12]=_("svg",{viewBox:"0 0 20 20",width:"14",height:"14","aria-hidden":"true"}
1,[_("circle",{cx:"10",cy:"10",r:"9",fill:"currentColor",opacity:"0.15"}),_("path",{d:"M6 10.5l2.6 2.6L14 7.8",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),i[13]||(i[13]=_("span",{class:"oauth-identity__label"},"Verified client",-1)),_("span",fa,C(b(Ta)),1)]),_("div",_a,C(b(Ca).params.client_id),1)])])],64)):"local_error"===b(ja)?(j(),f(k,{key:2},[i[14]||(i[14]=w('<div class="oauth-card__handshake" data-v-bdf9367e><div class="oauth-tile oauth-tile--warn" aria-hidden="true" data-v-bdf9367e>!</div></div><h1 class="oauth-card__title" data-v-bdf9367e>We couldn&#39;t complete this connection</h1><p class="oauth-card__body" data-v-bdf9367e> Nothing was shared and no access was granted. Close this window and try connecting again from the application. If it keeps happening, email <a href="mailto:[email protected]" data-v-bdf9367e>[email protected]</a> with the code below. </p>',3)),_("div",ga,"Reason code: "+C(b(Ca).reason),1)],64)):"login_required"===b(ja)?(j(),f(k,{key:3},[i[15]||(i[15]=_("div",{class:"oauth-spinner","aria-hidden":"true"},null,-1)),i[16]||(i[16]=_("h1",{class:"oauth-card__title"},"Signing you in",-1)),i[17]||(i[17]=_("p",{class:"oauth-card__body"}," You'll come right back here to approve the connection after signing in to Giving Compass. ",-1))],64)):(j(),f(k,{key:4},[i[18]||(i[18]=_("div",{class:"oauth-spinner","aria-hidden":"true"},null,-1)),i[19]||(i[19]=_("h1",{class:"oauth-card__title"},"Returning you to the application",-1))],64))])])}}}),[["__scopeId","data-v-bdf9367e"]]);export{ya 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.