import{d as z,u as N,a as C,a6 as O,Q as T,aC as V,X as f,c as W,q as B,e as l,f as u,s as P,n as q,k as Q,t as F,h as e,j as n,w as i,aL as _,aM as m,F as v,r as b,i as L,a8 as R,m as A}from"./index-CYs9MVUz.js";import{s as K}from"./slider-uJEfoZaD.js";import{a as y,S as g}from"./swiper-vue-JQLYI536.js";import{E as w}from"./EventCard-CPdvxZ89.js";import{E as M}from"./Event.api-Ci-FYDcb.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="4a857a8a-7d7b-4e90-a556-b53ff5256a85",a._sentryDebugIdIdentifier="sentry-dbid-4a857a8a-7d7b-4e90-a556-b53ff5256a85")}catch{}})();const j={class:"events"},k=z({__name:"WeWebEventsSlider",props:{title:{}},setup(a){const{t}=N(),{breakpoints:s}=C(),{data:o,isLoading:D,isError:h,isSuccess:S}=O({queryKey:[T.EVENTS_NETWORKING],queryFn:()=>M.getNetworkingOrEvents({page:1,size:9,labels:[],fromDate:V(f.now().toISODate(),{locale:"fr",format:f.DATE_SHORT})})}),d=K({breakpoints:{520:{slidesPerView:1.5},760:{slidesPerView:2.5},1024:{slidesPerView:3.5}}}),I=W(()=>s.value.md||s.value.lg||s.value.xl||s.value.xxl);return(p,G)=>{const x=B("white-space");return l(),u("section",j,[P((l(),u("h2",{class:q(["mb-4",I.value?"title-1":"title-2"])},[Q(F(p.title?p.title:e(t)("title")),1)],2)),[[x]]),n(R,{"is-success":e(S),"is-loading":e(D),"is-error":e(h)},{success:i(()=>[n(e(y),_(m(e(d))),{default:i(()=>{var c;return[(l(!0),u(v,null,b((c=e(o))==null?void 0:c.data.map(r=>({...r,picture:r.image,publicUrl:r.url})),r=>(l(),L(e(g),{key:r.id},{default:i(()=>[n(w,{event:r,class:"carousel__item",detailed:"",small:""},null,8,["event"])]),_:2},1024))),128))]}),_:1},16)]),fallback:i(()=>[n(e(y),_(m(e(d))),{default:i(()=>[(l(),u(v,null,b(5,c=>n(e(g),{key:c},{default:i(()=>[n(w,{loading:"",class:"carousel__item",detailed:"",small:""})]),_:2},1024)),64))]),_:1},16)]),_:1},8,["is-success","is-loading","is-error"])])}}});function E(a){const t=a;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{fr:{title:s=>{const{normalize:o}=s;return o([`Entrez dans la dynamique d’un
futur expat’ avec nos événements`])}},en:{title:s=>{const{normalize:o}=s;return o([`Enter the dynamics of a
future expat ’with our events`])}}}})}typeof E=="function"&&E(k);const Z=A(k,[["__scopeId","data-v-e1b04249"]]);export{Z as W};
//# sourceMappingURL=WeWebEventsSlider-CFRHlkOq.js.map