PageSourceSearch

https://nextfestival.sk/component---src-templates-workshops-template-js-0bb37c2b974144ace977.js

js nextfestival.sk collected 2026-09-24 10:11:31 UTC 5,598 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknext_festival=self.webpackChunknext_festival||[]).push([[981],{4342:function(e,t,n){n.d(t,{A:function(){return c}});var r=n(6540),a=n(4794),o=n(7276),l=n.n(o);n(9640);var s=e=>{var t,n,o;let{item:s,style:c,colors:i={backgroundColor:"FFF",textColor:"#4c45fa"}}=e;if(!s)return"";s.node&&(s=s.node),s.artistEventContent.images||console.log(s);const u=s.artistEventContent.images;let m=u.length&&(null===(t=u[0])||void 0===t||null===(n=t.mediaDetails)||void 0===n?void 0:n.sizes.find((e=>"big-thumbnail"===e.name)));if(m||(u.length?m=s.artistEventContent.images[0].srcSet:s.featuredImage&&(m=s.featuredImage&&s.featuredImage.node.srcSet)),!s.uri)return"";const d=i?`\n\t\t.artist-item .row:hover {\n\t\t\tcolor: ${i.backgroundColor};\n\t\t\tbackground: ${i.textColor};\n\t\t}\n\t`:"";return l().it(d,r.createElement(a.Link,{className:"artist-item px-2 px-md-4 col-6 col-lg-4 mb-3",to:s.uri},r.createElement("div",{className:"row p-1 p-md-3 "},r.createElement("div",{className:"artist-info col col-12 text-center"},r.createElement("h3",{className:"artist-title"},s.title||s.name),(null===(o=s.productInfo)||void 0===o?void 0:o.subtitle)&&r.createElement("h3",{className:"artist-title"},s.productInfo.subtitle)),r.createElement("div",{className:"artist-image col col-12"},m&&r.createElement("img",{srcSet:m})))))};var c=e=>{let{items:t,colors:n}=e;return r.createElement(r.Fragment,null,t.map(((e,t)=>r.createElement(s,{colors:n,key:`artist-${e.id||t}`,item:e}))))}},4087:function(e,t,n){var r=n(6540),a=(n(4794),n(7371)),o=n(7276),l=n.n(o);t.A=e=>{let{data:t,handleClick:n,dayItems:o,formatItems:s,colors:c,isSk:i=!1,venueItems:u}=e;const m=(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 l().it(d,r.createElement("div",{className:"filter-wrapper"},o&&r.createElement(a.A,{options:o,onChange:e=>m(e.value,"day"),placeholder:i?"Všetky dni":"All Days"}),(null==u?void 0:u.length)&&r.createElement(a.A,{options:u,onChange:e=>m(e.value,"venue"),placeholder:i?"Všetky miesta":"All Venues"}),s&&r.createElement(a.A,{options:s,onChange:e=>m(e.value,"format"),placeholder:i?"Všetky formáty":"All Formats"})))}},9640:function(e,t,n){var r=n(6540);t.A=e=>{let{srcSet:t,caption:n,fixedRatio:a}=e;return t?r.createElement("figure",{className:n?"":"fixed-ratio"},r.createElement("img",{srcSet:t}),n?r.createElement("figcaption",{dangerouslySetInnerHTML:{__html:n}}):""):null}},9297:function(e,t,n){n.r(t);var r=n(6540),a=(n(4794),n(2853)),o=n(6866),l=n(1577),s=n(9821),c=n(4087),i=n(4342);t.default=e=>{let{data:t,pageContext:n}=e;const u=t.workshops.edges,{settings:m,edition:d,menu:f,lang:g,skMenu:E}=n,{0:h,1:p}=(0,r.useState)(u),v=(0,r.useRef)("all"),k=(0,r.useRef)("all"),y="en"!==g,C=`/${"en"===g?"sk/":""}${d}/workshops`,w=[{label:y?"Všetky dni":"All Days",value:"all"}];u.forEach((e=>{let{node:t}=e;t.eventInfo&&t.eventInfo.dates&&t.eventInfo.dates.forEach((e=>{if(!w.find((t=>t.value===e.date))){const t=new Date(e.date),n=(0,a.A)(t,"{EEE}"),r=(0,a.A)(t,"{MMM}"),l=(0,o.G)(t,"{dd}");w.push({label:`${n} ${l} ${r}`,value:e.date})}}))}));return r.createElement(l.A,{style:{color:m.textColor,textColor:m.textColor,backgroundColor:m.backgroundColor},isSk:y,translationSlug:C,editionHeader:f,skMenu:E,year:d,pageName:y?"Workshopy":"Workshops"},r.createElement(s.A,{fullWidth:!0,classes:"border-bottom-thick"},r.createElement("div",{className:"col col-12 px-0"},r.createElement("h1",{className:"normal-line-height fw-title"},y?"Workshopy":"Workshops")),r.createElement("div",{className:"col col-12"},r.createElement(c.A,{colors:{textColor:m.textColor,backgroundColor:m.backgroundColor},dayItems:w,handleClick:(e,t)=>{"day"===t&&(v.current=e),"venue"===t&&(k.current=e);let n=u.filter((e=>{const t=e.node.eventInfo;let n=!1,r=!1;return"all"===v.current?r=!0:t.dates.forEach((e=>{e.date===v.current&&(r=!0)})),n="all"===k.current||!t.venue||t.venue.slug===k.current,n&&r}));p(n)},noFormats:!0}))),r.createElement(s.A,{classes:"mt-6 justify-content-start"},h&&h.length?r.createElement(i.A,{colors:m,items:h}):r.createElement("h3",null,y?"Viac info čoskoro":"Info coming soon")))}},6866:function(e,t,n){n.d(t,{G:function(){return r}});const r=(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""}}))},2853:function(e,t){t.A=(e,t,n="en-US")=>t.replace(/\\?{.*?}/g,(t=>{if(t.startsWith("\\"))return t.slice(1);switch(t){case"{MMMMM}":return new Intl.DateTimeFormat(n,{month:"narrow"}).format(e);case"{MMMM}":return new Intl.DateTimeFormat(n,{month:"long"}).format(e);case"{MMM}":return new Intl.DateTimeFormat(n,{month:"short"}).format(e);case"{EEEEE}":return new Intl.DateTimeFormat(n,{weekday:"narrow"}).format(e);case"{EEEE}":return new Intl.DateTimeFormat(n,{weekday:"long"}).format(e);case"{EEE}":case"{EE}":case"{E}":return new Intl.DateTimeFormat(n,{weekday:"short"}).format(e);default:return""}}))}}]);
2//# sourceMappingURL=component---src-templates-workshops-template-js-0bb37c2b974144ace977.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.