PageSourceSearch

https://www.ngprague.cz/_nuxt/BJzzNPM9.js

js ngprague.cz collected 2026-10-02 02:57:26 UTC 12,908 bytes, 68 lines download raw bytes

1import{_ as V}from"./D9t2Upg7.js";import{_ as z,b as A,s as $,o as M,g as s,h as E,n as i,k as o,j as P,B as O,F as C,r as x,q as T,v as q,t as k,i as d,e as y,I as Q,l as J,z as K,U as W,y as X,u as Y,d as Z,w as ee,f as ne,cC as te,D as ae,ci as ie,m as se}from"./DWwH_cLC.js";import{u as j}from"./CN_EtXyc.js";import{u as le}from"./D70PNPTw.js";import{u as H}from"./BtqPPpaY.js";import{u as oe}from"./9sclF0zf.js";import"./DslqdnAE.js";import"./BZgEL4my.js";import"./B2C0u_BS.js";const de={key:0,class:"news-bar"},ue={class:"news-bar__marquee"},re={__name:"NewsBar",props:{news:{type:Array}},setup(l){const{locale:t,t:m}=A(),r=l,c=$(""),S=$(6e3),f=$("running");M(()=>{document.querySelector(".news-bar__marquee ul"),r.news.forEach(_=>{c.value+=c.value==""?_.name[t.value]:" "+_.name[t.value]}),S.value=c.value.split(" ").length/3.333*1e3*2});const p=()=>{f.value="paused"},w=()=>{f.value="running"};return(_,B)=>{const b=V,D=V;return l.news?(i(),s("div",de,[o("div",ue,[o("ul",{ref:"marquee",class:"news-bar__list",style:O({"animation-duration":S.value+"ms","animation-play-state":f.value}),onMouseover:p,onFocus:p,onMouseleave:w,onBlur:w},[(i(!0),s(C,null,x(l.news,(v,h)=>(i(),s("li",{key:h},[P(b,{to:_.localePath({name:"about-news-slug",params:{slug:v.slug[d(t)]}})},{default:T(()=>[q(k(v.name[d(t)]),1)]),_:2},1032,["to"])]))),128)),o("li",null,[o("ul",null,[(i(),s(C,null,x(10,v=>(i(),s(C,null,[(i(!0),s(C,null,x(l.news,(h,n)=>(i(),s("li",{key:"news-replicant-"+v+n},[P(b,{to:_.localePath({name:"about-news-slug",params:{slug:h.slug[d(t)]}})},{default:T(()=>[q(k(h.name[d(t)]),1)]),_:2},1032,["to"])]))),128))],64))),64))])])],36)]),P(D,{to:_.localePath({name:"about-news"}),class:"news-bar__all"},{default:T(()=>[q(k(d(m)("global.news.all")),1)]),_:1},8,["to"])])):E("",!0)}}},me=z(re,[["__scopeId","data-v-b4978783"]]),ce={class:"featured-items"},_e=["onMouseover"],ve=["srcset"],ge=["src","alt"],ke={class:"featured-items__type"},pe={key:0},fe={key:0},he={key:1},Ne={class:"featured-items__title"},ye={class:"heading"},Se=["innerHTML"],we={key:0,class:"featured-items__meta"},Fe={key:1,class:"featured-items__meta"},be={key:0},Ie={key:1,class:"featured-items__location"},Ee={__name:"FeaturedItems",setup(l){const t=H(),m=W(),r=y(()=>t.activeItem),c=y(()=>t.items),{setActiveItem:S,setTypeVariant:f}=t,{locale:p,t:w}=A();let _;const B=()=>{clearTimeout(_),_=setTimeout(()=>{var n;for(let u=0;u<((n=c.value)==null?void 0:n.length);u++){const I=c.value[u],e=document.querySelector(`.featured-items__item:nth-child(${u
1+1})`);if(e){const N=e.getBoundingClientRect();if(N.top<=250&&N.bottom>=250){S(u),f(I.item.logo_variant);break}}}},15)};M(()=>{window.addEventListener("scroll",B)}),Q(()=>{window.removeEventListener("scroll",B)});const b=(n,u)=>{D(n,u)},D=(n,u)=>{n=="Event"&&m.trackEvent({event:"eventDetail_select",eventId:u,url:window.location.pathname})},v=(n,u)=>n.__typename==="Event"?n.image?n.image.url:"/img/dummy/ngp.png":n.news_image?n.news_image:"/img/dummy/ngp.png",h=(n,u)=>{S(n),f(u)};return(n,u)=>{const I=V;return i(),s("div",ce,[(i(!0),s(C,null,x(d(c),({item:e},N)=>(i(),J(I,{onClick:a=>b(e.__typename,e.id),to:n.localePath({name:e.__typename==="Event"?"event-id-slug":"about-news-slug",params:{slug:e.slug[d(p)],id:e.__typename==="Event"?e.id:null}}),class:K([{"is-active":N==d(r)},"featured-items__item"])},{default:T(()=>[o("div",{class:"featured-items__item-inner","data-heading-hover":"",onMouseover:a=>h(N,e.logo_variant)},[o("picture",null,[o("source",{srcset:("useGetImageUrl"in n?n.useGetImageUrl:d(j))(v(e),600,null,"webp"),type:"image/webp"},null,8,ve),o("img",{src:("useGetImageUrl"in n?n.useGetImageUrl:d(j))(v(e),600,null,"jpg"),alt:e.name,class:"featured-items__image",loading:"lazy"},null,8,ge)]),o("div",ke,[e.categories&&Object.keys(e.categories).length>0?(i(),s("div",pe,[(i(!0),s(C,null,x(e.categories,(a,F)=>(i(),s("span",{key:F},[q(k(a.name),1),e.categories.length-1>F?(i(),s("span",fe,", ")):E("",!0)]))),128))])):(i(),s("div",he,[o("span",null,k(e.__typename==="Event"?d(w)(`global.event-types.${e.type.toUpperCase()}`):d(w)("global.news-item")),1)]))]),o("div",Ne,[o("h2",ye,[o("span",{class:"heading__link",innerHTML:e.name},null,8,Se)])]),e.__typename==="Page"&&e.publish_date?(i(),s("div",we,k(e.publish_date.timestamp),1)):E("",!0),e.__typename==="Event"&&e.dates.length?(i(),s("div",Fe,[e.type!=="exposition"?(i(),s("div",be,k(("useDateRange"in n?n.useDateRange:d(le))(e.dates)),1)):E("",!0),e.buildings?(i(),s("div",Ie,[o("span",null,k(e.buildings.map(a=>a.name).join(", ")),1)])):E("",!0)])):E("",!0)],40,_e)]),_:2},1032,["onClick","to","class"]))),256))])}}},Ce=z(Ee,[["__scopeId","data-v-10d0b36a"]]);var G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"featured"},name:{kind:"Name",value:"collection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"StringValue",value:"homepage",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"item"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Event"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo_variant"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"image"},name:{kind:"Name",value:"image_list"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"slug"},name:{kind:"Name",value:"seo_url_slug"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"en"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"buildings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"start_at"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timestamp"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"end_at"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timestamp"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"page_background_color"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Page"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo_variant"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"news_image"},name:{kind:"Name",value:"image"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"slug"},name:{kind:"Name",value:"seo_url_slug"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"en"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"latestNews"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"slug"},name:{kind:"Name",value:"seo_url_slug"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"en"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"featuredNews"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"news_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title_cs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title_en"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_cs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_en"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1025}};G.loc.source={body:`{
2  featured: collection(slug: "homepage") {
3    items {
4      item {
5        ... on Event {
6          __typename
7          id
8          type
9          name
10          logo_variant
11          categories {
12            name
13          }
14          image: image_list {
15            url
16          }
17          slug: seo_url_slug {
18            cs
19            en
20          }
21          buildings {
22            id
23            name
24          }
25          dates {
26            start_at {
27              timestamp
28            }
29            end_at {
30              timestamp
31            }
32          }
33          page_background_color
34        }
35
36        ... on Page {
37          __typename
38          id
39          name
40          logo_variant
41          news_image: image
42          slug: seo_url_slug {
43            cs
44            en
45          }
46        }
47      }
48    }
49  }
50  latestNews {
51    id
52    name
53    slug: seo_url_slug {
54      cs
55      en
56    }
57  }
58  featuredNews {
59    news_id
60    title_cs
61    title_en
62    url_cs
63    url_en
64    position
65  }
66}
67`,name:"GraphQL request",locationOffset:{line:1,column:1}};function U(l,t){if(l.kind==="FragmentSpread")t.add(l.name.value);else if(l.kind==="VariableDefinition"){var m=l.type;m.kind==="NamedType"&&t.add(m.name.value)}l.selectionSet&&l.selectionSet.selections.forEach(function(r){U(r,t)}),l.variableDefinitions&&l.variableDefinitions.forEach(function(r){U(r,t)}),l.definitions&&l.definitions.forEach(function(r){U(r,t)})}var Pe={};(function(){G.definitions.forEach(function(t){if(t.name){var m=new Set;U(t,m),Pe[t.name.value]=m}})})();const De={class:"main main--narrow main--white"},$e={ref:"home",class:"home"},xe={class:"home__content-inner"},Te={class:"hidden"},je={__name:"index",async setup(l){let t,m;const{locale:r,t:c}=A(),S=X(),f=Y(),p=H(),{setImages:w,setItems:_,setPageColor:B,setTypeVariant:b}=p,{client:D}=Z(),{data:v}=([t,m]=ee(()=>se("home-index-"+r.value,()=>D.query({query:G,fetchPolicy:"no-cache",context:{headers:{"Content-Language":r.value}}}).then(a=>a.data),{watch:[r]})),t=await t,m(),t),h=y(()=>{var a;return(a=v.value)==null?void 0:a.featuredNews}
67),n=y(()=>{var a;return(a=v.value)==null?void 0:a.featured}),u=$([]),I=$([]),e=(a,F)=>a.__typename==="Event"?a.image?a.image.url:"/img/dummy/ngp.png":a.news_image?a.news_image:"/img/dummy/ngp.png";ne([n,h],([a,F])=>{var L,R;a&&(u.value=[],a.items.forEach(g=>u.value.push(e(g.item))),w(u.value),_(a.items),b((R=(L=a.items[0])==null?void 0:L.item)==null?void 0:R.logo_variant)),F&&(I.value=F.map(g=>({id:g.news_id,name:{cs:g.title_cs,en:g.title_en},slug:{cs:g.url_cs,en:g.url_en,__typename:g.__typename},__typename:"Page"})))},{immediate:!0}),p.setPageColor("white"),M(()=>{p.setPageColor("white")}),te(()=>{p.setPageColor(null)}),oe({description:y(()=>c("global.head.description")),keywords:y(()=>c("global.head.keywords")),image:null,url:y(()=>f.fullPath)});const N=y(()=>[...I.value]);return(a,F)=>{const L=me,R=Ce,g=V;return i(),s("main",De,[o("div",$e,[o("div",xe,[o("h1",Te,k(d(c)("pages.index.hidden-title")),1),ae(P(L,{news:d(N)},null,8,["news"]),[[ie,d(N)]]),o("section",null,[P(R),P(g,{to:d(S)("events"),class:"button button--featured"},{default:T(()=>[q(k(d(c)("pages.index.link.all-actions")),1)]),_:1},8,["to"])])])],512)])}}};export{je as default};
68//# sourceMappingURL=BJzzNPM9.js.map

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.