1import{_ as L}from"./CoHVYfMW.js";import{aF as N,aY as V,aG as Y,aL as z,aR as C,aJ as M}from"#entry";import{S as T,P as A,A as F,a as H}from"./BlUFQW9o.js";import{N as O}from"./C7dqTIgx.js";/* empty css */import{r as v,at as R,y as w,o as q,j as G,d as a,e as s,f as e,t as c,ac as t,z as n,F as k,C as E,q as _,p as J}from"./CNzPmT6J.js";import"./DCaVKiR7.js";import"./DevKYhMi.js";import"./Bc6uEGJQ.js";import"./DtZLN5-E.js";import"./DYty7XS0.js";import"./BLijzR64.js";import"./PjIZkaXi.js";import"./B10c3pAL.js";import"./BMQDsIPJ.js";import"./ofpTtb0S.js";import"./DHMnLHBW.js";import"./Bh6dsOB6.js";import"./CISfXxJx.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"7d0d20f9c7cf27ec217d57ec802a374a5d5272f7"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new o.Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="093d8847-2f18-4bc9-be74-f323266f814c",o._sentryDebugIdIdentifier="sentry-dbid-093d8847-2f18-4bc9-be74-f323266f814c")})()}catch{}const K={class:"relative bg-gradient-to-br from-teal-50 via-white to-sky-50 py-16 sm:py-24 overflow-hidden"},Q={class:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10"},U={class:"max-w-3xl mb-12 sm:mb-16 animate-fade-in"},W={class:"inline-block mb-4"},X={class:"text-xs sm:text-sm font-semibold text-teal-700 uppercase tracking-wider px-3 sm:px-4 py-1.5 sm:py-2 bg-teal-100 rounded-2xl border border-teal-200"},Z={class:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-slate-900 leading-tight mb-4 animate-fade-in-up animation-delay-200"},ee={key:0,class:"flex justify-center items-center py-20 animate-fade-in"},te={class:"relative"},se={key:1,class:"text-center py-20 animate-fade-in-up"},ae={class:"inline-flex items-center gap-3 px-6 py-4 bg-red-50 border border-red-200 rounded-2xl"},oe={class:"text-red-700 font-medium"},ne={key:2,class:"animate-fade-in-up animation-delay-600"},le={key:0,class:"grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 px-4"},ie={key:1,class:"-mx-5"},re={class:"h-full"},de={key:3,class:"text-center py-20 animate-fade-in-up"},ce={class:"inline-flex flex-col items-center gap-4 px-8 py-10 bg-slate-50 border border-slate-200 rounded-3xl"},ue={class:"text-slate-600 font-medium text-lg"},me={class:"mt-10 sm:mt-12 flex justify-center sm:justify-end animate-fade-in-up animation-delay-800"},pe={__name:"Events",async setup(o){let i,y;const u=V(),$=Y(),D=C(),{locale:S}=z(),g=v(!0),m=v(null),B=D().startOf("day"),I=async()=>{try{g.value=!0,await u.fetch({model:"events",locale:S.value,sort:"startDate:asc",pageSize:12,page:1,populate:["banner"],filters:[{field:"type",operator:"$ne",value:"reunion_institutionnelle"},{field:"unpublished",operator:"$ne",value:!0},{field:"deleted",operator:"$ne",value:!0},{field:"startDate",operator:"$gte",value:B.format("YYYY-MM-DD")}]})}catch(l){m.value=l,console.error("Erreur lors du chargement des événements:",l)}finally{g.value=!1}};[i,y]=R(()=>I()),await i,y();const p=w(()=>u.items||[]),P=w(()=>u.loadingItems),x=v(!1);return q(()=>{x.value=!0}),(l,r)=>{const d=G("font-awesome"),h=L,j=M;return s(),a("div",K,[r[2]||(r[2]=e("div",{class:"absolute inset-0 overflow-hidden pointer-events-none opacity-30"},[e("div",{class:"absolute top-20 left-1/4 w-96 h-96 bg-teal-200 rounded-full mix-blend-multiply filter blur-3xl animate-blob"}),e("div",{class:"absolute -bottom-20 right-1/4 w-96 h-96 bg-sky-200 rounded-full mix-blend-multiply filter blur-3xl animate-blob animation-delay-2000"}),e("div",{class:"absolute top-1/2 right-1/3 w-96 h-96 bg-slate-200 rounded-full mix-blend-multiply filter blur-3xl animate-blob animation-delay-4000"})],-1)),e("div",Q,[e("div",U,[e("div",W,[e("p",X,c(l.$t("pages.home.HomeEvents.p")),1)]),e("h2",Z,c(l.$t("pages.home.HomeEvents.h2")),1),r[0]||(r[0]=e("div",{class:"w-24 h-1 bg-gradient-to-r from-teal-500 to-sky-500 rounded-full animate-fade-in-up animation-delay-400"},null,-1))]),t(P)?(s(),a("div",ee,[e("div",te,[r[1]||(r[1]=e("div",{class:"absolute inset-0 blur-xl bg-teal-400 opacity-50 rounded-full"},null,-1)),n(d,{class:"fa-fw animate-spin h-12 w-12 text-teal-600 relative z-10",icon:["fal","spinner-third"]})])])):t(m)?(s(),a("div",se,[e("div",ae,[n(d,{class:"text-red-500 text-2xl",icon:["fas","exclamation-circle"]}),e("span",oe,c(l.$t("common.error",{message:t(m).message})),1)])])):t(p).length>0?(s(),a("div",ne,[t(x)?(s(),a("div",ie,[n(t(H),{modules:[t(A),t(O),t(F)],"slides-per-view":1,"space-between":24,observer:!0,"observe-parents":!0,"resize-observer":!0,autoplay:{delay:3500,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:{dynamicBullets:!0,clickable:!0},breakpoints:{640:{slidesPerView:1,spaceBetween:16},768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:24},1280:{slidesPerView:4,spaceBetween:24}},class:"!pb-12 !px-5"},{default:_(()=>[(s(!0),a(k,null,E(t(p),(f,b)=>(s(),J(t(T),{key:b,class:"!h-auto"},{default:_(()=>[e("div",re,[n(h,{event:f},null,8,["event"])])]),_:2},1024))),128))]),_:1},8,["modules"])])):(s(),a("div",le,[(s(!0),a(k,null,E(t(p).slice(0,4),(f,b)=>(s(),a("div",{key:`ssr-${b}`},[n(h,{event:f},null,8,["event"])]))),128))]))])):(s(),a("div",de,[e("div",ce,[n(d,{class:"text-slate-400 text-5xl",icon:["fal","calendar"]}),e("span",ue,c(l.$t("pages.events.count")),1)])])),e("div",me,[n(j,{to:t($)({name:"events"}),class:"hero-btn hero-btn-light"},{default:_(()=>[n(d,{icon:["fas","calendar-alt"],class:"hero-btn-icon"}
1),e("span",null,c(l.$t("pages.home.HomeEvents.button")),1),n(d,{icon:["fas","arrow-right"],class:"hero-btn-arrow"})]),_:1},8,["to"])])])])}}},Ne=N(pe,[["__scopeId","data-v-c3fd1aba"]]);export{Ne as default}; 2//# sourceMappingURL=DLzPhZuR.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.