1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[628],{9307:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events/[name]/[id]",function(){return s(5714)}])},6731:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});var r=s(5893);s(7294);var l=s(7269);function a(){return(0,r.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,r.jsx)(l.Z,{})})}},578:function(e,t,s){"use strict";var r=s(5893);s(7294);var l=s(11),a=s(6565);t.Z=e=>{let{content:t}=e;return(0,r.jsx)(l.U,{className:"prose max-w-none pb-4 pt-2 lg:prose-lg prose-p:text-foreground prose-strong:text-foreground prose-em:mr-[0.1em]",remarkPlugins:[a.Z],components:{a:e=>{let{node:t,...s}=e;return(0,r.jsx)("a",{className:"text-primary",...s})},ul:e=>{let{node:t,...s}=e;return(0,r.jsx)("ul",{className:" pl-0",...s})},li:e=>{let{node:t,...s}=e;return(0,r.jsx)("li",{className:"list-none pl-0 text-foreground",...s})},code:e=>{let{node:t,inline:s,className:l,children:a,...n}=e;return(0,r.jsx)("p",{...n,children:a})},pre:e=>{let{node:t,className:s,children:l,...a}=e;return(0,r.jsx)("p",{...a,children:l})}},children:t})}},5714:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return C},default:function(){return B}});var r=s(5893),l=s(7294),a=s(381),n=s.n(a),i=s(1163),d=s(9008),c=s.n(d),o=s(4142);function m(e){let{customFields:t}=e,s="";return t.freeEntry?s="Gratis!":t.cover&&(s=t.cover+""),s}var u=s(2805);function x(e){let{label:t,value:s}=e;return(0,r.jsxs)("div",{className:" flex flex-row justify-between border-b border-dashed border-primary/50 py-2 text-sm sm:py-4 sm:text-lg",children:[(0,r.jsx)("div",{className:"",children:t}),(0,r.jsx)("div",{className:"",children:(0,r.jsx)("strong",{children:s})})]})}var p=s(1795),h=s(8997);function j(e){let{postData:t}=e,{start_time:s,place:a,tags:d,custom_fields:c}=t,{locale:o}=(0,i.useRouter)(),{tl_date:j,tl_venue:g,tl_doors:f,tl_ageLimit:v,tl_ticketPrice:b,tl_showStartTime:y,tl_noAgeLimit:w,tl_mixedAgeZones:N,tl_ageLimit18Plus:F}=p.Z[o];return(0,l.useEffect)(()=>{n().locale(o)},[o]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:" px-0 pt-0 text-lg text-foreground sm:px-4 sm:text-sm lg:text-lg pt-4 pe-0",children:[(0,r.jsx)("div",{className:"bg-custom-gradient p-2 sm:aspect-square",children:(0,r.jsxs)("div",{className:" bg-background p-4",children:[(0,r.jsx)("div",{className:" rounded-md py-0 sm:py-0",children:c.ticketUrl&&(0,r.jsx)("div",{className:" ",children:(0,r.jsx)(u.Z,{customFields:c,type:"huge"})})}),(0,r.jsxs)("div",{className:"pb-4 sm:py-4",children:[(0,r.jsx)(x,{label:j,value:n()(s).format("dddd Do MMMM YYYY ").replace(/^./,e=>e.toUpperCase())}),(0,r.jsx)(x,{label:g,value:a.name}),c&&(0,r.jsx)(r.Fragment,{children:c.cover&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(x,{label:b,value:(0,r.jsx)(m,{customFields:c})})})}),(0,r.jsx)(x,{label:f,value:n()(s).format("HH:mm")}),c.show_start_time?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(x,{label:y,value:n()(c.show_start_time).format("HH:mm")})}):null,(0,h.M)(c.age,c.noAgeLimit,{tl_noAgeLimit:w,tl_mixedAgeZones:N,tl_ageLimit18Plus:F})&&(0,r.jsx)(x,{label:v,value:(0,h.M)(c.age,c.noAgeLimit,{tl_noAgeLimit:w,tl_mixedAgeZones:N,tl_ageLimit18Plus:F})})]})]})}),(0,r.jsx)("div",{className:"mt-4 mb-4 w-full sm:mt-4",children:(0,r.jsx)("img",{src:"/event-details-under.svg",alt:"Rockedfeller 40th anniversary logo","aria-hidden":"true",className:"block h-auto w-full"})})]})})}function g(e){let{youTubeId:t}=e;return(0,r.jsx)("div",{className:"video-responsive",children:(0,r.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(t,"?rel=0"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})}s(4924);var f=s(9688);function v(e){let{event:t}=e,{name:s,custom_fields:l}=t;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:" relative py-2 sm:py-4",children:[(0,r.jsx)(f.Z,{theClassNames:"text-3xl md:text-5xl lg:text-7xl break-words text-foreground font-extrabold leading-tight font-heading ",name:s,eventStatus:l.eventStatus}),l.secondaryTitle?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:" py-1 text-sm font-light leading-tight text-foreground sm:text-2xl lg:text-3xl",children:l.secondaryTitle})}):null]})})}s(4063);var b=s(5675),y=s.n(b);function w(e){let{event:t}=e,{custom_fields:s,photo:l,imagekit:a}=t;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"relative col-span-4 lg:col-span-3",children:l&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(y(),{src:t.imagekit.url.replace(/ik\.imagekit\.io\/mfgbmrqfuvo/g,"img.broadcastapp.no"),alt:"Promotional graphic for ".concat(t.name),width:1150,height:647,className:"aspect-video group inset-0 h-full w-full max-w-full flex-shrink-0 object-fill","aria-hidden":"true",priority:!0}),s.blurb?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:" absolute bottom-0 left-0 break-words bg-foreground
1/70 px-2 py-1 text-lg font-bold text-background sm:px-4 sm:py-4 md:text-2xl lg:text-3xl",children:s.blurb})}):null]})})})})}var N=s(6109);function F(e){let{embeds:t}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"",children:t.map(e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"pb-4",children:["youtube"===e.type&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"video-responsive",style:{overflow:"hidden",paddingBottom:"56.25%",position:"relative",height:"0"},children:(0,r.jsx)("iframe",{style:{left:"0",top:"0",height:"100%",width:"100%",position:"absolute"},src:"https://www.youtube.com/embed/".concat(function(e){let t=e.match(/(?:v=|youtu\.be\/)([^&?]+)/);return t?t[1]:null}(e.id),"?rel=0"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})}),"spotify"===e.type&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("iframe",{className:"",src:function(e){let t=e.match(/open\.spotify\.com\/(artist|playlist|track|album|episode|show)\/([a-zA-Z0-9]+)/);if(t){let[e,s,r]=t;return"https://open.spotify.com/embed/".concat(s,"/").concat(r)}return null}(e.id),frameBorder:"0",allow:"encrypted-media",width:"100%",height:"352",allowFullScreen:!0,loading:"lazy"})," "]})]})}))})})}var k=s(5585),_=s(1002);let D=e=>{let t=new Date(e);return new Intl.DateTimeFormat("en-GB",{day:"2-digit",month:"2-digit",year:"2-digit"}).format(t)},M=e=>"".concat((0,k.U)(e.name),"/").concat(e.id);function Z(e){let{tags:t,relatedContent:s,currentObjectId:a}=e,{isLoading:n,isSuccess:d,isError:c,data:o,error:m}=(0,N.h)(),{locale:u}=(0,i.useRouter)(),{tl_RelatedEventsHeading:x}=p.Z[u],h=e=>e.filter(e=>!(e.custom_fields&&(e.custom_fields.soldOut||"CANCELLED"===e.custom_fields.eventStatus))),j=(e,t,s)=>{if(!t)return[];let r=e?e.map(e=>e.objectId):[],l=[];return 0===(l=(l=r.length>0?t.filter(e=>r.includes(e.id)):s.length>0?t.filter(e=>s.some(t=>e.tags.includes(t))):t.filter(e=>e.recommended).sort((e,t)=>new Date(e.date)-new Date(t.date)).slice(0,3)).filter(e=>e.id!==a)).length?t.filter(e=>e.id!==a).sort((e,t)=>new Date(e.date)-new Date(t.date)).slice(0,4):Array.from(new Map(l.map(e=>[e.name,e])).values())},g=(e,t,s)=>{if(!t)return[];let r=h(t);return e&&e.length>0?e.map(e=>{if("event"===e.type){let t=r.find(t=>t.id===e.objectId);if(t)return{...e,...t}}return null}).filter(e=>null!==e):s.length>0?Array.from(new Map(r.filter(e=>e.id!==a&&s.some(t=>e.tags.includes(t))).sort((e,t)=>new Date(e.date)-new Date(t.date)).map(e=>({objectId:e.id,type:"event",title:e.name,info:"".concat(D(e.start_time)," - ").concat(e.tagsFlattened),image:e.imagekit.url,link:M(e),...e})).map(e=>[e.name,e])).values()).slice(0,3):[]},f=(0,l.useMemo)(()=>g(s,o,t),[s,o,t]);(0,l.useMemo)(()=>j(s,o,t),[s,o,t]);let v=(0,l.useMemo)(()=>0===f.length?null:x,[f]);return n?(0,r.jsx)("div",{children:"Loading..."}):c?(0,r.jsxs)("div",{children:["Error: ",m.message]}):(0,r.jsxs)("div",{className:"pt-8",children:[v&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("h2",{className:" py-4 pb-8 font-heading text-2xl font-bold text-primary",children:v})}),(0,r.jsx)("ul",{className:" grid-cols-1 gap-8 pb-6 sm:grid sm:grid-cols-2 lg:grid-cols-3",children:f.map((e,t)=>(0,r.jsx)(_.Z,{event:e},t))})]})}s(1384);var E=s(6731),S=s(578),C=!0;function B(e){var t;let{postData:s,venueData:l,preview:a}=e,d=(0,i.useRouter)(),{isLoading:m,isSuccess:x,isError:p,data:h,error:f}=(0,N.h)();if(d.isFallback)return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(E.Z,{})});let{id:b,name:y,details:k,start_time:_,photo:D,place:M,tags:C,custom_fields:B}=s,I=h;I=x?I.filter(e=>e.tags.some(e=>s.tags.includes(e))).filter(e=>
1e.id!==s.id):I,null===(t=s.custom_fields)||void 0===t||t.eventStatus;let T="https://rockefeller.no/events/"+d.query.name+"/"+d.query.id,A=n()(_).format("ddd Do MMM")+" at "+M.name;return(0,r.jsxs)(r.Fragment,{children:[a&&(0,r.jsx)("div",{className:"bg-yellow-100 border-yellow-400 border-b p-4",children:(0,r.jsxs)("p",{className:"text-yellow-800",children:["Viewing events in preview mode."," ",(0,r.jsx)("a",{href:"/api/exit-preview-events",className:"underline",children:"Click here to exit"})]})}),(0,r.jsxs)(o.Z,{venueData:l,hideBkg:!0,children:[(0,r.jsxs)(c(),{children:[(0,r.jsx)("title",{children:s.name}),(0,r.jsx)("meta",{name:"description",content:A}),(0,r.jsx)("meta",{name:"keywords",content:y+", "+M.name+", "+B.type+", Oslo, Konserts, music, musikk"}),(0,r.jsx)("meta",{property:"og:url",content:T}),(0,r.jsx)("meta",{property:"og:type",content:"article"}),(0,r.jsx)("meta",{property:"og:title",content:y}),(0,r.jsx)("meta",{property:"og:description",content:A}),(0,r.jsx)("meta",{property:"og:image",content:D.urls.large})]}),(0,r.jsx)("div",{className:"px- relative mx-auto max-w-7xl px-4 pb-8 sm:px-6 lg:px-8 ",children:(0,r.jsxs)("article",{children:[(0,r.jsx)(w,{event:s}),(0,r.jsx)("div",{className:" l top-8 grid grid-cols-1 gap-4 sm:grid-cols-12",children:k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:" col-span-7 ",children:[(0,r.jsx)(v,{event:s}),(0,r.jsx)("div",{className:" sm:hidden",children:(0,r.jsx)(j,{postData:s})}),(0,r.jsxs)("div",{className:" sm:py-4",children:[(0,r.jsx)("div",{className:"flex flex-row items-center justify-between sm:pb-4",children:(0,r.jsx)("div",{className:"",children:C.length>0?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:" uppercase text-primary ",children:C.map(e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:"overflow-auto break-words pr-3",children:e})}))})}):null})}),(0,r.jsx)("div",{className:" py-4 pt-0",children:k&&(0,r.jsx)(S.Z,{content:k})}),(0,r.jsx)("div",{className:"pb-4",children:B.youtube?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(g,{youTubeId:B.youtube})}):null}),B.embeds?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(F,{embeds:B.embeds||[]})}):null,(0,r.jsx)("div",{className:"sm:hidden",children:(0,r.jsx)("div",{className:" rounded-md py-0 sm:py-0",children:B.ticketUrl&&(0,r.jsx)("div",{className:" ",children:(0,r.jsx)(u.Z,{customFields:B,type:"huge"})})})})]})]}),(0,r.jsx)("div",{className:" col-span-5 ",children:(0,r.jsx)("div",{className:" sticky top-0 order-first hidden self-start p-0 pr-0 sm:order-last sm:block",children:(0,r.jsx)(j,{postData:s})})})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:" order-first pt-4 sm:order-last md:col-span-8 md:col-start-3",children:[(0,r.jsx)(v,{event:s}),B.youtube?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(g,{youTubeId:B.youtube})}):null,(0,r.jsx)(j,{postData:s}),B.embeds?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"pt-8",children:B.embeds.map(e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"pb-4",children:(0,r.jsx)("iframe",{style:{borderRadius:"12px"},className:"",src:e.id,frameBorder:"0",allow:"encrypted-media",width:"100%",height:"352",allowFullScreen:!0,loading:"lazy"})})}))})}):null]})})}),x?(0,r.jsx)(Z,{tags:C,relatedContent:B.relatedEvents,currentObjectId:b}):null]})})]})]})}}},function(e){e.O(0,[153,756,318,986,142,361,888,774,179],function(){return e(e.s=9307)}),_N_E=e.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.