PageSourceSearch

https://alliancy.fr/_nuxt/Cz0_QQ_X.js

js alliancy.fr collected 2026-10-02 02:50:53 UTC 8,596 bytes, 1 lines download raw bytes

1import{_ as X}from"./C6b3_UAZ.js";import{_ as Y,a as Z,b as ee,c as te,d as ne,e as se}from"./CoIjhiAL.js";import{d as k,h as D,o as a,B as _,ac as j,u as t,w as x,f as V,e as w,I as U,l as I,aa as q,E as ae,a9 as oe,c as m,F as N,ab as O,t as g,b as h,x as P,p as R,q as G,v as re,a as p,r as ie,j as f,ao as ce,ak as J,_ as le,al as ue,ap as me,aq as _e,m as de,ar as pe,s as fe,n as ve,H as ge,as as H,at as ye,J as he,k as xe,au as M,av as ke,aw as be,ax as Ee}from"./BMrxR1rr.js";import{i as $e,a as we}from"./DjuG4DBI.js";import"./CIbmbWWw.js";const Le=k({name:"EventUnregisterLink",__name:"EventUnregisterLink",props:{event:{}},setup(e){const n=e,r=D(),l=w(()=>r({name:"community_event_unregister",params:U(n.event)}));return(i,u)=>{const c=j;return a(),_(c,{to:t(l),class:"event-unregister-link"},{default:x(()=>[V(i.$slots,"default")]),_:3},8,["to"])}}}),Pe=Object.assign(Le,{__name:"EventUnregisterLink"}),Re=k({name:"EventRegisterLink",__name:"EventRegisterLink",props:{event:{}},setup(e){const n=e,r=D(),l=w(()=>r({name:"community_event_register",params:U(n.event)}));return(i,u)=>{const c=j;return a(),_(c,{to:t(l),prefetch:!1,class:"event-register-link"},{default:x(()=>[V(i.$slots,"default")]),_:3},8,["to"])}}}),De=Object.assign(Re,{__name:"EventRegisterLink"}),Ue={key:1},Ie=k({name:"EventRegistrationButton",__name:"EventRegistrationButton",props:{event:{}},setup(e){const{t:n}=I(),{isEnabled:r}=q(),l=r("event-registration"),{userInfo:i}=ae(),u=e,c=P(!1),v=P(!1),d=P(!1);async function y(){v.value=!0,d.value=!1;try{c.value=await $e(u.event)}finally{v.value=!1,d.value=!0}}return oe(()=>i.value?.profile,s=>{s?y():c.value=!1},{immediate:!0}),(s,b)=>{const o=Pe,E=De;return t(l)?(a(),m(N,{key:0},[!t(i)?.profile||t(d)?(a(),m(N,{key:0},[t(c)?(a(),_(o,{key:0,event:e.event,class:"event-registration-button block h-12 w-full rounded-xl bg-primary px-4 py-3 text-center font-semibold leading-6 text-surface transition-opacity hover:opacity-90"},{default:x(()=>[O(g(t(n)("community.unregister")),1)]),_:1},8,["event"])):(a(),_(E,{key:1,event:e.event,class:"event-registration-button block h-12 w-full rounded-xl bg-primary px-4 py-3 text-center font-semibold leading-6 text-surface transition-opacity hover:opacity-90"},{default:x(()=>[O(g(t(n)("community.register")),1)]),_:1},8,["event"]))],64)):h("",!0)],64)):(a(),m("div",Ue))}}}),Ce=Object.assign(Ie,{__name:"EventRegistrationButton"}),Ae=k({name:"EventParticipantsLink",__name:"EventParticipantsLink",props:{event:{}},setup(e){const n=e,r=D(),l=w(()=>r({name:"community_event_participants",params:U(n.event)}));return(i,u)=>{const c=j;return a(),_(c,{class:"event-participants-link",to:t(l)},{default:x(()=>[V(i.$slots,"default")]),_:3},8,["to"])}}}),Be=Object.assign(Ae,{__name:"EventParticipantsLink"}),Te={class:"event-participants-card"},Se={class:"mb-3 text-sm font-semibold uppercase tracking-wide text-surface lg:mb-4"},Ne={key:0,class:"text-sm text-surface"},Oe={key:1,class:"space-y-3"},je={class:"size-10 shrink-0 overflow-hidden rounded-full bg-secondary"},Ve={key:1,class:"grid h-full w-full place-items-center text-white"},ze={class:"truncate text-sm font-medium text-surface group-hover:text-current"},Fe=k({name:"EventParticipantsCard",__name:"EventParticipantsCard",props:{event:{}},async setup(e){let n,r;const l=e,{t:i}=I(),{data:u}=([n,r]=R(()=>G(`/community/events/${l.event.id}/participants/people`,{query:{limit:10},transform:re},"$G4l6vQk_eT").catch(()=>({data:P([])}))),n=await n,r(),n);return(c,v)=>{const d=J,y=le,s=ce,b=Be;return a(),m("div",Te,[p("h3",Se,g(t(i)("eventParticipants.title")),1),t(u)?.length?(a(),m("ul",Oe,[(a(!0),m(N,null,ie(t(u),o=>(a(),m("li",{key:o.id},[f(s,{"person-id":o.id,class:"group flex items-center gap-3"},{default:x(()=>[p("div",je,[o.profileImageURL?(a(),_(d,{key:0,src:o.profileImageURL,alt:[o.firstName,o.lastName].filter(Boolean).join(" "),ratio:"1:1",size:"ld",class:"size-full"},null,8,["src","alt"])):(a(),m("div",Ve,[f(y,{class:"size-5"})]))]),p("span",ze,g([o.firstName,o.lastName].filter(Boolean).join(" ")),1)]),_:2},1032,["person-id"])]))),128))])):(a(),m("p",Ne,g(t(i)("eventParticipants.empty")),1)),t(u)?.length?(a(),_(b,{key:2,event:e.event,class:"mt-4 block text-sm font-medium text-primary hover:underline"},{default:x(()=>[O(g(t(i)("actions.seeMore")),1)]),_:1},8,["event"])):h("",!0)])}}}),He=Object.assign(Fe,{__name:"EventParticipantsCard"}),Me={class:"grid gap-6 lg:grid-cols-3 lg:gap-8"},qe={class:"block order-last space-y-6"},Ge=["href"],Je={class:"text-sm font-medium"},Qe={class:"space-y-6 lg:col-span-2"},Ke={class:"overflow-hidden rounded-xl bg-card"},We={class:"w-full overflow-hidden bg-surface/5"},Xe={class:"space-y-3 p-4 lg:p-6"},Ye={class:"text-2xl font-bold leading-tight tracking-tight text-surface lg:text-3xl"},Ze=["innerHTML"],et=k({name:"DefaultEventViewer",__name:"DefaultEventViewer",props:{profile:{}},setup(e){const{t:n}=I(),{isEnabled:r}=q(),l=r("event-registration"),i=e,u=w(()=>we(i.profile)),c=w(()=>me(i.profile));return(v,d)=>{const y=X,s=Y,b=Ce,o=ue,E=Z,C=He,A=J,$=ee,B=te;return a(),m("div",Me,[p("div",qe,[f(y,{"starts-at":e.profile.startsAt,"ends-at":e.profile.endsAt,"is-all-day":e.profile.isAllDay,class:"rounded-lg bg-secondary p-4"},null,8,["starts-at","ends-at","is-all-day"]),f(s,{categories:e.profile.categories,class:"rounded-xl bg-card p-4 lg:p-6"},null,8,["categories"]),t(l)&&!e.profile.subscriptionURL&&t(u)?(a(),_(b,{key:0,event:e.profile},null,8,["event"])):h("",!0),e.profile.subscriptionURL&&t(u)?(a(),m("a",{key:1,href:e.profile.subscriptionURL,target:"_blank",rel:"noopener noreferrer",class:"flex items-center gap-3 rounded-xl bg-card p-4 transition-colors hover:bg-primary hover:text-white"},[f(o,{class:"size-5 shrink-0"}),p("span",Je,g(t(n)("community.registerToThisEvent")),1)],8,Ge)):h("",!0),f(E,{address:e.profile.address,contact:e.profile.contact,"profile-type":e.profile.profileType,class:"rounded-xl bg-card p-4 lg:p-6"},null,8,["address","contact","profile-type"]),t(l)?(a(),_(C,{key:2,event:e.profile,class:"rounded-xl bg-card p-4 lg:p-6"},null,8,["event"])):h("",!0)]),p("div",Qe,[p("div",Ke,[p("div",We,[t(c)?(a(),_(A,{key:0,src:t(c),alt:e.profile.name??"",fit:"contain",size:"hd"},null,8,["src","alt"])):(a(),_($,{key:1}))]),p("div",Xe,[p("h1",Ye,g(e.profile.name),1),e.profile.summaryHtml?(a(),m("div",{key:0,class:"prose prose-sm max-w-none text-surface",innerHTML:e.profile.summaryHtml},null,8,Ze)):h("",!0),f(B,{blocks:e.profile.description?.blocks,class:"border-t border-surface/10 pt-4 lg:pt-6"},null,8,["blocks"])])])])])}}}),tt=Object.assign(et,{__name:"DefaultEventViewer"}),nt={key:0,class:"container py-8"},ct=k({name:"CommunityEventDetailPage",__name:"[eventId]",async setup(e){let n,r;const l=tt,{t:i}=I(),{formatDateRange:u,formatTimeRange:c}=_e(),v=D(),d=de(),{media:y}=([n,r]=R(()=>pe()),n=await n,r(),n),{data:s,error:b}=([n,r]=R(()=>G(`/community/events/${d.params.eventId}`,{transform:fe},"$3DckSe-ui8")),n=await n,r(),n);if(b.value||!s.value)throw ve({statusCode:404,statusMessage:"Event not found"});d.params.year||([n,r]=R(()=>ge(v({name:"community_event",params:U(s.value)}),{replace:!0})),await n,r());
1const o=s.value.address,E=o?[o.city,o.state,o.country].filter(Boolean).join(", "):null,C=u(s.value.startsAt,s.value.endsAt,s.value.isAllDay),A=s.value.isAllDay?null:c(s.value.startsAt,s.value.endsAt),$=H(s.value.name)??"",B=[C,A||i("community.allDay"),E,s.value.summaryText].filter(Boolean),T=H(B.join(" — ")),S=s.value.profileImageURL||null,z=Q(s.value);function Q(L){if(L.canonicalUrl)return L.canonicalUrl;const F=v({name:"community_events",params:{year:void 0,month:void 0,day:void 0}});return new URL(`${F}/${L.id}`,ye().url).href}return he({title:$,ogTitle:$,description:T,ogDescription:T,ogUrl:z}),xe({link:[{rel:"canonical",href:z}]}),S?M({}):M({}),ke([be({name:$,description:T,startDate:s.value.startsAt.toISOString(),endDate:s.value.endsAt.toISOString(),...S&&{image:S},...o&&{location:{"@type":"Place",name:E,address:{"@type":"PostalAddress",streetAddress:o.street||void 0,addressLocality:o.city||void 0,addressRegion:o.state||void 0,addressCountry:o.country||void 0}}}}),Ee({itemListElement:[{name:y.value?.displayName||"Home",item:"/"},{name:i("events.title"),item:v({name:"community_events"})},{name:$}]})]),(L,F)=>{const K=ne,W=se;return t(s)?(a(),m("div",nt,[f(K,{profile:t(s),"profile-kind":"event","profile-type":t(s).profileType?.key,fallback:t(l)},null,8,["profile","profile-type","fallback"]),f(W,{"profile-type":"events","profile-id":t(d).params.eventId,class:"mt-8"},null,8,["profile-id"])])):h("",!0)}}});export{ct 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.