PageSourceSearch

https://www.cmq.org/_nuxt/index.4b7d6a85.js

js cmq.org collected 2026-09-24 17:57:54 UTC 17,210 bytes, 78 lines download raw bytes

1import{_ as ae}from"./HeroNews.d572de42.js";import{_ as te}from"./Button.vue.d9cff6c1.js";import{g as le,_ as re,a as de}from"./yearFilter.4032ed1a.js";import{b as se,c as oe,d as ue,e as me,f as ce,h as ke}from"./entry.0e2b7217.js";import{u as ve}from"./composables.c4a9b9ef.js";import{f as ge,a as C,a1 as M,e as h,b as U,u,G as v,y as A,H as r,N as pe,F as E,X as R,C as fe,J as Y,B as k,R as D,a6 as z,aa as G}from"./swiper-vue.5e86c732.js";import{u as ye}from"./fetch.e86bd420.js";import{d as Ne}from"./index.4622708c.js";import{_ as _e}from"./_plugin-vue_export-helper.c27b6911.js";import"./craftFields.10efea26.js";import"./Icon.65c81faf.js";import"./nuxt-link.f6263737.js";import"./useLink.acef1dab.js";import"./useState.64660af2.js";import"./useDate.6ab8d0de.js";import"./useTheme.08f3e55c.js";var w={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NewsHub"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"section"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lang"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"category"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryArgument"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"dateRange"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"roles"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryArgument"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entry"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"Variable",name:{kind:"Name",value:"section"}}},{kind:"Argument",name:{kind:"Name",value:"site"},value:{kind:"Variable",name:{kind:"Name",value:"lang"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"articleHub_Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"html"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"alt"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"urlSmall"},name:{kind:"Name",value:"url"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"transform"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"StringValue",value:"crop",block:!1}},{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"StringValue",value:"webp",block:!1}},{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"320"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"240"}}]}]},{kind:"Field",alias:{kind:"Name",value:"urlLarge"},name:{kind:"Name",value:"url"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"transform"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mode"},value:{kind:"StringValue",value:"crop",block:!1}},{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"StringValue",value:"webp",block:!1}},{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"640"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"480"}}]}]}]}},{kind:"Field",name:{kind:"Name",value:"seo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"keywords"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"keyword"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rating"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"advanced"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canonical"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"robots"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"social"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"facebook"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"twitter"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"site"},value:{kind:"Variable",name:{kind:"Name",value:"lang"}}},{kind:"Argument",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"articleCategories",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"articleCategories_Category"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"entries"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"article",block:!1}},{kind:"Argument",name:{kind:"Name",value:"site"},value:{kind:"Variable",name:{kind:"Name",value:"lang"}}},{kind:"Argument",name:{kind:"Name",value:"relatedToCategories"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}]}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"StringValue",value:"postDate DESC",block:!1}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}
1},{kind:"Argument",name:{kind:"Name",value:"postDate"},value:{kind:"Variable",name:{kind:"Name",value:"dateRange"}}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"Variable",name:{kind:"Name",value:"roles"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"article_default_Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"secureSpace"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postDate"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"formatDateTime"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"StringValue",value:"d/m/Y",block:!1}}]}]},{kind:"Field",name:{kind:"Name",value:"audience"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"articleCategory"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"entryCount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"article",block:!1}},{kind:"Argument",name:{kind:"Name",value:"site"},value:{kind:"Variable",name:{kind:"Name",value:"lang"}}},{kind:"Argument",name:{kind:"Name",value:"relatedToCategories"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}]}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"StringValue",value:"postDate DESC",block:!1}},{kind:"Argument",name:{kind:"Name",value:"postDate"},value:{kind:"Variable",name:{kind:"Name",value:"dateRange"}}}],directives:[]}]}}],loc:{start:0,end:1798}};w.loc.source={body:`query NewsHub($section: [String], $lang: [String], $limit: Int!, $category: [QueryArgument], $dateRange: [String], $roles: [QueryArgument]) {
2  entry(section: $section, site: $lang) {
3    id
4    title
5    slug
6    ... on articleHub_Entry {
7      description {
8        html
9      }
10      image {
11        title
12        alt
13        # @todo Image transform: change width and height for mobile devices.
14        urlSmall: url @transform(mode: "crop", format: "webp", width: 320, height: 240)
15        # @todo Image transform: change width and height for desktop devices.
16        urlLarge: url @transform(mode: "crop", format: "webp", width: 640, height: 480)
17      }
18      seo {
19        title
20        description
21        keywords {
22          keyword
23          rating
24        }
25        advanced {
26          canonical
27          robots
28        }
29        social {
30          facebook {
31            title
32            description
33            image {
34              url
35            }
36          }
37          twitter {
38            title
39            description
40            image {
41              url
42            }
43          }
44        }
45      }
46    }
47  }
48  categories(site: $lang, group: "articleCategories") {
49    ... on articleCategories_Category {
50      id
51      title
52      slug
53    }
54  }
55  entries(
56    section: "article"
57    site: $lang
58    relatedToCategories: {id: $category}
59    orderBy: "postDate DESC"
60    limit: $limit
61    postDate: $dateRange
62    roles: $roles
63  ) {
64    ... on article_default_Entry {
65      id
66      title
67      slug
68      secureSpace
69      postDate @formatDateTime (format: "d/m/Y")
70      audience
71      articleCategory {
72        title
73      }
74    }
75  }
76  entryCount(section: "article", site: $lang, relatedToCategories: {id: $category}, orderBy: "postDate DESC", postDate: $dateRange)
77}
78`,name:"GraphQL request",locationOffset:{line:1,column:1}};function $(a,n){if(a.kind==="FragmentSpread")n.add(a.name.value);else if(a.kind==="VariableDefinition"){var t=a.type;t.kind==="NamedType"&&n.add(t.name.value)}a.selectionSet&&a.selectionSet.selections.forEach(function(d){$(d,n)}),a.variableDefinitions&&a.variableDefinitions.forEach(function(d){$(d,n)}),a.definitions&&a.definitions.forEach(function(d){$(d,n)})}var I={};(function(){w.definitions.forEach(function(n){if(n.name){var t=new Set;$(n,t),I[n.name.value]=t}})})();function J(a,n){for(var t=0;t<a.definitions.length;t++){var d=a.definitions[t];if(d.name&&d.name.value==n)return d}}function be(a,n){var t={kind:a.kind,definitions:[J(a,n)]};a.hasOwnProperty("loc")&&(t.loc=a.loc);var d=I[n]||new Set,N=new Set,s=new Set;
78for(d.forEach(function(o){s.add(o)});s.size>0;){var T=s;s=new Set,T.forEach(function(o){if(!N.has(o)){N.add(o);var g=I[o]||new Set;g.forEach(function(_){s.add(_)})}})}return N.forEach(function(o){var g=J(a,o);g&&t.definitions.push(g)}),t}be(w,"NewsHub");const Se={key:0},he={class:"c-filters u-padding-vertical-xl"},we={class:"o-container"},Fe={class:"o-layout__item u-6/12"},Ve={class:"u-type-serif"},Ce={class:"o-list-bare"},Ae=["id","value"],De=["for"],$e={class:"o-layout__item u-6/12"},Te={class:"u-type-serif"},xe={class:"o-list-bare"},Ee=["id","value"],Re=["for"],Ie={class:"u-padding-bottom-3xl"},Le={class:"o-layout"},Be={class:"o-container u-margin-top-l"},He=ge({__name:"index",async setup(a){var Q,q;let n,t;const{locale:d}=se(),N=ve(),s=oe().query,T=ue(),o=12,g=le(),_=e=>Array.isArray(e)?e.flatMap(_):e==null||e===""?[]:[String(e)],L=e=>{if(e.length!==1)return;const l=e[0];return["and",`>=${l}-01-01 00:00:00`,`<=${l}-12-31 23:59:59`]},m=C(_(s.category)),p=C(_(s.year)),B=C(),c=C({section:"articleHub",lang:d.value,category:m.value.length?m.value:void 0,limit:o,dateRange:L(p.value)}),{data:H,error:O,refresh:K}=s["x-craft-live-preview"]&&s.token?([n,t]=M(()=>{var e;return ye(T.apolloEndpoint,{body:{query:(e=w.loc)==null?void 0:e.source.body,variables:c.value},query:{token:s.token},method:"POST"},"$v1z7EKdfk2")}),n=await n,t(),n):([n,t]=M(()=>ke(w,c.value)),n=await n,t(),n),F=h(()=>{var e;return((e=H.value)==null?void 0:e.data)??H.value??{}}),f=h(()=>F.value.entry??null),X=h(()=>F.value.categories??[]),W=h(()=>F.value.entries??[]),Z=h(()=>F.value.entryCount??0);if(!f.value)throw me({statusCode:404,fatal:!0});if(!O.value&&((Q=f.value)!=null&&Q.seo)){const e=f.value.seo;ce({title:Ne(e.title),meta:[{name:"description",content:e.description},{property:"og:title",content:e.social.facebook.title},{property:"og:description",content:e.social.facebook.description},{property:"og:image",content:(q=e.social.facebook.image)==null?void 0:q.url},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:e.social.twitter.title},{name:"twitter:description",content:e.social.twitter.description}]})}const P=()=>{if(typeof window>"u")return;const e=new URL(window.location.href),l=e.searchParams;l.delete("category"),l.delete("year"),m.value.forEach(S=>l.append("category",S)),p.value.forEach(S=>l.append("year",S));const V=l.toString(),b=`${e.pathname}${V?`?${V}`:""}${e.hash}`;`${e.pathname}${e.search}${e.hash}`!==b&&window.history.replaceState(window.history.state,"",b)},x=async(e=!0)=>{c.value.category=m.value.length?m.value:void 0,c.value.dateRange=L(p.value),e&&(c.value.limit=o),await K()},ee=async()=>{c.value.limit=c.value.limit+o,await x(!1)};U(m,async()=>{P(),await x()},{deep:!0}),U(p,async()=>{P(),await x()},{deep:!0});const ne=()=>{B.value.toggle()};return(e,l)=>{const V=ae,b=te,S=re,ie=de;return!u(O)&&u(f)?(k(),v("div",Se,[A(V,{title:u(f).title,content:u(f).description},null,8,["title","content"]),r("section",he,[r("div",we,[A(b,{onClick:l[0]||(l[0]=i=>ne()),label:e.$t("modules.search.filter"),type:"secondary",icon:"settings",class:"c-inline-nav__filter"},null,8,["label"])])]),A(S,{ref_key:"filtersPanel",ref:B},{default:pe(()=>[r("div",Fe,[r("h6",Ve,D(e.$t("global.filters.categories")),1),r("ul",Ce,[(k(!0),v(E,null,R(u(X),i=>(k(),v("li",{key:i.id,class:"o-list-bare__item u-margin-bottom-xs"},[z(r("input",{"onUpdate:modelValue":l[1]||(l[1]=y=>m.value=y),class:"c-form__checkbox",type:"checkbox",id:"category-"+i.id,name:"category",value:String(i.id)},null,8,Ae),[[G,m.value]]),r("label",{class:"c-form__checkbox-label",for:"category-"+i.id},D(i.title),9,De)]))),128))])]),r("div",$e,[r("h6",Te,D(e.$t("global.filters.years")),1),r("ul",xe,[(k(!0),v(E,null,R(u(g),i=>(k(),v("li",{key:i,class:"o-list-bare__item u-margin-bottom-xs"},[z(r("input",{"onUpdate:modelValue":l[2]||(l[2]=y=>p.value=y),class:"c-form__checkbox",type:"checkbox",id:"year-"+i,name:"year",value:String(i)},null,8,Ee),[[G,p.value]]),r("label",{class:"c-form__checkbox-label",for:"year-"+i},D(i),9,Re)]))),128))])])]),_:1},512),r("section",Ie,[r("div",Le,[(k(!0),v(E,null,R(u(W),i=>{var y,j;return k(),v("div",{key:i.id,class:"o-layout__item u-12/12"},[A(ie,{hasLockIcon:i.secureSpace,theme:i.audience,category:(j=(y=i.articleCategory)==null?void 0:y[0])==null?void 0:j.title,date:i.postDate,title:i.title,route:u(N)({name:"news-slug",params:{slug:i.slug}}),forceBlank:i.secureSpace},null,8,["hasLockIcon","theme","category","date","title","route","forceBlank"])])}),128))]),r("div",Be,[c.value.limit<u(Z)?(k(),fe(b,{key:0,label:e.$t("modules.news.viewMoreLabel"),onClick:l[3]||(l[3]=i=>ee()),icon:"plus",class:"u-margin-top-m"},null,8,["label"])):Y("",!0)])])])):Y("",!0)}}});
78const nn=_e(He,[["__scopeId","data-v-7b11c0aa"]]);export{nn 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.