PageSourceSearch

https://vpdive.com/_nuxt/e0q09p1m.js

js vpdive.com collected 2026-09-24 12:19:21 UTC 3,801 bytes, 1 lines download raw bytes

1import{d as x,ad as b,ap as k,b as C,o as B,bX as D,w as N,ak as j,e as m,c as p,l as n,t as J,f as O,af as v,ag as R,k as M,aj as P,B as f,j as d,Q as U}from"./CiKtckVa.js";import{E as V}from"./B9JdKoKQ.js";import"./CLDHYhVZ.js";import"./DidJpSs-.js";import"./DxSatWAq.js";import"./CqGKZf02.js";import"./CnigN51C.js";import"./5DDz-OcZ.js";import"./kvmZES3e.js";import"./Drx3cB6G.js";import"./yw1ultGR.js";import"./DTBhDwS9.js";import"./D0FtttWC.js";import"./CPiWm1qT.js";import"./BL6TO4cz.js";import"./DjYJYkEl.js";import"./CgrWSzAG.js";import"./BdHjvwH4.js";import"./8jDGFeVN.js";import"./D1bnLdWG.js";import"./fXHikz_7.js";import"./Cybd_hQA.js";import"./CPOqqclL.js";import"./ClFvxZjW.js";import"./aoQ9pqBB.js";const $={key:0,class:"min-h-screen flex flex-col items-center justify-center bg-gray-100 p-4"},z={class:"bg-white rounded-lg shadow-lg p-6 max-w-md w-full text-center"},A={class:"text-gray-600 mb-4"},L={key:1,class:"relative event-view-container z-0"},T=x({__name:"index",setup(q){const i=R(),g=P(),r=b(),{events:h}=k(),l=f(!1),c=f("Impossible de charger les détails de l'événement"),E=M(()=>r.currentEvent?.title?`${r.currentEvent.title} | Activité`:"Détails de l'activité");C({title:E.value});const _=()=>{g.push("/app/activities")},y=e=>{if(typeof window>"u")return;let t=null,s="";if(r.currentEvent?.id===e&&(t=r.currentEvent,s="store_actuel"),!t){const o=h.value.find(a=>a.id===e||a.token===e);o&&(t=o,s="cache_calendrier")}if(!t)try{const o=localStorage.getItem("calendar_event_"+e);o&&(t=JSON.parse(o),s="localStorage_existant")}catch(o){console.warn("Erreur lors de la lecture de localStorage:",o)}if(t)try{const o=localStorage.getItem("calendar_event_"+e);if(o){const a=JSON.parse(o),S={...a,color:t.color||a.color,textColor:t.textColor||a.textColor,title:t.title||a.title,start:t.start||a.start,end:t.end||a.end,allDay:t.allDay||a.allDay,location:t.location||a.location};localStorage.setItem("calendar_event_"+e,JSON.stringify(S))}else localStorage.setItem("calendar_event_"+e,JSON.stringify(t))}catch(o){console.warn("Erreur lors de la sauvegarde des propriétés visuelles:",o)}},u=async(e,t=!1)=>{l.value=!1;try{if(!e){l.value=!0,c.value="Identifiant d'événement manquant";return}t?await r.fetchEvent(e,!0)||(l.value=!0,c.value=r.error?.message||"Événement non trouvé"):(y(e),r.clearCurrentEvent(),await r.fetchEvent(e)||(l.value=!0,c.value=r.error?.message||"Événement non trouvé"))}catch(s){l.value=!0,c.value=s?.message||"Erreur lors du chargement des détails",console.error("Erreur dans la page Index:",s)}};B(()=>{i.params.id&&u(String(i.params.id))}),D(()=>{i.params.id&&(!r.currentEvent||r.currentEvent.id!==String(i.params.id))&&u(String(i.params.id))}),N(()=>i.params.id,(e,t)=>{e&&e!==t&&u(String(e))}),j(()=>{r.resetForCalendar()});const w=async e=>{e.success||console.error("Erreur lors de la désinscription:",e.error)};return(e,t)=>m(l)?(d(),p("div",$,[n("div",z,[t[0]||(t[0]=n("div",{class:"text-red-500 mb-4"},[n("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-16 w-16 mx-auto",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1)),t[1]||(t[1]=n("h2",{class:"text-xl font-bold mb-2"},"Erreur lors du chargement",-1)),n("p",A,J(m(c)),1),n("button",{onClick:_,class:"bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded"}," Retour au calendrier ")])])):(d(),p("div",L,[(d(),O(V,{key:String((e._.provides[v]||e.$route).params.id),eventId:String((e._.provides[v]||e.$route).params.id),onUnregistered:w},null,8,["eventId"]))]))}}),fe=U(T,[["__scopeId","data-v-1697884b"]]);export{fe 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.