PageSourceSearch

https://aero-trips.web.app/assets/TripDetails-BZIkkmyS.js

js aero-trips.web.app collected 2026-10-03 12:15:45 UTC 2,840 bytes, 1 lines download raw bytes

1import{j as t,z as l,E as i,K as c,D as k,y as M,J as S,S as C}from"./vendor-mantine-BPstSoML.js";import{e as I,L as b}from"./vendor-react-ClKarFDZ.js";import{k as w,l as T,D as v,C as D,m as L,n as P,o as B}from"./index-B7uKl8kG.js";import{A as E,a as q}from"./ActivityMarker-D0I6pXfJ.js";import{l as z,M as V,T as Y,P as F}from"./vendor-map-D5dYtpoH.js";import"./vendor-tiptap-DGB6pEgb.js";import"./data-5n42IHrR.js";const O=({trips:u,airfields:g,activities:j,profile:o})=>{const p=I(),s=p.tripId?u.get(p.tripId):void 0;if(u.size==0)return t.jsx("p",{children:"Chargement en cours"});if(!s)return t.jsx("p",{children:"Activité/lieu inconnu"});const m={short:"Vol de quelques heures",day:"Sortie à la journée",multi:"Voyage sur plusieurs jours"},f={bike:"Vélo",hiking:"Marche à pied",culture:"Culture",aero:"Aéronautique",nautical:"Plage et nautisme",nature:"Nature et animaux",poi:"Vues aériennes",food:"Autre",transit:"Autre",lodging:"Autre",car:"Autre",other:"Autre"},a=s.steps.map(e=>({activities:j,airfields:g})[e.type].get(e.id)).filter(e=>e!=null),y=a.map((e,r)=>"codeIcao"in e?t.jsx(E,{airfield:e},r):t.jsx(q,{activity:e},r)),A=a.map(e=>({lat:e.position.latitude,lng:e.position.longitude})),h=z.latLngBounds([]);a.forEach(e=>h.extend([e.position.latitude,e.position.longitude]));
1const n=[...new Set(a)],d=n.filter(e=>"codeIcao"in e).length,x=n.length-d;return t.jsxs(t.Fragment,{children:[t.jsxs(l,{children:[t.jsx(w,{}),s.name," ",o&&o.uid==s.uid&&t.jsx(T,{})]}),t.jsx(i,{children:m[s.type]}),t.jsxs(c,{grow:!0,mt:"md",mb:"md",children:[t.jsx(c.Col,{span:4,children:t.jsx(k,{shadow:"md",radius:"md",p:"xs",withBorder:!0,bg:"gray.0",children:t.jsxs(M,{gap:"xs",children:[t.jsxs(i,{children:["Sortie ",s.date?"réalisée en "+S(s.date.toMillis()).format("MMMM YYYY"):"en projet"]}),t.jsx(l,{order:4,children:"Thèmes"}),s.tags.map(e=>t.jsx(i,{children:f[e]},e)),t.jsx(l,{order:4,children:"Durée"}),t.jsx(i,{children:m[s.type]}),d>0&&t.jsxs(i,{children:[d," terrains"]}),x>0&&t.jsxs(i,{children:[x," activités"]}),s.updated_at&&t.jsxs(i,{size:"xs",c:"dimmed",ta:"right",children:["Sortie proposée par ",t.jsx(b,{to:`/profile/${s.uid}`,children:s.author}),", mise à jour le ",new Date(s.updated_at.seconds*1e3).toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",year:"2-digit"})]})]})})}),t.jsx(c.Col,{span:8,children:t.jsxs(V,{style:{height:"500px"},bounds:h.pad(.1),scrollWheelZoom:!0,children:[t.jsx(Y,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png"}),y,t.jsx(F,{positions:A})]})})]}),t.jsx(v,{content:s.description,label:s.name}),t.jsx(C,{mt:"md",cols:{base:1,sm:2,md:4},children:n.map((e,r)=>t.jsx(D,{item:e,imgUrl:B(e),link:P(e),cardConfig:L({profile:o}),itemKey:String(r)},r))})]})};export{O 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.