1import{_ as o}from"./DpWTXjFB.js";import{u as a}from"./BdsANIqb.js";import{u as s}from"./CyrvrKgH.js";import{c as e,V as t,T as r,_ as i}from"#entry";import{S as l}from"./D84nPH-d.js";import{V as n}from"./BcVEr5iZ.js";import{B as c,r as p,c as d,x as m,av as u,C as h,U as y,ax as f,aH as v,R as g,$ as j,ay as k,aw as b,aG as _,aq as w}from"./nX7w3--X.js";import"./CzuCJjyz.js";import"./ByPbsARR.js";import"./CDUU9Wma.js";import"./Bs0o2c6W.js";import"./DIHs2ASU.js";import"./BT7XcHJ2.js";import"./CAgLKPVn.js";import"./369w539r.js";import"./DeYW9Fiz.js";import"./BWrehKB2.js";const I={key:0,class:"loading-state"},S={key:0,class:"stories-container"},x={class:"blurred-story-placeholder","aria-hidden":"true"},z={class:"placeholder-type"},B={class:"blurred-story-placeholder","aria-hidden":"true"},N={class:"placeholder-type"},C={key:1,class:"empty-state"},E=i(c({__name:"stories",props:{nonprofit:{}},setup(i){const c=i,E=a(),P=s(),R=e(),T=p([]),U=p(0),$=p(!0),G=d((()=>!R.isPro&&T.value.length>0));m((async()=>{try{const o=await E.getStoriesForNonprofit(c.nonprofit.ein);T.value=o.items,U.value=o.total}catch(o){console.error("Error loading stories:",o)}finally{$.value=!1}}));const H=d((()=>P.logoByEIN(c.nonprofit.ein)));return(a,s)=>{const e=o;return b(),u("div",null,[h($)?(b(),u("div",I,[(b(),u(y,null,f(3,(o=>j(n,{key:o,type:"article",class:"mb-3"}))),64))])):(b(),u(y,{key:1},[h(T).length>0?(b(),u("div",S,[(b(!0),u(y,null,f(h(T),((o,a)=>(b(),_(l,{key:o.story_id||`${o.ein}-${a}`,story:o,logo:h(H),"hide-nonprofit-identity":""},null,8,["story","logo"])))),128)),h(G)?(b(),u(y,{key:0},[g("div",x,[g("div",z,[j(t,{icon:"mdi-heart-outline",size:"16",color:"#4a9b7f"}),s[0]||(s[0]=g("span",null,"Impact Story",-1))]),s[1]||(s[1]=g("div",{class:"placeholder-title"},"How community partnerships transformed access to early education",-1)),s[2]||(s[2]=g("div",{class:"placeholder-text"},"Through innovative collaboration with local organizations, this program reached thousands of underserved families across the region.",-1))]),g("div",B,[g("div",N,[j(t,{icon:"mdi-heart-outline",size:"16",color:"#4a9b7f"}),s[3]||(s[3]=g("span",null,"Impact Story",-1))]),s[4]||(s[4]=g("div",{class:"placeholder-title"},"Building resilience through workforce development initiatives",-1)),s[5]||(s[5]=g("div",{class:"placeholder-text"},"A groundbreaking approach to skills training helped hundreds of participants achieve long-term employment and financial stability.",-1))]),j(e,{to:h(r).SUBSCRIPTION,class:"locked-card"},{default:k((()=>[j(t,{icon:"mdi-lock",size:"20",color:"#9ca3af"}),g("span",null,"Upgrade to Pro to see all "+w(h(U))+" stories",1)])),_:1},8,["to"])],64)):v("",!0)])):(b(),u("div",C,[j(t,{icon:"mdi-book-open-page-variant-outline",size:"48",color:"grey"}),s[6]||(s[6]=g("p",null,"No impact stories available for this nonprofit.",-1))]))],64))])}}}),[["__scopeId","data-v-2995d0b1"]]);export{E 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.