PageSourceSearch

https://www.speedexperience.de/assets/useIRacingTracks-D_JqBSJd.js

js speedexperience.de collected 2026-10-07 06:27:42 UTC 1,041 bytes, 1 lines download raw bytes

1import{u as t}from"./query-0ONn3Y02.js";import{s as c}from"./index-Cer2AWjm.js";const u=["spa-francorchamps","spa francorchamps"];function s(e){const i=(e.slug||"").toLowerCase(),r=(e.name||"").toLowerCase();return u.some(a=>i.includes(a)||r.includes(a))}const m=e=>{const i=e?.includeArchived??!1;return t({queryKey:["iracing-tracks",i?"all":"active"],queryFn:async()=>{let r=c.from("iracing_tracks").select("id, name, slug, description, image_url, iracing_url, youtube_video_id, track_type, difficulty, difficulties, country, region, sort_order, recommend_enabled, is_active").order("sort_order",{ascending:!0}).order("name",{ascending:!0});i||(r=r.eq("is_active",!0));const{data:a,error:n}=await r;if(n)throw n;return a.filter(o=>!s(o))},staleTime:1e3*60*10})},f=e=>t({queryKey:["iracing-track",e],queryFn:async()=>{const{data:i,error:r}=await c.from("iracing_tracks").select("*").eq("slug",e).single();if(r)throw r;const a=i;if(s(a))throw new Error("Track unavailable");return a},enabled:!!e,staleTime:1e3*60*10});export{f as a,m as u};

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.