1"use strict";(self.webpackChunknext_festival=self.webpackChunknext_festival||[]).push([[941],{4087:function(e,t,n){var a=n(6540),l=(n(4794),n(7371)),o=n(7276),r=n.n(o);t.A=e=>{let{data:t,handleClick:n,dayItems:o,formatItems:s,colors:c,isSk:m=!1,venueItems:i}=e;const u=(e,t)=>{n(e,t)},d=c?`\n\t\t\t.Dropdown-option:hover,\n\t\t\t.Dropdown-option.is-selected {\n\t\t\t\tcolor: ${c.backgroundColor};\n\t\t\t\tbackground: ${c.textColor};\n\t\t\t}\n\t\t\t.Dropdown-menu {\n\t\t\t\tbackground: ${c.backgroundColor};\n\t\t\t}\n\t\t`:"";return r().it(d,a.createElement("div",{className:"filter-wrapper"},o&&a.createElement(l.A,{options:o,onChange:e=>u(e.value,"day"),placeholder:m?"Všetky dni":"All Days"}),(null==i?void 0:i.length)&&a.createElement(l.A,{options:i,onChange:e=>u(e.value,"venue"),placeholder:m?"Všetky miesta":"All Venues"}),s&&a.createElement(l.A,{options:s,onChange:e=>u(e.value,"format"),placeholder:m?"Všetky formáty":"All Formats"})))}},8902:function(e,t,n){n.r(t),n.d(t,{default:function(){return g}});var a=n(6540),l=n(4794),o=n(1577),r=n(9821);var s=e=>{let{color:t="#000",hoverColor:n="#fcfcfc"}=e;return a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",viewBox:"0 0 100 125"},a.createElement("g",null,a.createElement("path",{fill:t,d:"M49.898 11C35.48 11 23.795 22.688 23.795 37.105c0 4.137.986 8.035 2.699 11.51L49.898 83 73.3 48.615a25.935 25.935 0 002.7-11.51C76 22.688 64.314 11 49.898 11m.324 39.535v.08c-.11-.004-.215-.035-.325-.043-.108.008-.213.039-.322.043v-.08c-6.025-.484-10.782-5.459-10.782-11.609 0-6.152 4.757-11.127 10.782-11.611v-.08c.109.004.214.035.322.043.11-.008.215-.039.325-.043v.08c6.026.484 10.783 5.459 10.783 11.611 0 6.15-4.757 11.
1125-10.783 11.609"})))},c=n(4087),m=n(6866),i=n(7276),u=n.n(i);const d=e=>{let{allDays:t,dayFilter:n,settings:l}=e;return Object.keys(t).sort(((e,t)=>e>t?1:e<t?-1:0)).map((e=>{if(e===n||"all"===n)return a.createElement(f,{day:t[e],key:e,colors:l})}))},f=e=>{let{day:t,colors:n}=e;return t.items=t.items.sort(((e,t)=>e.date.starttime&&t.date.starttime?t.date.starttime&&e.date.starttime>t.date.starttime?1:-1:e.menuOrder>t.menuOrder?1:-1)),a.createElement("div",{id:t.slug,className:"col col-12 day-wrapper px-0"},a.createElement("h5",{className:"day-title fw-title",style:{background:n.backgroundColor}},t.name),a.createElement("div",{className:"schedule-items-wrapper"},t.items.map((e=>a.createElement(v,{key:e.slug,item:e,colors:n})))))},v=e=>{var t,n,o;let{item:r,colors:c}=e,m=r.date.starttime,i=r.date.endtime?` - ${r.date.endtime}`:"",d=m?`${m}${i}`:"";const f=r.eventInfo.venue?r.eventInfo.venue:null,v=r.eventInfo.livestreamUrl||"",g=c?`\n\t\t.schedule-item:hover,\n\t\t.watch-link:hover {\n\t\t\tcolor: ${c.backgroundColor};\n\t\t\tbackground: ${c.textColor};\n\t\t}\n\t\t.watch-link:hover {\n\t\t\tcolor: ${c.backgroundColor} !important;\n\t\t\tbackground: ${c.textColor} !important;\n\t\t}\n\t\t.schedule-item:hover .watch-link {\n\t\t\tbackground: ${c.backgroundColor};\n\t\t\tcolor: ${c.textColor};\n\t\t}\n\t`:"",h=e=>{e.stopPropagation()};return u().it(g,a.createElement(l.Link,{to:r.uri,className:"schedule-item"},a.createElement("span",{className:"item-time"},d),a.createElement("span",{className:"item-info mt-5 mt-lg-0"},r.title),a.createElement("div",{className:"item-location"},f&&"Online"!==f.title&&a.createElement("a",{className:"venue-info",href:null===(t=f.venueInfo)||void 0===t?void 0:t.mapsLink,target:"_blank",onClick:h},a.createElement(s,{color:null===(n=f.venueInfo)||void 0===n?void 0:n.color}),f.title),v.length||f&&"Online"==f.title?a.createElement("a",{className:"watch-link",href:v||(null===(o=f.venueInfo)||void 0===o?void 0:o.mapsLink),target:"_blank",onClick:h},"Watch online"):null)))};var g=e=>{let{data:t,pageContext:n}=e;const{settings:l,edition:s,menu:i,lang:f,skMenu:v}=n,g="en"!==f,h=g?"sk-SK":"en-GB",k=t.events.edges,{0:p,1:y}=(0,a.useState)([]),{0:E,1:C}=(0,a.useState)(!0),{0:w,1:b}=(0,a.useState)(k),{0:$,1:I}=(0,a.useState)("all"),S=(0,a.useRef)("all"),D=(0,a.useRef)("all"),{0:x,1:N}=(0,a.useState)([]),{0:F,1:A}=(0,a.useState)([]),{0:V,1:M}=(0,a.useState)([]),L=l?`\n\t\t.schedule-item:hover {\n\t\t\tcolor: ${l.backgroundColor};\n\t\t\tbackground: ${l.textColor};\n\t\t}\n\t`:"";(0,a.useEffect)((()=>{(()=>{console.time("days");const e={};w.forEach((t=>{const{eventInfo:n}=t.node;n.dates&&n.dates.forEach((a=>{if(!a.date)return;let l=a.date;if(!e.hasOwnProperty(l)){const t=new Date(a.date),n=new Intl.DateTimeFormat(h,{weekday:"long"}).format(t),o=new Intl.DateTimeFormat(h,{month:"short"}).format(t),r=`${n} ${new Intl.DateTimeFormat(h,{day:"numeric"}).format(t)} ${o}`;e[l]={name:r,slug:l,primitive:(0,m.G)(new Date(l),"{yyyy}{MM}{dd}"),items:[]}}let o={...t.node,date:n.dates.find((e=>e.date===l))};e[l].items.push(o)}))})),y(e),C(!1),console.timeLog("days")})()}),[w]),(0,a.useEffect)((()=>{(()=>{console.time("Venues");const e=[{value:"all",label:g?"Všetky miesta":"All Venues"}];w.forEach((t=>{const{eventInfo:n}=t.node;if(!n.venue)return;const a=n.venue.slug;e.find((e=>e.value===a))||e.push({value:n.venue.slug,label:n.venue.title})})),A(e),console.timeLog("Venues")})(),(()=>{console.time("Days filter");let e=[{label:g?"Všetky dni":"All Days",value:"all"}];w.forEach((t=>{const{eventInfo:n}=t.node;n.dates&&n.dates.forEach((t=>{if(!t.date)return;const n=new Date(t.date),a=new Intl.DateTimeFormat(h,{weekday:"long"}).format(n),l=new Intl.DateTimeFormat(h,{month:"short"}).format(n),o=new Intl.DateTimeFormat(h,{day:"numeric"}).format(n),r=t.date,s=`${a} ${o} ${l}`;e.find((e=>e.value===r))||e.push({value:r,label:s})}))}));const t=e.sort(((e,t)=>"all"===e.value||"all"===t.value?0:e.value>t.value?1:e.value<t.value?-1:0));N(t),console.timeLog("Days filter")})(),(()=>{console.time("Formats");const e=[{value:"all",label:g?"Všetky formáty":"All Formats"}];
1w.forEach((t=>{const{eventInfo:n}=t.node;if(!n.format)return;const a=n.format.slug;e.find((e=>e.value===a))||e.push({value:n.format.slug,label:n.format.name})})),M(e),console.timeLog("Formats")})()}),[]);const O=`/${"en"===f?"sk/":""}${s}/programme`;return u().it(L,a.createElement(o.A,{style:{color:l.textColor,textColor:l.textColor,backgroundColor:l.backgroundColor},editionHeader:i,skMenu:v,translationSlug:O,isSk:g,year:s,pageName:g?"Program":"Programme"},a.createElement(r.A,{fullWidth:!0,classes:"border-bottom-thick"},a.createElement("div",{className:"col col-12 px-0"},a.createElement("h1",{className:"normal-line-height fw-title"},g?"Program":"Programme")),a.createElement("div",{className:"col col-12"},a.createElement(c.A,{dayItems:x,venueItems:F,formatItems:V,handleClick:(e,t)=>{"day"===t&&I(e),"venue"===t&&(S.current=e),"format"===t&&(D.current=e);let n=k.filter((e=>{const t=e.node.eventInfo;let n=t.venue&&("all"===S.current||t.venue.slug===S.current),a=t.format&&("all"===D.current||t.format.slug===D.current);return t.venue||"all"!==S.current||(n=!0),t.format||"all"!==D.current||(a=!0),n&&a}));b(n)},isSk:g,colors:{textColor:l.textColor,backgroundColor:l.backgroundColor}}))),a.createElement(r.A,null,!k.length&&a.createElement("div",{className:"col col-12 mt-7"},a.createElement("h3",null,g?"Viac info Äoskoro":"Info coming soon")),p&&!E&&Boolean(k.length)&&a.createElement(a.Fragment,null,Object.keys(p).length?a.createElement(d,{allDays:p,dayFilter:$,settings:l}):a.createElement("div",{className:"col col-12 mt-7"},a.createElement("h3",null,g?"Viac info Äoskoro":"Info coming soon"))),E&&a.createElement("div",{className:"col col-12 mt-7"},a.createElement("h3",null,"Loading programme...")))))}},6866:function(e,t,n){n.d(t,{G:function(){return a}});const a=(e,t)=>t.replace(/\\?{.*?}/g,(t=>{if(t.startsWith("\\"))return t.slice(1);switch(t){case"{yyyy}":return`${e.getFullYear()}`;case"{yy}":return`${e.getFullYear()}`.slice(-2);case"{MM}":return`${e.getMonth()+1}`.padStart(2,"0");case"{dd}":return`${e.getDate()}`.padStart(2,"0");case"{HH}":return`${e.getHours()}`.padStart(2,"0");case"{mm}":return`${e.getMinutes()}`.padStart(2,"0");case"{ss}":return`${e.getSeconds()}`.padStart(2,"0");case"{SSS}":return`${e.getMilliseconds()}`.padStart(3,"0");default:return""}}))}}]); 2//# sourceMappingURL=component---src-templates-programme-template-js-f5fe3b519cf0baa04c4c.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.