PageSourceSearch

https://molbubi.hu/assets/index-CfxcnHJN.js

js molbubi.hu collected 2026-10-01 11:57:31 UTC 4,737 bytes, 1 lines download raw bytes

1import{j as e,C as f,T as a,B as n,L as u,ae as N}from"./vendor-mui-CO7ndWfg.js";import{u as y,b as w,a9 as S,P as W,aa as v,B as T,c as k,D as L,E as A,H as C,a4 as H}from"./main-Bc0VL40j.js";import{N as I,b as z,c as P,d as E,s as _,o as $}from"./NewsCard-CsAwKffx.js";import{e as B,L as b}from"./vendor-react-xiLgNGE9.js";import{u as R}from"./useHeadingColor-DBgB2fpI.js";import"./vendor-mapbox-D8F1hoiy.js";const q=()=>{var o,l,m;const{t:i}=y(),{data:r}=w(),x=R(),{data:s,loading:t}=S({variables:{query:I}});if(t)return e.jsx(W,{variant:"content"});const d=((s==null?void 0:s.posts)||[]).filter(c=>c.slug&&c.title),h=((o=s==null?void 0:s.page)==null?void 0:o.title)||i("news.title","News"),g=((l=s==null?void 0:s.page)==null?void 0:l.heading)||h,p=(r==null?void 0:r.settings.title)||"Bike Sharing";return e.jsxs(e.Fragment,{children:[e.jsx(v,{children:e.jsx("title",{children:`${h} - ${p}`})}),e.jsxs(f,{maxWidth:"lg",sx:{pb:8},children:[e.jsx(a,{variant:"h3",component:"h1",sx:{textAlign:"center",fontWeight:700,mt:3,mb:2,color:x},children:g}),((m=s==null?void 0:s.page)==null?void 0:m.intro)&&e.jsx(n,{sx:{maxWidth:"md",mx:"auto",mb:5,textAlign:"center",fontSize:"1.125rem","& p":{mb:0}},children:e.jsx(T,{value:s.page.intro})}),d.length>0?e.jsx(z,{posts:d}):e.jsx(a,{color:"text.secondary",sx:{textAlign:"center",py:6},children:i("news.empty","There is no news right now.")})]})]})},j=520,M=()=>{var l,m;const{t:i}=y(),r=k(),{slug:x}=B(),{data:s}=w(),{data:t,loading:d}=S({variables:{query:P,params:{slug:x}},skip:!x});if(d)return e.jsx(W,{variant:"content"});if(!(t!=null&&t.title))return e.jsx(L,{});const h=(s==null?void 0:s.settings.title)||"Bike Sharing",g=(t.more||[]).filter(Boolean),p=`/${r}/${A("newsList",r)}`,o=(l=t.image)==null?void 0:l.url;return e.jsxs(e.Fragment,{children:[e.jsxs(v,{children:[e.jsx("title",{children:`${t.title} - ${h}`}),t.excerpt&&e.jsx("meta",{name:"description",content:t.excerpt})]}),e.jsxs(n,{component:"article",children:[e.jsx(n,{component:"header",sx:{bgcolor:c=>N(c.palette.primary.main,c.palette.mode==="dark"?.12:.06),pt:{xs:3,md:4},pb:{xs:5,md:7}},children:e.jsxs(f,{maxWidth:"lg",children:[e.jsx(n,{component:"nav","aria-label":i("news.title","News"),sx:{mb:{xs:3,md:5}},children:e.jsxs(u,{component:b,to:p,underline:"hover",sx:{fontWeight:600,fontSize:"0.9375rem",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:["← ",i("news.backToList","All news")]})}),e.jsxs(n,{sx:{display:"grid",gap:{xs:4,md:8},alignItems:"center",gridTemplateColumns:{xs:"1fr",md:o?"minmax(0, 7fr) minmax(0, 5fr)":"1fr"}},children:[e.jsxs(n,{sx:{display:"grid",gap:2,justifyItems:"start"},children:[e.jsxs(n,{sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"},children:[e.jsx(E,{tag:t.tag,label:t.tagLabel}),t.publishedAt&&e.jsx(a,{component:"time",dateTime:t.publishedAt,color:"text.secondary",sx:{fontVariantNumeric:"tabular-nums",fontSize:"0.9375rem"},children:C(t.publishedAt,r)})]}),e.jsx(a,{variant:"h1",sx:{fontWeight:700,fontSize:{xs:"2rem",sm:"2.5rem",md:"3rem"},lineHeight:1.1,textWrap:"balance"},children:t.title}),t.excerpt&&e.jsx(a,{color:"text.secondary",sx:{fontSize:{xs:"1.125rem",md:"1.25rem"},lineHeight:1.5,maxWidth:"60ch"},children:t.excerpt})]}),o&&e.jsx(n,{sx:{bgcolor:H.raised,borderRadius:4,aspectRatio:"4 / 3",p:{xs:2,md:3},overflow:"hidden"},children:e.jsx("img",{src:$(o,{width:j*2}),srcSet:_(o,j),sizes:`(max-width: 900px) 100vw, ${j}px`,alt:((m=t.image)==null?void 0:m.alt)||"",decoding:"async",style:{display:"block",width:"100%",height:"100%",objectFit:"contain"}})})]})]})}),e.jsx(f,{maxWidth:"lg",children:e.jsx(n,{sx:{maxWidth:680,py:{xs:5,md:7},fontSize:{xs:"1rem",md:"1.0625rem"},lineHeight:1.7,"& p":{fontSize:"inherit",lineHeight:"inherit",mb:2},"& li":{fontSize:"inherit",lineHeight:"inherit",mb:.75},"& ul, & ol":{pl:3,mb:3},"& h2":{fontSize:{xs:"1.375rem",md:"1.625rem"},fontWeight:700,lineHeight:1.25,mt:5,mb:1.5},"& h3":{fontSize:"1.25rem",fontWeight:700,mt:4,mb:1},"& > :first-of-type > :first-child":{mt:0}},children:t.body&&e.jsx(T,{value:t.body})})})]}),g.length>
10&&e.jsx(n,{component:"aside","aria-labelledby":"more-news-heading",sx:{borderTop:1,borderColor:"divider",py:{xs:5,md:7}},children:e.jsxs(f,{maxWidth:"lg",children:[e.jsxs(n,{sx:{display:"flex",justifyContent:"space-between",alignItems:"baseline",flexWrap:"wrap",gap:2,mb:3},children:[e.jsx(a,{id:"more-news-heading",variant:"h4",component:"h2",sx:{fontWeight:700,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:i("news.moreNews","More news")}),e.jsxs(u,{component:b,to:p,underline:"hover",sx:{fontWeight:700},children:[i("news.backToList","All news")," →"]})]}),e.jsx(z,{posts:g})]})})]})};export{q as NewsListPage,M as NewsPostPage};

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.