PageSourceSearch

https://www.coopaname.coop/_nuxt/DV7A-I4A.js

js coopaname.coop collected 2026-10-01 10:15:44 UTC 3,263 bytes, 1 lines download raw bytes

1import{o as l,d as c,i as e,t as s,F as v,f as b,l as p,m as y,g as f,u as S,w as g,b as L,e as i,h as d,j as h,T,k as B,_ as C,q as F}from"./XHFv4zKo.js";import{a as N}from"./7BZerovX.js";import{_ as E}from"./ChObihcE.js";import{u as H}from"./DDojcqar.js";import"./DuALGotA.js";import"./C4_8ni_x.js";import"./YFzcvtOz.js";import"./CDl74Kbb.js";const V={class:"flex mb-10 lg:flex-col lg:absolute lg:left-14 overflow-x-auto"},q=["src","alt"],M={class:"uppercase tracking-widest"},j={class:"text-3.5xl font-bold my-8"},R=["innerHTML"],z={class:"font-bold"},I=e("dt",{class:"float-left clear-left mr-2"},"Lieu: ",-1),J=e("dt",{class:"float-left clear-left mr-2"},"Adresse: ",-1),O=e("dt",{class:"float-left clear-left mr-2"},"Lieu: ",-1),U=e("dt",{class:"float-left clear-left mr-2"},"Date: ",-1),Z=e("dt",{class:"float-left clear-left mr-2"},"Horaires: ",-1),G={__name:"AgendaEvent",props:{event:Object},setup(a){const n=o=>new Date(o).toLocaleDateString("fr",{weekday:"long",day:"numeric",month:"long"});return(o,r)=>{const m=N;return l(),c(v,null,[e("figure",V,[e("img",{src:a.event.image,alt:a.event.name,width:"200px"},null,8,q)]),e("header",null,[e("div",M,s(a.event.event_type.name),1),e("h1",j,s(a.event.name),1)]),e("div",{class:"my-8",innerHTML:a.event.description},null,8,R),e("dl",z,[a.event.address?(l(),c(v,{key:0},[I,e("dd",null,s(a.event.address.name),1),J,e("dd",null,s(a.event.address.address),1)],64)):(l(),c(v,{key:1},[O,e("dd",null,s(a.event.lieu),1)],64)),U,e("dd",null,s(n(a.event.date_begin)),1),Z,e("dd",null,"de "+s(a.event.dateDetail.begin)+" "+s(a.event.dateDetail.end),1)]),!a.event.is_full&&a.event.is_registration_open?(l(),b(m,{key:0,class:"my-8",to:`/agenda/evenement/${a.event.slug}/inscription`},{default:p(()=>[y("S'inscrire à l'événement")]),_:1},8,["to"])):f("",!0)],64)}}},K={key:1,id:"contenu",class:"md:px-20"},P={class:"bg-stone-55 dark:bg-stone-800 px-8 md:px-32 py-14 lg:pl-[23.5rem] mb-24 relative"},Q={id:"agenda",class:"py-20 px-8 md:py-32 relative border-t-2 border-stone-150"},W=e("h2",{class:"text-xl font-bold"},"Autres événements",-1),ie={__name:"index",async setup(a){let n,o;const r=S(),m=_=>new Date(_).toLocaleDateString("fr",{weekday:"long",day:"numeric",month:"long"}),{data:t}=([n,o]=g(()=>h("/api/odoo",{query:{agenda:r.params.slug}},"$e9J2o9sig3")),n=await n,o(),n);if(!t||!t.value)throw L({statusCode:404,message:`L'évènement ${r.params.slug} est introuvable`,fatal:!0});t.value.seo={meta_title:`${t.value.name} le ${m(t.value.date_begin)}`,meta_description:`Rendez-vous à ${t.value.address?t.value.address.name:t.value.lieu} le ${m(t.value.date_begin)} à ${t.value.dateDetail.begin} pour ${t.value.name}`},H(t.value);const{data:u}=([n,o]=g(()=>h("/api/odoo",{query:{agenda:"",limit:10}},"$dZg8x7wcTI")),n=await n,o(),n);return u&&u.value&&(u.value=u.value.filter(_=>_.slug!=t.value.slug)),(_,X)=>{const x=T,$=C,k=B,w=G,D=E,A=F;return l(),c(v,null,[i(t)?(l(),b(x,{key:0},{default:p(()=>[y(s(i(t).name)+" | Agenda | Coopaname",1)]),_:1})):f("",!0),d($),i(t)?(l(),c("main",K,[d(k,{crumbs:[{title:"Agenda",link:"/agenda"},{title:i(t).name,link:i(r).path}]},null,8,["crumbs"]),e("section",P,[d(w,{event:i(t)},null,8,["event"])]),e("aside",Q,[W,d(D)])])):f("",!0),d(A)],64)}}};export{ie 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.