1import{_ as A}from"./BGMwKhe_.js";import{u as V,j,k as E,w as d,l as L,o as N,c as l,a as t,b as e,d as v,e as _,t as m,n as b,F as w,r as f,f as n,i as U,h as H,m as F,g as G,_ as z}from"./ClS0-jLi.js";import{_ as D}from"./T4qx5pAP.js";import{_ as I}from"./CcgHLOnJ.js";import{j as g}from"./DRzGW2vL.js";import{S as $,i as O,a as R,d as W,t as q}from"./DE11qgds.js";import{u as J,g as K}from"./CyK7VpNk.js";import{g as Q}from"./BfC5RXdj.js";import{n as X}from"./DYYNZbRe.js";import{g as Y}from"./MkZDWhN2.js";import{S as B}from"./QTFLq4yf.js";import"./Dqxmxt4-.js";import"./C4iS2aBk.js";import"./LMv-itJy.js";const Z=["src","alt"],ee={class:"device-content"},te={class:"page-title"},se={class:"page-title_top"},ae=["innerHTML"],oe={align:"center"},ie={class:"page-links"},ne={class:"page-content"},le={class:"device-content"},re=["innerHTML"],pe=t("br",null,null,-1),ce=t("br",null,null,-1),ue=t("br",null,null,-1),de=t("br",null,null,-1),_e={key:0,class:"support-events"},me={class:"support-events_title"},ge={class:"support-events-upcoming_swiper"},he={class:"swiper-wrapper"},ve={key:1,class:"support-events"},we={class:"support-events_title"},fe={class:"support-events-past_swiper"},Te={class:"swiper-wrapper"},He={__name:"[slug]",async setup(ye){let s,r;Y.registerPlugin($);const{locale:c}=V(),T=j(),u=G();let C=E(T.fullPath),a;C.value=window.location.href;const{data:p}=([s,r]=d(()=>fetch(u.app.strapiBaseUri+"/api/page-support?"+g({locale:c.value,populate:{Seo:{populate:"*"},image:{populate:"*"},types:{populate:"*"}}}),{method:"GET"}).then(o=>o.json())),s=await s,r(),s),{data:h}=([s,r]=d(()=>fetch(u.app.strapiBaseUri+"/api/types?"+g({locale:c.value,filters:{slug:T.params.slug},populate:{image:{populate:"*"},contents:{populate:"*"}}}),{method:"GET"}).then(o=>o.json())),s=await s,r(),s);if(h.length==0)throw L({statusCode:404,statusMessage:"Page Not Found"});a=h[0],a.id=h[0].id;const{data:y}=([s,r]=d(()=>fetch(u.app.strapiBaseUri+"/api/events?"+g({locale:c.value,sort:{date_auto:"asc"},pagination:{limit:1e8},populate:{categories:{populate:"*"},image:{populate:"*"},dates:{populate:"*"},places:{populate:"*"},event_group:{populate:"*"}},filters:{dates:{date_end:{$gte:new Date().toISOString()}},types:a.id}}),{method:"GET"}).then(o=>o.json())),s=await s,r(),s),{data:S}=([s,r]=d(()=>fetch(u.app.strapiBaseUri+"/api/events?"+g({locale:c.value,sort:{date_auto:"desc"},pagination:{limit:1e8},populate:{categories:{populate:"*"},image:{populate:"*"},dates:{populate:"*"},places:{populate:"*"},event_group:{populate:"*"}},filters:{dates:{date_end:{$lte:new Date().toISOString()}},types:a.id}}),{method:"GET"}).then(o=>o.json())),s=await s,r(),s);return N(()=>{O(),setTimeout(function(){R()||(new B(".support-events-upcoming_swiper",{direction:"horizontal",slidesPerView:1.1,spaceBetween:10,mousewheelControl:!0,mousewheel:{forceToAxis:!0},breakpoints:{768:{slidesPerView:3,spaceBetween:16}}}),new B(".support-events-past_swiper",{direction:"horizontal",slidesPerView:1.1,spaceBetween:10,mousewheelControl:!0,mousewheel:{forceToAxis:!0},breakpoints:{768:{slidesPerView:3,spaceBetween:16}}}))},W)}),p.Seo&&J({title:p.Seo.metaTitle,meta:K(p.Seo),bodyAttrs:{class:"generic"}}),(o,Se)=>{const M=A,P=z,x=D,k=I;return n(),l("div",null,[t("div",{class:b(["page-head",{"page-head_noimg":!e(a).image}])},[e(a).image?(n(),l("img",{key:0,src:("getStrapiMedia"in o?o.getStrapiMedia:e(Q))(e(a).image,"xlarge"),alt:e(a).title},null,8,Z)):v("",!0),t("div",ee,[_(M,{title:e(a).title,parent:e(p).title,parent_link:"support"},null,8,["title","parent"])]),t("div",te,[t("div",se,m(e(p).title),1),t("h1",{innerHTML:("textToArray"in o?o.textToArray:e(q))(e(a).title,!0)},null,8,ae)])],2),t("div",oe,[t("div",ie,[(n(!0),l(w,null,f(e(p).types,i=>(n(),U(P,{key:i.id,to:o.localePath({name:"support-slug",params:{slug:i.slug}}),class:b({active:e(a).slug==i.slug})},{default:H(()=>[F(m(i.title),1)]),_:2},1032,["to","class"]))),128))])]),t("div",ne,[t("div",le,[t("div",{class:"page-chapo",innerHTML:("nl2br"in o?o.nl2br:e(X))(e(a).chapo)},null,8,re),_(x,{contents:e(a).contents},null,8,["contents"]),pe,ce,ue,de,e(y).length>0?(n(),l("div",_e,[t("div",me,m(e(a).titleUpcoming),1),t("div",ge,[t("div",he,[(n(!0),l(w,null,f(e(y),i=>(n(),l("div",{class:"event-list_item swiper-slide",key:i.id},[_(k,{event:i},null,8,["event"])]))),128))])])])):v("",!0),e(S).length>0?(n(),l("div",ve,[t("div",we,m(e(a).titlePast),1),t("div",fe,[t("div",Te,[(n(!0),l(w,null,f(e(S),i=>(n(),l("div",{class:"event-list_item swiper-slide",key:i.id},[_(k,{event:i},null,8,["event"])]))),128))])])])):v("",!0)])])])}}};export{He 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.