PageSourceSearch

https://ccfc-france-canada.com/_nuxt/MGS_id_1.js

js ccfc-france-canada.com collected 2026-09-24 23:40:43 UTC 3,471 bytes, 1 lines download raw bytes

1import{_ as B}from"./DT2SmcUv.js";import{d as D,l as E,m as q,a2 as F,G as W,p as _,W as H,q as M,b5 as X,b6 as Z,n as K,X as Q,k as Y,Z as J,$ as ee,ab as te,a1 as se,aZ as ae,aV as ne,aY as oe,v as re,a7 as ie,aX as ce,o as m,c as l,a as y,t as d,u as t,b as w,F as O,j as g,w as P,z as R,A as me,r as le,K as ue,b7 as de,e as N,x as S}from"./Buf1FTkf.js";const pe={class:"container py-8"},fe={class:"text-2xl font-bold sm:text-3xl"},_e={key:0,class:"mt-4 text-lg text-surface"},ye={class:"mt-8 flex flex-col gap-10"},ge={key:0,class:"rounded-lg border border-neutral-200 p-4 sm:p-6"},he={class:"mb-4 text-lg font-semibold"},xe={class:"mb-4 text-lg font-semibold"},ve={key:0,class:"mt-6 flex justify-center"},be=5,Se=D({name:"CategoryDetailPage",__name:"[name]",async setup(Ce){let e,r;const{t:h}=E(),T=q(),{$reader:j}=F(),z=W(),{media:A}=([e,r]=_(()=>H()),e=await e,r(),e),G=decodeURIComponent(T.params.name),{data:L}=([e,r]=_(()=>M("/categories",{transform:X,query:{limit:50}})),e=await e,r(),e),a=L.value?.find(n=>Z(n.name,{lower:!0,strict:!0})===G);if(!a)throw K({statusCode:404,statusMessage:"Category not found"});const p=a.name,x=Q(a.description);Y({title:p,meta:[{property:"og:title",content:p},{name:"description",content:x},{property:"og:description",content:x}]}),J({}),ee([te({"@type":"CollectionPage",name:p,description:x}),se({itemListElement:[{name:A.value?.displayName||"Home",item:"/"},{name:p}]})]);const v={contents:{endpoint:"/contents",transform:ie},people:{endpoint:"/community/people",transform:re},organizations:{endpoint:"/community/organizations",transform:oe},events:{endpoint:"/community/events",transform:ne},projects:{endpoint:"/community/projects",transform:ae}},b=N(()=>z.hub?.searchGroupOrder??["contents"]),i=b.value.length===1?b.value[0]:null,U=i?v[i].transform:null,$=`category_ids[]=${a.id}`,u=S([]),f=S(null),I=S([]);if(i){const n=v[i],{data:o,meta:c}=([e,r]=_(()=>M(`${n.endpoint}?${$}`,{transform:n.transform})),e=await e,r(),e);u.value=o.value??[],f.value=c.value??null}else{const{data:n}=([e,r]=_(async()=>ce(`category-groups-${a.id}`,()=>Promise.all(b.value.map(async o=>{const c=v[o],{data:C,meta:k}=await j(`${c.endpoint}?${$}`,{transform:c.transform,query:{limit:be}}).catch(()=>({data:[],meta:null}));return{type:o,items:C??[],hasMore:!!k?.next}})),{default:()=>[]})),e=await e,r(),e);I.value=n.value}const V=N(()=>I.value.filter(n=>n.items.length>0));return(n,o)=>{const c=B,C=me,k=de;return m(),l("div",pe,[y("h1",fe,d(t(a).name),1),t(a).description?(m(),l("p",_e,d(t(a).description),1)):w("",!0),y("div",ye,[t(i)?(m(),l(O,{key:0},[t(u).length>0?(m(),l("section",ge,[y("h2",he,d(t(h)(`search.filters.${t(i)}`)),1),g(C,{items:t(u),"onUpdate:items":o[0]||(o[0]=s=>R(u)?u.value=s:null),meta:t(f),"onUpdate:meta":o[1]||(o[1]=s=>R(f)?f.value=s:null),transform:t(U),"data-nosnippet":""},{default:P(()=>[g(c,{type:t(i),items:t(u)},null,8,["type","items"])]),_:1},8,["items","meta","transform"])])):w("",!0)],64)):(m(!0),l(O,{key:1},le(t(V),s=>(m(),l("section",{key:s.type,class:"rounded-lg border border-neutral-200 p-4 sm:p-6"},[y("h2",xe,d(t(h)(`search.filters.${s.type}`)),1),g(c,{type:s.type,items:s.items},null,8,["type","items"]),s.hasMore?(m(),l("div",ve,[g(k,{type:s.type,categories:[t(a).id],class:"rounded-full bg-primary text-surface px-6 py-2 transition-opacity hover:opacity-90"},{default:P(()=>[ue(d(t(h)("actions.seeMore")),1)]),_:1},8,["type","categories"])])):w("",!0)]))),128))])])}}});export{Se 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.