1import{_ as o}from"./DpWTXjFB.js";import{N as e}from"./ByPbsARR.js";import{V as a,_ as t,d as l,q as i,r,l as n,aa as s,C as d,e as c}from"#entry";import{B as f,c as T,av as p,aw as u,S as O,aH as b,R as E,$ as P,aG as _,ay as g,az as I,aq as N,C,U as S,r as R,a0 as m}from"./nX7w3--X.js";var v=(o=>(o.ARTICLE="article",o.EVENT="event",o.JOB_POSTING="job_post",o.VOLUNTEER_OPPORTUNITY="volunteering",o.PODCAST="podcast",o.VIDEO_POST="video",o.NONPROFIT_POST="nonprofit-post",o.IMPACT_STORY="impact-story",o.VIDEO="nonprofit-video",o.RELATED_NONPROFIT="related-nonprofit",o.RELATED_ARTICLE="related-article",o))(v||{});const y={POSTS_PER_PAGE:20,POST_DESCRIPTION_MAX_LENGTH:250,DEFAULT_VIEW_MODE:"latest"},A={article:v.ARTICLE,event:v.EVENT,job_post:v.JOB_POSTING,volunteering:v.VOLUNTEER_OPPORTUNITY,podcast:v.PODCAST,video:v.VIDEO_POST},L={all:"All Content",[v.ARTICLE]:"Articles",[v.EVENT]:"Events",[v.VIDEO_POST]:"Videos",[v.PODCAST]:"Podcasts",[v.JOB_POSTING]:"Job Postings",[v.VOLUNTEER_OPPORTUNITY]:"Volunteer Opportunities"},k={latest:"Latest",following:"Following"},D={[v.ARTICLE]:{icon:"mdi-text-box-outline",labelSingular:"POST",labelPlural:"Articles",color:"#2eb398",borderColor:"#2eb398",backgroundColor:"#f8fffe"},[v.EVENT]:{icon:"mdi-calendar-star",labelSingular:"EVENT",labelPlural:"Events",color:"#9333ea",borderColor:"#9333ea",backgroundColor:"#faf5ff"},[v.JOB_POSTING]:{icon:"mdi-briefcase-outline",labelSingular:"JOB POSTING",labelPlural:"Job Postings",color:"#3b82f6",borderColor:"#3b82f6",backgroundColor:"#eff6ff"},[v.VOLUNTEER_OPPORTUNITY]:{icon:"mdi-hand-heart",labelSingular:"VOLUNTEER",labelPlural:"Volunteer",color:"#e11d48",borderColor:"#e11d48",backgroundColor:"#fff1f2"},[v.PODCAST]:{icon:"mdi-podcast",labelSingular:"PODCAST",labelPlural:"Podcasts",color:"#f59e0b",borderColor:"#f59e0b",backgroundColor:"#fffbeb"},[v.VIDEO_POST]:{icon:"mdi-video-outline",labelSingular:"VIDEO",labelPlural:"Videos",color:"#ef4444",borderColor:"#ef4444",backgroundColor:"#fef2f2"},[v.NONPROFIT_POST]:{icon:"mdi-post-outline",labelSingular:"POST",labelPlural:"Posts",color:"#2eb398",borderColor:"#2eb398",backgroundColor:"#f8fffe"},[v.IMPACT_STORY]:{icon:"mdi-heart",labelSingular:"IMPACT STORY",labelPlural:"Impact Stories",color:"#4a9b7f",borderColor:"#4a9b7f",backgroundColor:"#fefffe"},[v.VIDEO]:{icon:"mdi-video",labelSingular:"Featured Video",labelPlural:"Featured Videos",color:"#ef4444",borderColor:"#ef4444",backgroundColor:"#fef2f2"},[v.RELATED_NONPROFIT]:{icon:"mdi-charity",labelSingular:"RELATED NONPROFIT",labelPlural:"Related Nonprofits",color:"#8b5cf6",borderColor:"#8b5cf6",backgroundColor:"#fefffe"},[v.RELATED_ARTICLE]:{icon:"mdi-text-box-outline",labelSingular:"RELATED ARTICLE",labelPlural:"Related Articles",color:"#5475e4",borderColor:"#5475e4",backgroundColor:"#f8fffe"}},V=[v.ARTICLE,v.EVENT,v.JOB_POSTING,v.VOLUNTEER_OPPORTUNITY,v.PODCAST,v.VIDEO_POST,v.NONPROFIT_POST,v.IMPACT_STORY,v.VIDEO,v.RELATED_NONPROFIT,v.RELATED_ARTICLE],F={key:0,class:"nonprofit-logo-container"},h={class:"nonprofit-info"},w={key:1,class:"nonprofit-date"},U=t(f({__name:"FeedNonprofitHeader",props:{nonprofitName:{},nonprofitEin:{},date:{},city:{},state:{},logo:{},hideIdentity:{type:Boolean,default:!1}},setup(t){const l=t,i=T((()=>l.city&&l.state?`${l.city}, ${l.state}`:null));return(t,l)=>{const r=o;return u(),p("div",{class:O(["nonprofit-header",{minimal:t.hideIdentity}])},[t.hideIdentity?b("",!0):(u(),p("div",F,[P(e,{logo:t.logo,name:t.nonprofitName,ein:t.nonprofitEin,size:48,"initials-size":14,cover:""},null,8,["logo","name","ein"])])),E("div",h,[t.hideIdentity?b("",!0):(u(),_(r,{key:0,to:`/nonprofit/${t.nonprofitEin}`,class:"nonprofit-name"},{default:g((()=>[I(N(t.nonprofitName),1)])),_:1},8,["to"])),t.date||C(i)?(u(),p("div",w,[t.date?(u(),p(S,{key:0},[I(N(t.date),1)],64)):b("",!0),C(i)?(u(),p(S,{key:1},[P(a,{icon:"mdi-map-marker",size:"10",class:"location-icon"}),I(" "+N(C(i)),1)],64)):b("",!0)])):b("",!0)])],2)}}}),[["__scopeId","data-v-a5108710"]]),z={class:"card-header"},B={class:"type-indicator"},G={key:0,class:"header-actions"},M={class:"post-content"},J={class:"post-title"},Y=["href"],x={key:1},j={key:0,class:"post-description"},H=t(f({__name:"GlobalFeedPostCard",props:{post:{},logo:{},isBlurred:{type:Boolean,default:!1},hideFollow:{type:Boolean,default:!1},hideNonprofitIdentity:{type:Boolean,default:!1}},setup(o){const e=o,{isFavorited:t,isLoading:f,toggleFavorite:_}=function(o,e,a={}){const t=l(),d=i(),c=r(),f=n(),p=R(!1),u=T((()=>t.isFavorite(o,e)));return{isFavorited:u,isLoading:p,toggleFavorite:async()=>
1{if(d.trialMode)return t.storePendingFavorite(o,e),void(await c.showModal({component:s}));if(p.value)return;p.value=!0;const l=u.value;try{l?await t.removeFavorite(o,e,a?.silent):(f.trackContentSaved(o,e),await t.saveFavorite(o,e,a?.silent))}finally{p.value=!1}}}}(e.post.organization_ein,d.NONPROFIT,{silent:!0}),S=T((()=>{const o=e.post.post_classification?.toLowerCase();return o&&A[o]?A[o]:v.NONPROFIT_POST})),L=T((()=>D[S.value])),k=T((()=>e.post.post_description||e.post.post_content)),V=T((()=>(o=>{if(!o)return null;try{return new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})}catch{return null}})(e.post.post_published_date)));return(o,e)=>{return u(),p("article",{class:O(["feed-post-card",{"is-blurred":o.isBlurred}])},[E("div",z,[E("div",B,[P(a,{icon:C(L).icon,size:"16",color:C(L).color},null,8,["icon","color"]),E("span",{class:"type-label",style:m({color:C(L).color})},N(C(L).labelSingular),5)]),o.hideFollow?b("",!0):(u(),p("div",G,[P(c,{onClick:C(_),variant:"text",size:"small",loading:C(f),class:O(["follow-btn-header",{"is-following":C(t)}])},{default:g((()=>[P(a,{icon:C(t)?"mdi-bookmark-check":"mdi-bookmark-outline",size:"18"},null,8,["icon"]),I(" "+N(C(t)?"Following":"Follow"),1)])),_:1},8,["onClick","loading","class"])]))]),P(U,{"nonprofit-name":o.post.organization_name||"Unknown Organization","nonprofit-ein":o.post.organization_ein||"",date:C(V),city:o.post.organization_city,state:o.post.organization_state,logo:o.logo,"hide-identity":o.hideNonprofitIdentity},null,8,["nonprofit-name","nonprofit-ein","date","city","state","logo","hide-identity"]),E("div",M,[E("h2",J,[o.post.post_url?(u(),p("a",{key:0,href:o.post.post_url,target:"_blank",rel:"noopener"},N(o.post.post_title),9,Y)):(u(),p("span",x,N(o.post.post_title),1))]),C(k)?(u(),p("p",j,N((l=C(k),l?l.length<=y.POST_DESCRIPTION_MAX_LENGTH?l:l.substring(0,y.POST_DESCRIPTION_MAX_LENGTH).trim()+"...":"")),1)):b("",!0)])],2);var l}}}),[["__scopeId","data-v-d96695c5"]]);export{L as C,v as D,y as F,H as G,k as V,A as a,D as b,U as c,V as d};
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.