PageSourceSearch

https://festivalhistorik.dk/_next/static/chunks/pages/[year]/festivals-18e58acef05fdaed.js

js festivalhistorik.dk collected 2026-10-03 01:48:09 UTC 12,266 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[320],{7484:function(t){var e,r,n,a,s,i,o,u,l,c,d,f,h,v,g,m,y,$,p,M,_,b;t.exports=(e="millisecond",r="second",n="minute",a="hour",s="week",i="month",o="quarter",u="year",l="date",c="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},(g={})[v="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||"th")+"]"}},m="$isDayjsObject",y=function(t){return t instanceof _||!(!t||!t[m])},$=function t(e,r,n){var a;if(!e)return v;if("string"==typeof e){var s=e.toLowerCase();g[s]&&(a=s),r&&(g[s]=r,a=s);var i=e.split("-");if(!a&&i.length>1)return t(i[0])}else{var o=e.name;g[o]=e,a=o}return!n&&a&&(v=a),a||!n&&v},p=function(t,e){if(y(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},(M={s:h,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+h(Math.floor(r/60),2,"0")+":"+h(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),a=e.clone().add(n,i),s=r-a<0,o=e.clone().add(n+(s?-1:1),i);return+(-(n+(r-a)/(s?a-o:o-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return({M:i,y:u,w:s,d:"day",D:l,h:a,m:n,s:r,ms:e,Q:o})[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}}).l=$,M.i=y,M.w=function(t,e){return p(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},b=(_=function(){function t(t){this.$L=$(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[m]=!0}var h=t.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(d);if(n){var a=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return M},h.isValid=function(){return this.$d.toString()!==c},h.isSame=function(t,e){var r=p(t);return this.startOf(e)<=r&&r<=this.endOf(e)},h.isAfter=function(t,e){return p(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<p(t)},h.$g=function(t,e,r){return M.u(t)?this[e]:this.set(r,t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,e){var o=this,c=!!M.u(e)||e,d=M.p(t),f=function(t,e){var r=M.w(o.$u?Date.UTC(o.$y,e,t):new Date(o.$y,e,t),o);return c?r:r.endOf("day")},h=function(t,e){return M.w(o.toDate()[t].apply(o.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),o)},v=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case u:return c?f(1,0):f(31,11);case i:return c?f(1,g):f(0,g+1);case s:var $=this.$locale().weekStart||0,p=(v<$?v+7:v)-$;return f(c?m-p:m+(6-p),g);case"day":case l:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case n:return h(y+"Seconds",2);case r:return h(y+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(t,s){var o,c=M.p(t),d="set"+(this.$u?"UTC":""),f=((o={}).day=d+"Date",o[l]=d+"Date",o[i]=d+"Month",o[u]=d+"FullYear",o[a]=d+"Hours",o[n]=d+"Minutes",o[r]=d+"Seconds",o[e]=d+"Milliseconds",o)[c],h="day"===c?this.$D+(s-this.$W):s;if(c===i||c===u){var v=this.clone().set(l,1);
1v.$d[f](h),v.init(),this.$d=v.set(l,Math.min(this.$D,v.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[M.p(t)]()},h.add=function(t,e){var o,l=this;t=Number(t);var c=M.p(e),d=function(e){var r=p(l);return M.w(r.date(r.date()+Math.round(e*t)),l)};if(c===i)return this.set(i,this.$M+t);if(c===u)return this.set(u,this.$y+t);if("day"===c)return d(1);if(c===s)return d(7);var f=((o={})[n]=6e4,o[a]=36e5,o[r]=1e3,o)[c]||1,h=this.$d.getTime()+t*f;return M.w(h,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",a=M.z(this),s=this.$H,i=this.$m,o=this.$M,u=r.weekdays,l=r.months,d=r.meridiem,h=function(t,r,a,s){return t&&(t[r]||t(e,n))||a[r].slice(0,s)},v=function(t){return M.s(s%12||12,t,"0")},g=d||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(f,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return M.s(e.$y,4,"0");case"M":return o+1;case"MM":return M.s(o+1,2,"0");case"MMM":return h(r.monthsShort,o,l,3);case"MMMM":return h(l,o);case"D":return e.$D;case"DD":return M.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,u,2);case"ddd":return h(r.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(s);case"HH":return M.s(s,2,"0");case"h":return v(1);case"hh":return v(2);case"a":return g(s,i,!0);case"A":return g(s,i,!1);case"m":return String(i);case"mm":return M.s(i,2,"0");case"s":return String(e.$s);case"ss":return M.s(e.$s,2,"0");case"SSS":return M.s(e.$ms,3,"0");case"Z":return a}return null}(t)||a.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(t,e,l){var c,d=this,f=M.p(e),h=p(t),v=(h.utcOffset()-this.utcOffset())*6e4,g=this-h,m=function(){return M.m(d,h)};switch(f){case u:c=m()/12;break;case i:c=m();break;case o:c=m()/3;break;case s:c=(g-v)/6048e5;break;case"day":c=(g-v)/864e5;break;case a:c=g/36e5;break;case n:c=g/6e4;break;case r:c=g/1e3;break;default:c=g}return l?c:M.a(c)},h.daysInMonth=function(){return this.endOf(i).$D},h.$locale=function(){return g[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=$(t,e,!0);return n&&(r.$L=n),r},h.clone=function(){return M.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},t}()).prototype,p.prototype=b,[["$ms",e],["$s",r],["$m",n],["$H",a],["$W","day"],["$M",i],["$y",u],["$D",l]].forEach(function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),p.extend=function(t,e){return t.$i||(t(e,_,p),t.$i=!0),p},p.locale=$,p.isDayjs=y,p.unix=function(t){return p(1e3*t)},p.en=g[v],p.Ls=g,p.p={},p)},2613:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[year]/festivals",function(){return r(1361)}])},1361:function(t,e,r){"use strict";r.r(e),r.d(e,{__N_SSP:function(){return v},default:function(){return g}});var n=r(5893),a=r(9820),s=r(7294),i=r(7484),o=r.n(i),u=r(6010),l=r(1664),c=r.n(l),d=r(451),f=r(6831),h=r(4782),v=!0;function g(t){var e;let{year:r}=t,i=(0,s.useRef)(null),[l,v]=(0,s.useState)(null),{data:g}=(0,a.ZP)("festivals/".concat(r),async()=>{let t=await f.Z.list({year:r,sort_by:"start_date",sort_order:"asc"});return t.data.data},{revalidateOnMount:!0}),{start:m,daysDiff:y,today:$}=(0,s.useMemo)(()=>{let t=null==g?void 0:g[0],e=null==g?void 0:g[g.length-1],r=null==t?void 0:t.start_date,n=null==e?void 0:e.end_date,a=o()();return{start:r,end:n,today:a,daysDiff:r&&n?o()(n).diff(r,"days"):0}},[g]),p=(0,s.useMemo)(()=>window.innerWidth<768,[]),M=p?80:120,_=(0,s.useMemo)(()=>g?g.find(t=>t.id===l):null,[g,l]);return(0,s.useEffect)(()=>{if(!g)return;let t=i.current;if(!t)return;let e=o()(),r=t.querySelector('[data-date="'.concat(e.format("YYYY-MM-DD"),'"]'));if(!r)return;let n=r.getBoundingClientRect().left-t.getBoundingClientRect().left+t.scrollLeft;t.scrollTo({left:n-M-8,behavior:"instant"})},[g]),(0,n.jsx)(d.Z,{seo:{title:"Dit festival overblik for ".concat(r),description:"Dit festival overblik for \xe5ret. Her kan du se alle festivallene som har v\xe6rt i fokus dette \xe5ret."},children:(0,n.jsxs)(h.Z,{padding:!0,children:[(0,n.jsxs)("h1",{className:"text-2xl font-bold text-center",children:["Dit festival overblik for ",r]}),(0,n.jsxs)("div",{ref:i,className:"flex overflow-x-auto items-stretch max-w-full h-auto",children:[(0,n.jsxs)("div",{className:"shrink-0 grid sticky top-0 left-0 z-10 grid-cols-1 gap-1 bg-white border-r border-gray-200",onMouseLeave:()=>v(null),style:{width:M,gridTemplateRows:"repeat(".concat((null!==(e=null==g?void 0:g.length)&&void 0!==e?e:0)+1,", 60px)")},children:[(0,n.jsx)("div",{className:"md:text-base md:pl-4 py-4 pr-4 text-sm font-bold border-b border-gray-200",children:"Festivaler"}),null==g?void 0:g.map(t=>{var e,r,a;return(0,n.jsx)("div",{className:"hover:bg-gray-100 md:pl-4 py-4 pr-4 border-b border-gray-200 cursor-pointer",onMouseEnter:()=>v(t.id),"data-start-date":o()(t.start_date).format("YYYY-MM-DD"),"data-end-date":o()(t.end_date).format("YYYY-MM-DD"),onClick:()=>{let e=i.current;if(!e)return;let r=o()(t.start_date).diff(m,"days"),n=o()(m).add(r,"days"),a=e.querySelector('[data-date="'.concat(n.format("YYYY-MM-DD"),'"]'));if(!a)return;v(t.id);let s=a.getBoundingClientRect().left-e.getBoundingClientRect().left+e.scrollLeft;e.scrollTo({left:s-M-8,behavior:"smooth"})},children:(null===(e=t.festival_category)||void 0===e?void 0:e.logo_url)?(0,n.jsx)("img",{src:null===(r=t.festival_category)||void 0===r?void 0:r.logo_url,alt:(null===(a=t.festival_category)||void 0===a?void 0:a.name)||t.title,className:"object-contain w-full h-full"}):t.title},t.id)})]}),Array.from({length:y}).map((t,e)=>{var r;let a=o()(m).add(e,"days"),s=a.isSame(null==_?void 0:_.start_date,"day"),i=a.isSame(null==_?void 0:_.end_date,"day");return(0,n.jsxs)("div",{className:(0,u.Z)("grid grid-cols-1 gap-1 w-[100px] shrink-0 border-l border-r border-transparent",{"border-blue-500":a.isSame($,"day"),"border-l-yellow-500 border-l-opacity-60":s,"border-r-yellow-500 border-r-opacity-60":i}),"data-date":a.format("YYYY-MM-DD"),style:{gridTemplateRows:"repeat(".concat((null!==(r=null==g?void 0:g.length)&&void 0!==r?r:0)+1,", 60px)")},children:[(0,n.jsxs)("div",{className:"px-4 py-2 border-b border-gray-200",children:[(0,n.jsx)("div",{className:"text-sm font-bold",children:a.format("DD.MM")}),(0,n.jsx)("div",{className:"text-xs",children:a.format("dddd")})]}),null==g?void 0:g.map(t=>{var e,r,s;let i=a.isAfter(t.start_date)&&a.isBefore(t.end_date)||a.isSame(t.start_date)||a.isSame(t.end_date),o=l===t.id,d=a.isSame(t.start_date);return(0,n.jsx)("div",{"data-festival-id":t.id,"data-festival-active":i?"true":"false",onMouseEnter:()=>v(t.id),onTouchStart:()=>
1{v(t.id)},className:(0,u.Z)("p-4 relative",{"bg-gray-100":i,"opacity-0":!i&&!o,"opacity-10 bg-yellow-200":!i&&o}),style:{transform:"scaleX(1.05)"},children:d&&(0,n.jsx)(c(),{href:"/festival/".concat(t.slug),className:"hover:scale-110",children:(null===(e=t.festival_category)||void 0===e?void 0:e.logo_url)?(0,n.jsx)("img",{src:null===(r=t.festival_category)||void 0===r?void 0:r.logo_url,alt:null===(s=t.festival_category)||void 0===s?void 0:s.name,className:"object-contain w-full h-full"}):t.title})},t.id)})]},e)})]})]})})}},6831:function(t,e,r){"use strict";var n=r(1059);e.Z={list:t=>n.ZP.get("/festivals",{params:t}),get:t=>n.ZP.get("/festivals/".concat(t)),getArtists:t=>n.ZP.get("/festivals/".concat(t,"/artists"),{params:{include:"favorites"}}),getCrawler:t=>n.ZP.get("/festivals/".concat(t,"/crawler"),(0,n.JS)({})),categories:()=>n.ZP.get("/festival-categories"),categoriesWithFestivals:()=>n.ZP.get("/festival-categories",{params:{include:"festivals"}}),category:t=>n.ZP.get("/festival-categories/".concat(t)),revalidateArtists:t=>n.ZP.post("/festivals/".concat(t,"/artists-revalidate"))}}},function(t){t.O(0,[774,888,179],function(){return t(t.s=2613)}),_N_E=t.O()}]);

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.