PageSourceSearch

https://fie.org/_fie/DRrYeKDp.js

js fie.org collected 2026-09-24 09:17:00 UTC 2,306 bytes, 1 lines download raw bytes

1import{a as e,c as t,d as n,l as r,m as i,r as a}from"./BfoGfI5M.js";import{$r as o,Bn as s,Br as c,Mn as l,On as u,Rr as d,Sr as f,_n as p,_r as m,bn as h,dr as g,ei as _,gr as v,hi as y,hr as b,i as x,kn as S,mi as C,vr as w,wr as T,yi as E}from"#entry";import{t as D}from"./CNM4Fad1.js";const O={id:u().int().describe(`Advertisement ID`),image:l().nullable().describe(`CDN URL to 728x90 banner image`),link:l().nullable().describe(`Advertisement link URL`),label:l().nullable().describe(`Advertisement label`)},k={location:p([`homepage`,`events`,`athletes`,`footer`]).optional().describe(`Page location filter. Valid values: homepage, events, athletes, footer. Defaults to footer.`)},A={items:h(S(O)).describe(`List of advertisements`)};var j=class extends i(k,{description:`Query options for finding advertisements by location`}){},M=class extends i(A,{description:`Returns published advertisements filtered by display location`}){};const N=new n(`Advertisements API`,`Advertisement endpoints`,`/advertisements`,{findAll:n.defineRoute(`/`,{method:`GET`,summary:`Get advertisements by location`,description:`Returns published advertisements filtered by display location`,query:j.schema,cache:t,responses:{200:M.schema}})},`1`).withPrefix(r);function P(t,n=!0){let r=e(N),i=[`advertisements`,t],o=r.findAll.useQuery(i,()=>({query:{location:C(t)}}),{queryKey:i,enabled:n,placeholderData:e=>e}),s=a(o);return{...o,suspense:async()=>{C(n)!==!1&&await o.suspense()},data:s}}var F={key:0},I={class:`mb-2 text-center text-xs tracking-[0.2em] text-gray-400 uppercase`},L={class:`flex flex-col items-center gap-4`},R=T({__name:`Advertisement`,props:{location:{}},async setup(e){let t,n,{data:r,suspense:i}=P(e.location);return[t,n]=o(()=>i()),await t,n(),(e,t)=>{let n=D,i=s,a=x;return y(r)?.length?(d(),w(`section`,F,[f(a,null,{default:_(()=>[b(`p`,I,` — `+E(e.$t(`components.app.advertisement.heading`))+` — `,1),b(`div`,L,[(d(!0),w(g,null,c(y(r),t=>(d(),v(i,{key:t.id,to:t.link??`/`,class:`block w-full max-w-[728px] mx-auto`},{default:_(()=>[f(n,{src:t.image??``,alt:t.label??e.$t(`components.app.advertisement.imageAlt`),height:`90`,width:`728`,class:`w-full h-auto`},null,8,[`src`,`alt`])]),_:2},1032,[`to`]))),128))])]),_:1})])):m(``,!0)}}}),z=Object.assign(R,{__name:`Advertisement`});export{z as t};

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.