PageSourceSearch

https://www.ellera.it/assets/TrailDetail-V1etZxTA.js

js ellera.it collected 2026-10-03 18:48:34 UTC 6,083 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TrailMiniMap-Dxhr2200.js","assets/vendor-BH5nfwVp.js","assets/vendor-maps-8Wj6QZCD.js","assets/vendor-maps-Dgihpmma.css","assets/trailDirectionArrows-C3B74NHq.js"])))=>i.map(i=>d[i]);
2import{y as f,L as v,S as j,a as w,z as N,R as T,f as t,B as m,_ as I}from"./index-Bp_4Hu9I.js";import{bU as y,j as e,bY as L,b6 as x,b7 as p,bV as k,aA as C,bN as D,r as B,b8 as P,b9 as _,bc as F}from"./vendor-BH5nfwVp.js";import{F as R}from"./FloatingBackLink-DjLYR8ez.js";import{g as E,M as H}from"./trails-B8nBZEux.js";import M from"./NotFound-CXMUita9.js";import{m as s}from"./vendor-ui-BmjkKznJ.js";import"./skeleton-Cc8szcXo.js";const S="/assets/biciCartello-7q8RmqM3.avif",A="/assets/biciCascina-DOp5vcD6.avif",V="/assets/biciNeve-BhwgOC-_.avif",z="/assets/biciPrimopiano-gQuD8aOF.avif",$="/assets/trail-hero-blu-DHweF4EH.webp",O="/assets/trail-hero-red-VA6i1_F3.webp",U="/assets/trail-hero-purple-CbhRqImP.webp",G="/assets/trail-hero-green-LPKfMmgc.webp",q="/assets/trail-hero-black-DvF8VkQO.webp",Q=F.lazy(()=>I(()=>import("./TrailMiniMap-Dxhr2200.js"),__vite__mapDeps([0,1,2,3,4]))),Y={"#0000FF":$,"#FF0000":O,"#800080":U,"#00AA00":G,"#000000":q},ie=()=>{const{slug:n}=y(),a=n?E(n):void 0;if(!a)return e.jsx(M,{});const h=[{src:S,alt:"MTB vicino al cartello"},{src:A,alt:"MTB vicino a una cascina in pietra"},{src:V,alt:"MTB su trail innevato"},{src:z,alt:"Dettaglio mountain bike"}],g=a.gpxColor.toUpperCase(),l=Y[g],r=!!l,c=l??w,u=a.name,d=f([a.desc,a.specs?`${a.specs}.`:"",a.estimatedTime?`Tempo medio ${a.estimatedTime}.`:"",a.characteristics].filter(Boolean).join(" "),170),b=[{label:"Lunghezza",value:a.length,icon:L},...a.ascent?[{label:"Salita",value:a.ascent,icon:x}]:a.elevation?[{label:"Dislivello",value:a.elevation,icon:a.elevation.startsWith("+")?x:p}]:[],...a.descent?[{label:"Discesa",value:a.descent,icon:p}]:[],{label:"Tempo medio",value:a.estimatedTime,icon:k}].filter(i=>!!i.value);return e.jsxs(v,{children:[e.jsx(j,{title:u,description:d,image:c,imageAlt:`Trail ${a.name} a Ellera`,jsonLd:N(a,{description:d,image:c})}),e.jsxs("section",{className:`relative border-b border-border overflow-hidden ${r?"pt-20 lg:pt-24 min-h-[380px] flex items-end":"bg-card pt-20 lg:pt-24"}`,children:[r&&e.jsxs(e.Fragment,{children:[e.jsx("img",{src:l,alt:`Header ${a.name}`,className:"absolute inset-0 w-full h-full object-cover scale-[1.03]"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-hero"})]}),e.jsxs("div",{className:`container mx-auto px-4 lg:px-8 max-w-5xl py-6 ${r?"relative z-10":""}`,children:[e.jsx("div",{className:"h-6"}),e.jsxs(s.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5},children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap mb-2",children:[e.jsx("h1",{className:`text-3xl lg:text-4xl font-heading font-bold ${r?"text-primary-foreground":"text-foreground"}`,children:a.name}),e.jsxs("span",{className:`text-sm font-semibold px-3 py-1 rounded-full ${a.difficultyColor}`,children:[a.difficultyEmoji," ",a.difficulty]})]}),e.jsx("p",{className:`text-lg ${r?"text-primary-foreground/90":"text-muted-foreground"}`,children:a.desc})]})]})]}),e.jsx(R,{to:T.albiTrailArea,label:"Sentieri",desktopMode:"fixed"}),e.jsx("section",{className:"py-12 lg:py-16 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 lg:px-8 max-w-5xl space-y-12",children:[e.jsxs(s.div,{variants:t,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:[e.jsxs("h2",{className:"text-xl font-heading font-bold text-foreground mb-5 flex items-center gap-2",children:[e.jsx(C,{className:"w-5 h-5 text-primary"}),"Dati Tecnici"]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-4",children:b.map(i=>{const o=i.icon;return e.jsxs("div",{className:"bg-card border border-border rounded-xl p-5 text-center",children:[e.jsx(o,{className:"w-6 h-6 text-accent mx-auto mb-2"}),e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-1",children:i.label}),e.jsx("p",{className:"text-lg font-bold text-foreground",children:i.value})]},i.label)})})]}
2),e.jsxs(s.div,{variants:t,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:[e.jsxs("h2",{className:"text-xl font-heading font-bold text-foreground mb-5 flex items-center gap-2",children:[e.jsx(D,{className:"w-5 h-5 text-primary"}),"Galleria"]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:h.map((i,o)=>e.jsx("div",{className:"aspect-[4/3] rounded-xl border border-border overflow-hidden shadow-sm hover:shadow-warm transition-shadow group",children:e.jsx("img",{src:i.src,alt:i.alt,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})},o))})]}),e.jsx(s.div,{variants:t,initial:"hidden",whileInView:"visible",viewport:{once:!0},className:"max-w-3xl",children:e.jsxs("div",{className:"bg-card border border-border rounded-xl p-6",children:[e.jsx("h3",{className:"font-heading font-bold text-foreground mb-3",children:"Caratteristiche"}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:a.characteristics})]})}),a.gpxPath&&e.jsxs(s.div,{variants:t,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:[e.jsx("h2",{className:"text-xl font-heading font-bold text-foreground mb-5",children:"Traccia GPS"}),e.jsx(B.Suspense,{fallback:e.jsx(H,{className:"h-[360px] rounded-xl"}),children:e.jsx(Q,{gpxUrl:a.gpxPath,color:a.gpxColor,direction:a.travelDirection})})]}),e.jsxs(s.div,{variants:t,initial:"hidden",whileInView:"visible",viewport:{once:!0},className:"flex gap-3 flex-wrap",children:[a.gpxPath&&e.jsx(m,{asChild:!0,size:"lg",children:e.jsxs("a",{href:a.gpxPath,download:!0,children:[e.jsx(P,{className:"w-4 h-4"}),"Scarica GPX"]})}),a.trailforksUrl&&e.jsx(m,{variant:"outline",size:"lg",asChild:!0,children:e.jsxs("a",{href:a.trailforksUrl,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(_,{className:"w-4 h-4"}),"Vedi su Trailforks"]})})]})]})})]})};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.