1import{_ as L}from"./B2UnsJXf.js";import{F,N as B}from"./Bto3la5R.js";import{u as N,f as A,a as O,P as S}from"./CLoU2Cnc.js";import{e as R,m as z,s as I,z as y,K as _,u as T,L as E,_ as V,c,b as f,a as t,t as o,k as j,v as M,H as b,F as w,r as $,l as k,o as n,A as H,w as U,j as C}from"./BhMFTaRk.js";import"./BpNIR51K.js";import"./BSB8vwtg.js";const p="https://www.pawsitivefoster.com",G=R({name:"OrgDirectoryPage",components:{Navigation:B,Footer:F},async setup(){const e=z(),{trackCTAClick:i}=I(),g=E(),{data:v}=await N("public-org-directory",()=>O(g.public.apiBaseUrl)),l=y(()=>v.value||[]),d=_(""),u=_(null),m=y(()=>{const r=new Set(l.value.flatMap(a=>a.programs));return Object.values(S).filter(a=>r.has(a.id))}),h=y(()=>l.value.filter(r=>{const a=!d.value||r.name.toLowerCase().includes(d.value.toLowerCase())||r.address.city.toLowerCase().includes(d.value.toLowerCase()),D=!u.value||r.programs.includes(u.value);return a&&D}).sort((r,a)=>(a.claimed?1:0)-(r.claimed?1:0))),s={"@context":"https://schema.org","@type":"CollectionPage",name:"Animal Shelter and Rescue Directory",description:"Browse shelters, rescues, and foster-based organizations. Find animals available for foster near you.",url:`${p}/orgs`,mainEntity:{"@type":"ItemList",numberOfItems:l.value.length,itemListElement:l.value.map((r,a)=>({"@type":"ListItem",position:a+1,name:r.name,url:`${p}/orgs/${r.slug}`}))}};return T(()=>({title:"Shelters and Rescues Directory | Pawsitive Foster",meta:[{name:"description",content:"Browse animal shelters, rescues, and foster organizations. Find animals available for foster in your area. Powered by Pawsitive Foster."},{property:"og:title",content:"Shelters and Rescues Directory | Pawsitive Foster"},{property:"og:description",content:"Browse animal shelters, rescues, and foster organizations near you."},{property:"og:url",content:`${p}/orgs`}],link:[{rel:"canonical",href:`${p}/orgs`}],script:[{type:"application/ld+json",innerHTML:JSON.stringify(s)}]})),{allOrgs:l,search:d,activeProgram:u,programFilters:m,filtered:h,locationLabel:r=>A(r.address),localePath:e,trackCTAClick:i}}}),J={class:"orgs-directory"},K={class:"directory-hero"},q={class:"container"},Q={class:"eyebrow"},W={class:"hero-sub"},X={class:"filters-section"},Y={class:"container"},Z={class:"filters-bar"},x={class:"search-wrap"},ee=["placeholder"],te={class:"filter-pills"},se=["onClick"],oe={class:"results-section"},re={class:"container"},ae={class:"results-count"},ie={key:0,class:"org-grid"},ne={class:"card-body"},ce={class:"card-type"},le={key:0,class:"card-location"};const de={key:1,class:"empty-state"},ue={class:"directory-cta-section"},pe={class:"container"},me={class:"cta-card"};function he(e,i,g,v,l,d){const u=k("Navigation"),m=L,h=k("Footer");return n(),c("div",J,[f(u),t("section",K,[t("div",q,[t("span",Q,o(e.$t("orgDirectory.hero.eyebrow")),1),t("h1",null,o(e.$t("orgDirectory.hero.title")),1),t("p",W,o(e.$t("orgDirectory.hero.subtitle")),1)])]),t("section",X,[t("div",Y,[t("div",Z,[t("div",x,[j(t("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>e.search=s),type:"text",placeholder:e.$t("orgDirectory.filters.searchPlaceholder"),class:"search-input"},null,8,ee),[[M,e.search]])]),t("div",te,[t("button",{class:b(["filter-pill",{"filter-pill-active":!e.activeProgram}]),onClick:i[1]||(i[1]=s=>e.activeProgram=null)},o(e.$t("orgDirectory.filters.all")),3),(n(!0),c(w,null,$(e.programFilters,s=>(n(),c("button",{key:s.id,class:b(["filter-pill",{"filter-pill-active":e.activeProgram===s.id}]),onClick:P=>e.activeProgram=e.activeProgram===s.id?null:s.id},o(s.name),11,se))),128))])])])]),t("section",oe,[t("div",re,[t("p",ae,o(e.$t("orgDirectory.results.count",{count:e.filtered.length})),1),e.filtered.length?(n(),c("div",ie,[(n(!0),c(w,null,$(e.filtered,s=>(n(),H(m,{key:s.slug,to:e.localePath(`/orgs/${s.slug}`),class:"org-card"},{default:U(()=>[t("div",ne,[t("span",ce,o(s.type),1),t("h2",null,o(s.name),1),e.locationLabel(s)?(n(),c("p",le,o(e.locationLabel(s)),1)):C("",!0),C("",!0)])]),_:2},1032,["to"]))),128))])):(n(),c("div",de,[t("p",null,o(e.$t("orgDirectory.results.empty")),1)]))])]),t("section",ue,[t("div",pe,[t("div",me,[t("h2",null,o(e.$t("orgDirectory.cta.title")),1),t("p",null,o(e.$t("orgDirectory.cta.body")),1),t("a",{href:"https://app.pawsitivefoster.com/signup/organization?utm_source=website&utm_medium=directory&utm_content=directory-cta",class:"web-cta-primary",onClick:i[2]||(i[2]=s=>e.trackCTAClick("Claim Profile","directory-footer"))}
1,o(e.$t("orgDirectory.cta.button")),1)])])]),f(h)])}const we=V(G,[["render",he],["__scopeId","data-v-55c8d72e"]]);export{we 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.