1import{c as n,u,j as a,R as d,a4 as f,N as h,o as c,cw as p}from"./index-878ce38c.js";import{u as x}from"./useBillboards-3b796600.js";import"./react-0e2a0c96.js";import{B as g}from"./BackButton-472a0db4.js";import"./images-0c2231a1.js";const j=()=>{const{t:r}=n(),{path:l}=u(),{data:s,isLoading:i,error:o}=x();if(o)return a(d,{className:"m-auto",icon:"error",description:r("error__server")});if(i||!s)return a(f,{className:"m-auto"});const e=s.find(m=>m.path===l);if(!e)return a(h,{to:"/"});const{pageMeta:t}=e;return c("div",{className:"relative",children:[t&&a(p,{meta:t}),c("div",{className:"relative mx-auto h-full w-full max-w-5xl p-3 md:p-4",children:[a(g,{className:"absolute start-4 top-4 md:start-6 md:top-6"}),a(N,{billboard:e})]})]})},N=({billboard:r})=>{const{type:l,url:s,alt:i="",redirect_url:o,redirect_new_tab:e=!1,height:t}=r,m=e?"_blank":"_self";switch(l){case"page":return a("div",{className:"h-full",style:{minHeight:t},children:a("iframe",{className:"h-full w-full",src:s})});case"image":return a("a",{className:"flex h-full max-h-full sm:h-[650px]",href:o,target:m,children:a("img",{className:"m-auto max-h-[90%] max-w-[90%] lg:max-h-[80%] lg:max-w-[80%]",src:s,alt:i})})}};export{N as BillboardDisplay,j 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.