1import{_ as g,g as m,i as f,a as s,w as t,l as y,o as r,e as o,c,D as x,Q as v,b as k,j as M,d as a,G as w,k as $}from"./entry.d93a3ed3.js";import{_ as b}from"./results.7b052034.js";import{_ as q}from"./img.910e3f09.js";import{_ as G}from"./avatar.7f7d4d85.js";import{_ as B}from"./card.93257263.js";import"./chip.7bc68ab1.js";import"./VChip.805d40d9.js";import"./index.ad65ad69.js";import"./VAvatar.b632f07f.js";import"./thread-search-card.398c2b77.js";import"./index.81484b67.js";import"./avatar.25b22ef9.js";import"./private-indicator.ce6e6f32.js";import"./tooltip.d1681b43.js";import"./VTooltip.ac2fda69.js";import"./VOverlay.8c4e1463.js";import"./forwardRefs.e658ad70.js";import"./patient-indicator.30cac587.js";import"./VRow.a9014e08.js";import"./avatar.0bf8ffb1.js";import"./award-overlay.19e783f8.js";import"./nuxt-link.27d1e1a1.js";import"./markdown.24b4a4b1.js";import"./index.fc84b8ed.js";import"./TimeAgo.c7455f3b.js";import"./avatar.e724a9f5.js";import"./qbank-graphic.d634ec9e.js";import"./event-card.802087b6.js";import"./watcher.2613095e.js";import"./VSkeletonLoader.86a7de95.js";import"./VCard.25e4f60b.js";import"./createSimpleFunctional.fc1433ea.js";const C=""+new URL("admin-magnifying-glass.16f8917e.svg",import.meta.url).href,N={data:()=>({model:[],search:null}),computed:{...m("communities",["community"]),...m("communities/search",["hasMore","results","retrieving","retrievingMore"]),magnifyingGlassSrc(){return C},params(){return{id:this.$route.params.id,query:{q:this.search}}}},watch:{async $route(e){e.name==="c-id-search"&&(this.search=this.$route.query.q,await this.retrieve(this.params))}},async mounted(){this.search=this.$route.query.q,await this.retrieve(this.params)},methods:{...f("communities/search",["retrieve","retrieveMore"]),intersectMore(e){e&&!this.retrievingMore&&this.retrieveMore()}}},V={key:1},S={key:0,class:"my-12 text-center"},j=a("div",{class:"d-flex flex-column gap-1 text-center align-center align-self-stretch"},[a("p",{class:"text-dark-grey text-body-1 font-weight-bold"}," We couldn't find anything that matched your search "),a("p",{class:"text-dark-grey text-body-2"}," Try adjusting your filters or type in a new search ")],-1);function z(e,D,T,A,E,i){const p=w,l=b,_=$,d=q,u=G,n=y,h=B;return r(),s(n,{max:"md"},{default:t(()=>[o(h,{class:"rounded-md-xl bg-md-pastel-purple-light py-0 py-md-6 px-0 px-md-6",variant:"flat"},{default:t(()=>[e.retrieving?(r(),s(p,{key:0,loading:""})):e.results.length?(r(),c("div",V,[o(l,{results:e.results,class:"d-flex flex-column gap-4"},null,8,["results"]),e.hasMore?x((r(),c("div",S,[o(_,{loading:e.retrievingMore,size:"x-large",variant:e.retrievingMore?"plain":"flat",primary:"",onClick:e.retrieveMore},{default:t(()=>[k(" Show more results ")]),_:1},8,["loading","variant","onClick"])])),[[v,{handler:i.intersectMore,options:{rootMargin:"800px"}}]]):M("",!0)])):(r(),s(n,{key:2,max:"md",class:"d-flex flex-column gap-3 pa-6 align-center align-self-stretch"},{default:t(()=>[o(u,{size:"80"},{default:t(()=>[o(d,{class:"bg-pastel-purple",eager:"",src:i.magnifyingGlassSrc,"aspect-ratio":"1/1"},null,8,["src"])]),_:1}),j]),_:1}))]),_:1})]),_:1})}const fe=g(N,[["render",z]]);export{fe 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.