PageSourceSearch

https://nexus-poitiers.fr/_nuxt/BwoQ8ni-.js

js nexus-poitiers.fr collected 2026-10-02 01:55:15 UTC 4,322 bytes, 1 lines download raw bytes

1import{_ as z,s as F}from"./DkeDTGnX.js";import{_ as R}from"./KneKv0SY.js";import{e as I,o as n,n as p,w as t,a,b as s,t as d,l as v,c as x,d as r,v as i,B as b,F as N,L as w,x as O,s as S,T,E as V,q}from"./BN-If_5M.js";import{u as P}from"./DKcGOcEm.js";import{a as y,V as f}from"./BEiw9AlB.js";import{V as j}from"./D_xpDJYO.js";import{V as k}from"./-bO-Uwj9.js";import{_ as K}from"./DlAUqK2U.js";function D(l,e,c=Date.now()){const u=new Date(l).getTime(),m=new Date(e).getTime();return Number.isNaN(u)||Number.isNaN(m)||c<u?"upcoming":c>m?"ended":"ongoing"}const B={ongoing:0,upcoming:1,ended:2};function ie(l,e,c=Date.now()){const u=D(l.startDate,l.endDate,c),m=D(e.startDate,e.endDate,c),_=B[u]-B[m];return _!==0?_:new Date(l.startDate).getTime()-new Date(e.startDate).getTime()}const A=["onKeydown"],U={class:"block text-md font-bold truncate text-white min-w-0 flex-1"},$={key:0,class:"event-list-item__live ml-2 flex-shrink-0"},M={class:"flex flex-row"},G={class:"ml-1 text-sm font-light text-white"},H={class:"flex flex-row"},J={class:"ml-1 text-sm font-light text-white"},Q={class:"relative"},W={class:"cursor-pointer absolute bottom-0 right-0 p-2 pointer-events-auto"},X=I({__name:"ListItem",props:{event:{type:Object,required:!0},user:{type:Object,default:void 0},hideDate:{type:Boolean,default:!1}},setup(l){const e=l,{labelForSlug:c,isFallbackSlug:u}=P(),m=V(()=>F(e.event)),_=V(()=>D(e.event.startDate,e.event.endDate)),g=()=>{e.event?.url&&q(e.event.url)};return(Y,o)=>{const E=z,C=R;return e.event?(n(),p(y,{key:0,class:S(["event-list-item !p-0 rounded overflow-hidden",{"event-list-item--ended":v(_)==="ended","event-list-item--ongoing":v(_)==="ongoing"}])},{default:t(()=>[a("div",{class:"cursor-pointer",role:"link",tabindex:"0",onClick:g,onKeydown:[T(w(g,["prevent"]),["enter"]),T(w(g,["prevent"]),["space"])]},[s(f,{"no-gutters":"",style:{"background-color":"#212121"}},{default:t(()=>[s(y,{class:"!p-2 !w-[calc(100%-130px)] !h-[130px]"},{default:t(()=>[s(f,{"no-gutters":"",class:"align-center"},{default:t(()=>[a("span",U,d(e.event.name),1),v(_)==="ongoing"?(n(),x("span",$,[...o[1]||(o[1]=[a("span",{class:"event-list-item__live-dot","aria-hidden":"true"},null,-1),r(" En cours ",-1)])])):i("",!0)]),_:1}),e.event.placeName?(n(),p(f,{key:0,"no-gutters":"",class:"mt-2"},{default:t(()=>[a("div",M,[s(b,{color:"white",size:"20"},{default:t(()=>[...o[2]||(o[2]=[r("mdi-map-marker",-1)])]),_:1}),a("span",G,d(e.event.placeName),1)])]),_:1})):i("",!0),s(f,{"no-gutters":"",class:"mt-2"},{default:t(()=>[a("div",H,[s(b,{color:"white",size:"20"},{default:t(()=>[r(d(e.hideDate?"mdi-clock":"mdi-calendar"),1)]),_:1}),a("span",J,[e.hideDate?i("",!0):(n(),x(N,{key:0},[r("Le "+d(new Date(e.event.startDate).toLocaleDateString("fr-FR",{year:"2-digit",month:"2-digit",day:"2-digit"}))+" à ",1)],64)),r(" "+d(new Date(e.event.startDate).toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"})),1)])])]),_:1}),s(j),s(f,{"no-gutters":"",class:"mt-2 align-center"},{default:t(()=>[v(m)?(n(),p(k,{key:0,class:"mr-2",color:"#ff51c5",variant:"tonal",size:"small",to:e.event.organizationUrl||void 0,onClick:o[0]||(o[0]=w(()=>{},["stop"]))},{default:t(()=>[...o[3]||(o[3]=[r(" Powered by Nexus ",-1)])]),_:1},8,["to"])):i("",!0),v(u)(e.event.type)?i("",!0):(n(),p(k,{key:1,class:"!bg-[#212121] mr-2 text-white",size:"small",to:`/search?q=${e.event.type}`},{default:t(()=>[r(d(v(c)(e.event.type)),1)]),_:1},8,["to"])),e.event.tags?.length>0?(n(!0),x(N,{key:2},O(e.event.tags.slice(0,3),(h,L)=>(n(),p(k,{size:"small",class:S(["!bg-[#121212] text-white",L>0?"ml-2":""]),key:h,to:`/search?q=${h}`},{default:t(()=>[r(d(h),1)]),_:2},1032,["class","to"]))),128)):i("",!0)]),_:1})]),_:1}),s(y,{class:"!max-h-[130px] !max-w-[130px]"},{default:t(()=>[a("div",Q,[e.event.thumbnailPath?(n(),p(C,{key:0,class:"shadow-[-10px_0_15px_-3px_rgba(0,0,0,0.4)]",src:e.event.thumbnailPath,alt:e.event.name,contain:"",size:130,"blurred-background":!0},{default:t(()=>[a("div",W,[s(E,{"model-value":e.event.isLiked??!1,"event-id":e.event.id,"event-name":e.event.name,user:e.user},null,8,["model-value","event-id","event-name","user"])])]),_:1},8,["src","alt"])):i("",!0)])]),_:1})]),_:1})],40,A)]),_:1},8,["class"])):i("",!0)}}}),le=Object.assign(K(X,[["__scopeId","data-v-54d40ceb"]]),{__name:"EventListItem"});export{le as _,ie as c};

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.