PageSourceSearch

https://www.cisilion.com/_nuxt/index.3bfefb19.js

js cisilion.com collected 2026-09-25 14:41:47 UTC 11,206 bytes, 28 lines download raw bytes

1import{a as ce,g as J,u as v,p as S,v as s,C as de,w as K,q as ue,x as ve,h as e,c,b as p,e as z,y as t,i as b,E as pe,G as _e,I as me,J as ge,z as F,t as T,F as L,f as M,r as Y,j as _,H as he,_ as fe,o as i,B as ye,l as W,n as X,K as we,T as be,M as Ee}from"./entry.467af7bd.js";import xe from"./Filters.8da407ee.js";import Te from"./Loader.4e770454.js";import ke from"./Article.4ff2b1fe.js";import Pe from"./Pagination.4c77f9a7.js";import{u as De}from"./fetch.fa1a1854.js";import{u as Ie}from"./index.7be1994d.js";import"./icon-chevron-down.f628afd8.js";import"./ShareButton.dd85af51.js";const Re=`
2    query EventsTemplate($slug: ID!) {
3        page(id: $slug, idType: URI) {
4            seo {
5                title
6                metaDesc
7                metaKeywords
8                metaRobotsNofollow
9                metaRobotsNoindex
10                canonical
11                opengraphDescription
12                opengraphTitle
13                twitterTitle
14                twitterDescription
15                twitterImage {
16                    sourceUrl(size: LARGE)
17                }
18                opengraphImage {
19                    sourceUrl(size: LARGE)
20                }
21            }
22            pageOptions {
23                headerStyle
24            }
25        }
26    }
27`,Se={key:0,class:"events"},Fe={class:"events__banner"},Le={key:0,itemprop:"location",itemscope:"",itemtype:"https://schema.org/Place",style:{display:"none"}},Me=["content"],Ce=["src","srcset","sizes","alt","title"],Ne={class:"c-section-banner__wrapper"},$e={class:"grid-container"},ze={class:"grid-x grid-margin-x"},Ue={class:"small-12 cell"},He={class:"c-section-banner__pretitle-wrapper"},je=t("h1",{class:"c-section-banner__pretitle"},"Events",-1),qe={class:"c-section-banner__logo"},Ae={class:"grid-container"},Be={class:"grid-x grid-margin-x"},Qe={class:"small-12 medium-6 cell"},Oe={class:"c-section-banner__title",itemprop:"name"},Ve={class:"small-12 medium-6 large-5 large-offset-1 cell"},Ge={class:"c-section-banner__date",itemprop:"startDate"},Je=["innerHTML"],Ke={key:0,itemprop:"location",itemscope:"",itemtype:"https://schema.org/Place",style:{display:"none"}},Ye=["content"],We=["src","srcset","sizes","alt","title"],Xe={class:"c-section-banner__wrapper"},Ze={class:"grid-container"},et={class:"grid-x grid-margin-x"},tt={class:"small-12 cell"},st={class:"c-section-banner__pretitle-wrapper"},at=t("h1",{class:"c-section-banner__pretitle"},"Events",-1),nt={class:"c-section-banner__logo"},ot={class:"grid-container"},it={class:"grid-x grid-margin-x"},lt={class:"small-12 medium-6 cell"},rt={class:"c-section-banner__title",itemprop:"name"},ct={class:"small-12 medium-6 large-5 large-offset-1 cell"},dt={class:"c-section-banner__date",itemprop:"startDate"},ut=["innerHTML"],vt={class:"events__wrapper"},pt={class:"news__search"},_t={class:"grid-container"},mt={class:"grid-x grid-margin-x"},gt={class:"small-12 medium-9 medium-offset-3 cell"},ht=["disabled"],ft={class:"grid-container"},yt={class:"grid-x grid-margin-x"},wt={class:"small-12 medium-3 cell"},bt={class:"c-filters__sticky-wrapper"},Et={class:"c-filters__count"},xt={class:"small-12 medium-9 cell"},Tt={class:"news__items"},kt={key:0,class:"news__loading"},$t={__name:"index",async setup(Pt){let C,N;const Z=ce(),ee=ye(),te=J(Re),k=Ie("(max-width: 767px)"),d=v("eventsTemplateData",()=>null),m=v("eventsData",()=>null),P=S(!1),E=v("isLoading",()=>!1),q=v("isInitialisedEvents",()=>!1),h=v("activeFilters",()=>[]),U=v("isFiltering",()=>!1),H=v("isClearingFilters",()=>!1),x=v("isSearchQuery",()=>!1),A=v("loadingTimeout",()=>null),se=v("terms",()=>[]),g=v("search",()=>""),ae=s().globalData.globalContent.globalContent.categories.filter(n=>n.parentCategories.applicablePostTypes.includes("event")),B=s().globalData.readingSettings.postsPerPage,Q=S(null),f=S(""),y=S(1);de([U,H,y],async([n,a,r],[l,u,w])=>{!u&&a?(y.value=1,P.value=!1,H.value=!1,x.value=!1,g.value="",h.value=[],await D(),$(1)):!l&&n?(y.value=1,U.value=!1,x.value=!1,g.value="",await D(),$(1)):r!==w&&(await D(),$(r))});let O=S({current:1,visible:5});const V={slug:Z.path},ne=async()=>{const{data:n,error:a}=await W(te,{...V});if(!(n&&n.value&&n.value.page))throw X({statusCode:404,statusMessage:"Page Not Found"});d.value=n.value.page,Q.value=n.value.page.pageOptions.headerStyle},D=async()=>{E.value=!0,x.value=!1;const n=(y.value-1)*B,a=J(we(P.value?"Past":"Future",B,n,JSON.stringify(h.value).replace(/"([^"]+)":/g,"$1:"))),{data:r,error:l}=await W(a,{...V});if(!(r&&r.value&&r.value.events))throw X({statusCode:404,statusMessage:"Page Not Found"});m.value=r.value.events,f.value=m.value.pageInfo.total,setTimeout(()=>{E.value=!1,q.value=!0},1500)},oe=async n=>{if(clearTimeout(A.value),!g.value){x.value=!1,await D();return}if(g.value.length<3){E.value=!1;return}E.value=!0,x.value=!0,A.value=setTimeout(async()=>{let a=new FormData;a.append("action","cisilion_get_search_data"),a.append("post_types",["event"]),a.append("query",g.value);const{data:r,error:l}=await De(`${ee.public.cmsBaseUrl}/wp/wp-admin/admin-ajax.php`,{method:"POST",body:a,server:!0},"$E5yYdkStkR");setTimeout(()=>{E.value=!1,m.value=JSON.parse(r.value),f.value=m.value.length},1500)},1e3)},$=n=>{let a={current:n,visible:r(n-2,n+2,Math.ceil(f.value/s().globalData.readingSettings.postsPerPage))};function r(l,u,w){l=l<1?1:l,u=u>w?w:u,l>u&&([l,u]=[u,l]);const I=[];for(let R=l;R<=u;R++)I.push(R);return I}O.value=a};[C,N]=K(()=>ne()),await C,N(),[C,N]=K(()=>D()),await C,N();const ie=n=>{h.value.filter(a=>a==n).length?h.value=h.value.filter(a=>a!==n):h.value.push(n)};return ue(()=>{if(s().setHeaderTheme(Q.value),k.value==!1){const n=document.getElementsByClassName("js-parallax");new simpleParallax(n,{delay:.6,transition:"cubic-bezier(0,0,0,1)"})}$(y.value)}),(n,a)=>{const r=be,l=Ee,u=he,w=ve("SvgoIconLogo"),I=fe,R=xe,le=Te,G=ke,re=Pe;return e(d)&&e(m)?(i(),c("main",Se,[p(u,null,{default:z(()=>[p(r,null,{default:z(()=>[M(T(e(d).seo.title),1)]),_:1}),p(l,{name:"description",content:e(d).seo.metaDesc},null,8,["content"]),p(l,{name:"og:title",content:e(d).seo.opengraphTitle},null,8,["content"]),p(l,{name:"og:description",content:e(d).seo.opengraphDescription},null,8,["content"]),e(d).seo.opengraphImage?(i(),b(l,{key:0,name:"og:image",content:e(d).seo.opengraphImage.sourceUrl},null,8,["content"])):_("",!0),p(l,{name:"twitter:title",content:e(d).seo.twitterTitle},null,8,["content"]),p(l,{name:"twitter:description",content:e(d).seo.twitterDescription},null,8,["content"]),e(d).seo.twitterImage?(i(),b(l,{key:1,name:"twitter:image",content:e(d).seo.twitterImage.sourceUrl},null,8,["content"])):_("",!0)]),_:1}),t("div",Fe,[e(s)().latestEvent.slug?(i(),b(I,{key:0,to:`/events/${e(s)().latestEvent.slug}`,class:"c-section-banner is-single",title:e(s)().latestEvent.title,itemprop:"event",itemscope:"",itemtype:"https://schema.org/Event"},{default:z(()=>[e(s)().latestEvent.event.eventLocation?(i(),c("div",Le,[t("meta",{itemprop:"name",content:e(s)().latestEvent.event.eventLocation},null,8,Me)])):_("",!0),e(s)().latestEvent.event.featuredImage?(i(),c("div",{key:1,class:F(["c-section-banner__media",[{"js-parallax__wrapper":!e(k)}]])},[t("img",{class:F([{"js-parallax":!e(k)}]),src:e(s)().latestEvent.event.featuredImage.sourceUrl,srcset:e(s)().latestEvent.event.featuredImage.srcSet,sizes:e(s)().latestEvent.event.featuredImage.sizes,alt:e(s)().latestEvent.altText,title:e(s)().latestEvent.title,itemprop:"image"},null,10,Ce)],2)):_("",!0),t("div",Ne,[t("div",$e,[t("div",ze,[t("div",Ue,[t("div",He,[je,t("div",qe,[p(w)])])])])]),t("div",Ae,[t("div",Be,[t("div",Qe,[t("div",Oe,T(e(s)().latestEvent.title),
271)]),t("div",Ve,[t("div",Ge,T(e(s)().latestEvent.event.eventDate),1),e(s)().latestEvent.event.excerpt?(i(),c("div",{key:0,class:"c-section-banner__content s-wp-cms",innerHTML:e(s)().latestEvent.event.excerpt,itemprop:"description"},null,8,Je)):_("",!0)])])])])]),_:1},8,["to","title"])):(i(),b(I,{key:1,to:`/events/${e(s)().mostRecentEvent.slug}`,class:"c-section-banner is-single",title:e(s)().mostRecentEvent.title,itemprop:"event",itemscope:"",itemtype:"https://schema.org/Event"},{default:z(()=>[e(s)().mostRecentEvent.event.eventLocation?(i(),c("div",Ke,[t("meta",{itemprop:"name",content:e(s)().mostRecentEvent.event.eventLocation},null,8,Ye)])):_("",!0),e(s)().mostRecentEvent.event.featuredImage?(i(),c("div",{key:1,class:F(["c-section-banner__media",[{"js-parallax__wrapper":!e(k)}]])},[t("img",{class:F([{"js-parallax":!e(k)}]),src:e(s)().mostRecentEvent.event.featuredImage.sourceUrl,srcset:e(s)().mostRecentEvent.event.featuredImage.srcSet,sizes:e(s)().mostRecentEvent.event.featuredImage.sizes,alt:e(s)().mostRecentEvent.altText,title:e(s)().mostRecentEvent.title,itemprop:"image"},null,10,We)],2)):_("",!0),t("div",Xe,[t("div",Ze,[t("div",et,[t("div",tt,[t("div",st,[at,t("div",nt,[p(w)])])])])]),t("div",ot,[t("div",it,[t("div",lt,[t("div",rt,T(e(s)().mostRecentEvent.title),1)]),t("div",ct,[t("div",dt,T(e(s)().mostRecentEvent.event.eventDate),1),e(s)().mostRecentEvent.event.excerpt?(i(),c("div",{key:0,class:"c-section-banner__content s-wp-cms",innerHTML:e(s)().mostRecentEvent.event.excerpt,itemprop:"description"},null,8,ut)):_("",!0)])])])])]),_:1},8,["to","title"]))]),t("div",vt,[t("div",pt,[t("div",_t,[t("div",mt,[t("div",gt,[t("form",{onSubmit:a[1]||(a[1]=pe(()=>{},["prevent"]))},[_e(t("input",{"onUpdate:modelValue":a[0]||(a[0]=o=>ge(g)?g.value=o:null),onInput:oe,type:"search",placeholder:"Search",disabled:!e(q)},null,40,ht),[[me,e(g)]])],32)])])])]),t("div",ft,[t("div",yt,[t("div",wt,[t("div",bt,[t("button",{class:F(["c-filters__toggle-past-events",{"is-active":e(P)}]),type:"button",onClick:a[2]||(a[2]=o=>P.value=!e(P))}," Show past events ",2),p(R,{postType:"event",activeFilters:e(h),taxonomies:e(ae),terms:e(se),onToggleTerm:ie,onClearFilters:a[3]||(a[3]=o=>H.value=!0),onApplyFilters:a[4]||(a[4]=o=>U.value=!0)},null,8,["activeFilters","taxonomies","terms"]),t("div",Et,[t("b",null,T(e(f)),1),e(f)==1?(i(),c(L,{key:0},[M(" result")],64)):(i(),c(L,{key:1},[M(" results")],64)),M(" found ")])])]),t("div",xt,[t("div",Tt,[e(E)?(i(),c("div",kt,[p(le)])):e(x)?(i(!0),c(L,{key:1},Y(e(m),(o,j)=>(i(),b(G,{key:j,permalink:o.link,name:o.data.post_title,excerpt:o.data.post_excerpt,date:o.data.post_date,location:o.event.location,image:o.image,video:o.data.video},null,8,["permalink","name","excerpt","date","location","image","video"]))),128)):e(m).edges.length>0?(i(!0),c(L,{key:2},Y(e(m).edges,(o,j)=>(i(),b(G,{key:j,type:"event",permalink:`/events/${o.node.slug}`,name:o.node.title,excerpt:o.node.event.excerpt,date:o.node.event.eventDate,location:o.node.event.eventLocation,image:o.node.event.featuredImage,video:o.node.event.video,author:o.node.event.author},null,8,["permalink","name","excerpt","date","location","image","video","author"]))),128)):(i(),c(L,{key:3},[M(" There are currently no upcoming events to display. ")],64))])])])]),e(f)>5?(i(),b(re,{key:0,pages:Math.ceil(e(f)/e(s)().globalData.readingSettings.postsPerPage),visiblePages:e(O),currentPage:e(y),onUpdatePagination:a[5]||(a[5]=o=>y.value=o)},null,8,["pages","visiblePages","currentPage"])):_("",!0)])])):_("",!0)}}};export{$t as default};
28//# sourceMappingURL=index.3bfefb19.js.map

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.