1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dca38b73-d0cd-46f8-891d-0737053c380d",e._sentryDebugIdIdentifier="sentry-dbid-dca38b73-d0cd-46f8-891d-0737053c380d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80],{104:function(e,t,n){var s=n(85893),l=n(67294),r=n(1742);t.Z=e=>{let{imageUrl:t,altText:n,width:o="100%",height:a="auto",transformationOptions:c,lqipOptions:i,className:d}=e,[m,u]=(0,l.useState)(t);l.useEffect(()=>{"https://img.broadcastapp.no/uploads/oslokulturnatt/okn-logo-default_cIIwjswfL.jpg"===m&&u("https://img.broadcastapp.no/uploads/festivals/FB_banner_820x360_arr3_XoKWkjQcN.jpg?updatedAt=1754455152839")},[m]);let h=m.substring(0,m.indexOf("/",8));return(0,s.jsx)(r.IKContext,{urlEndpoint:h,children:(0,s.jsx)("div",{className:"relative w-full h-0 pb-[56.25%] overflow-hidden ".concat(d),children:(0,s.jsx)(r.IKImage,{src:m,alt:n,width:"100%",height:"100%",transformation:c,loading:"lazy",lqip:i,className:"absolute top-0 left-0 w-full h-full object-cover",onError:()=>{console.log("error loading image")}})})})}},52508:function(e,t,n){n.d(t,{Z:function(){return c}});var s=n(85893);n(67294);var l=n(66049),r=n(11163),o=n(68126),a=n(47954);function c(){let{query:e,locale:t}=(0,r.useRouter)(),{tl_PrintPage:n}=l.Z[t];return(0,s.jsxs)(o.z,{variant:"ghost",onClick:()=>{window.print()},children:[(0,s.jsx)(a.Z,{className:"mr-2"})," ",n]})}},19143:function(e,t,n){n.d(t,{Z:function(){return a}});var s=n(85893),l=n(67294);let r=e=>{let{className:t,accentColor:n}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:n,className:t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z",clipRule:"evenodd"})})},o=e=>{let{className:t,accentColor:n}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.0",stroke:n,className:t,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"})})};function a(e){let{event:t,disabled:n,config:a={}}=e,[c,i]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{i((JSON.parse(localStorage.getItem("favoriteEvents"))||[]).includes(t.externalId))},[t.externalId]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("button",{onClick:function(e){var s;e.preventDefault(),e.stopPropagation(),n||(s=t.externalId,(JSON.parse(localStorage.getItem("favoriteEvents"))||[]).includes(s)?function(e){let t=JSON.parse(localStorage.getItem("favoriteEvents"))||[],n=t.indexOf(e);n>-1&&(t.splice(n,1),localStorage.setItem("favoriteEvents",JSON.stringify(t)))}(s):function(e){let t=JSON.parse(localStorage.getItem("favoriteEvents"))||[];t.includes(e)||(t.push(e),localStorage.setItem("favoriteEvents",JSON.stringify(t)))}(s),i(!c))},"aria-label":"Star this event",className:"ml-2",children:[c?(0,s.jsx)(r,{className:"h-6 w-6 md:h-6 sm:w-6 ",accentColor:"#FFD700"}):(0,s.jsx)(o,{className:"h-6 w-6 md:h-6 sm:w-6 ",accentColor:"#FFD700"})," "]})})}},68080:function(e,t,n){n.d(t,{Z:function(){return x}});var s=n(85893);n(67294);var l=n(104),r=n(30381),o=n.n(r),a=n(33790),c=n(19143),i=n(28066),d=n(86773);n(68126);var m=n(52508);let u=e=>e.replace(/ik\.imagekit\.io\/mfgbmrqfuvo/g,"img.broadcastapp.no/");function h(e){return e?e.split("\n").map((e,t)=>(0,s.jsxs)("span",{children:[e,(0,s.jsx)("br",{})]},t)):""}let p=e=>{let{start_time_iso:t,end_time_iso:n}=e;return(0,s.jsxs)("div",{className:"m-0 pb-0 text-secondary-foreground
1/50 text-sm flex flex-row items-center justify-start",children:[(0,s.jsx)(a.Z,{className:"size-4 mr-2"}),(0,s.jsxs)("div",{children:[o()(t).format("HH:mm")," "," - ",o()(n).format("HH:mm")]})]})},f=e=>{let{organizer:t}=e;return(0,s.jsx)("div",{className:"text-lg font-bold",children:t})},g=e=>{let{venue:t}=e;return(0,s.jsx)("div",{children:t})};function x(e){let{event:t,preview:n=!1,archiveBanner:r=null}=e;console.log(t);let o=n?(0,d.Kd)(t):t,{id:a,name:x,details:v,start_time_iso:j,photo:b,place:w,tags:y,custom_fields:N,imageUrl:k,externalVenueName:_,description:I,organizer:C,end_time_iso:E}=o;console.log(o);let S=N.hcEntrance||N.hcParking||N.hcToilet||N.hcWheelchair;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)(l.Z,{imageUrl:u(k),altText:"Promotional graphic for ".concat(x),transformationOptions:[{width:"1150"}],lqipOptions:{active:!1,quality:20},width:"100%",height:"auto",className:"aspect-video group h-full w-full flex-shrink-0 sm:border-none cursor-pointer object-cover hover:mix-blend-normal rounded-lg hover:grayscale-0 ","aria-hidden":"true"},k)}),r,(0,s.jsxs)("div",{className:"grid grid-cols-12 pt-4 gap-8 bg-card text-card-foreground pb-4 sm:pb-8",children:[(0,s.jsxs)("div",{className:"col-span-12 sm:col-span-7 lg:col-span-8 space-y-4",children:[(0,s.jsx)("div",{className:"text-4xl font-bold break-words px-4 sm:px-8",children:x}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,s.jsx)("div",{className:" uppercase font-bold text-sm bg-secondary bg-opacity-50 px-2 py-1 text-secondary-foreground pl-4 sm:pl-8 rounded-sm w-fit",children:y&&y[0]}),(0,s.jsx)("div",{className:"",children:!n&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.Z,{event:t})})})]}),(0,s.jsx)("div",{className:"flex flex-row items-center justify-end",children:(0,s.jsx)(m.Z,{})}),(0,s.jsx)("div",{className:"break-words px-4 sm:px-8",children:h(I)}),N.link&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"break-all px-4 sm:px-8",children:[(0,s.jsx)("div",{className:"pb-2",children:"Mer info:"}),(0,s.jsx)("div",{className:"",children:function(e){if(!e)return null;let t=e.match(/https?:\/\/[^\s]+/g);return t?(0,s.jsx)(s.Fragment,{children:t.map((e,t)=>(0,s.jsx)("div",{children:(0,s.jsx)(i.Z,{href:e,className:"",children:e})},t))}):(0,s.jsx)(s.Fragment,{children:e})}(N.link)})]})}),_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"pt-4 text-lg font-bold px-4 sm:px-8",children:"Kartvisning:"}),(0,s.jsx)("div",{className:" px-4 sm:px-8",children:(0,s.jsx)(e=>{let{address:t}=e,n=encodeURIComponent(t),l="https://www.google.com/maps/embed/v1/place?key=".concat("AIzaSyC_k1cbh-mxIvdkgQxEjAyjvpao17Ffgkk","&q=").concat(n);return(0,s.jsx)("iframe",{src:l,width:"100%",height:"300",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})},{address:_})})]})]}),(0,s.jsxs)("div",{className:"col-span-12 sm:col-span-5 lg:col-span-4",children:[(0,s.jsxs)("div",{className:"border rounded-lg border-secondary p-4 space-y-4 ml-4 sm:ml-0 mr-4",children:[(0,s.jsx)("div",{className:"break-all",children:(0,s.jsx)(f,{organizer:null==N?void 0:N.arrangør})}),(0,s.jsx)("div",{className:"",children:N.age}),(0,s.jsx)("div",{className:"",children:(0,s.jsx)(p,{start_time_iso:j,end_time_iso:E})}),(0,s.jsx)("div",{className:"",children:(0,s.jsx)(g,{venue:_})})]}),N.directions&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"pt-4 ml-4 sm:ml-0 mr-4",children:(0,s.jsxs)("div",{className:"border rounded-lg border-secondary p-4 break-words",children:[(0,s.jsxs)("div",{className:"pb-2 font-bold",children:["Kollektivtransport:"," "]}),h(N.directions)]})})}),S&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"pt-4 ml-4 sm:ml-0 mr-4 ",children:(0,s.jsxs)("div",{className:"border rounded-md border-secondary p-4 ",children:[(0,s.jsxs)("div",{className:"pb-2 font-bold",children:["Fasiliteter:"," "]}),(0,s.jsx)("div",{className:"",children:N.hcEntrance?"Hovedinngangen uten trinn og h\xf8ye terskler":null}),(0,s.jsx)("div",{className:"",children:N.hcParking?"HC-parkering i n\xe6rheten":null}),(0,s.jsx)("div",{className:"",children:N.hcToilet?"HC-toalett":null}),(0,s.jsx)("div",{className:"",children:N.hcWheelchair?"Mulig \xe5 komme rundt i lokalet/omr\xe5det med rullestol":null})]})})})]})]})]})}},86773:function(e,t,n){n.d(t,{Kd:function(){return c},MQ:function(){return u},nM:function(){return m},uO:function(){return i}});var s=n(30381),l=n.n(s),r=n(87066),o=n(26537);function a(e,t){let n=l()("".concat(e," ").concat(t),"YYYY-MM-DD HH:mm");return t<"04:00"&&n.add(1,"day"),n.toISOString()}function c(e){var t;let n=a(o.Ps,e.formContent.startTime),s=a(o.Ps,e.formContent.endTime),r={
1start_time:l()(n).unix(),end_time:l()(s).unix(),externalId:e.objectId,name:e.formContent.overskrift||"",description:e.formContent.description||"",externalVenueId:null,externalVenueName:e.formContent.eventAddress||"",start_time_iso:n,end_time_iso:s,published:!0,imagekitRef:e.formContent.promopic?e.formContent.promopic:{},imageUrl:(null===(t=e.formContent.promopic)||void 0===t?void 0:t.url)||"https://img.broadcastapp.no/uploads/oslokulturnatt/okn-logo-default_cIIwjswfL.jpg",isMainSchedule:!0,youTube:"",tags:e.formContent.category?[e.formContent.category]:[],locked:!1,socialLinks:[],custom_fields:{},lastSynced:l()().toISOString()};return["arrang\xf8r","link","age","numberOfVisitors","hcParking","hcEntrance","hcToilet","hcWheelchair","directions"].forEach(t=>{e.formContent[t]&&(r.custom_fields[t]=e.formContent[t])}),r}async function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=n?{publishedContent:{},showPublished:!1}:{publishedContent:c(e,o.Ps),showPublished:!0,markUnread:!1},l={formId:e.objectId,content:s};try{(await r.Z.post("/api/updateForm",l)).data.success?(await t(),console.log("Event updated successfully")):console.log("Failed to update the event")}catch(e){throw console.log("Error updating the folder:",e),e}}async function d(e,t){var n,s,l,a;let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];console.log("syncToApp");let d=c(e);i&&(d.published=!1),d.relatedEvent={__type:"Pointer",className:"events",objectId:o.lW},delete d.lastSynced,delete d.externalId,d.externalRef=e.objectId;let m="";m="".concat(m," **Arrang\xf8r**: ").concat(null===(n=d.custom_fields)||void 0===n?void 0:n.arrangør," \n"),m="".concat(m," ").concat(null===(s=d.custom_fields)||void 0===s?void 0:s.age," \n"),m="".concat(m," ").concat(d.externalVenueName," \n\n"),(null===(l=d.custom_fields)||void 0===l?void 0:l.directions)&&(m="".concat(m," **Kollektivtransport**: ").concat(null===(a=d.custom_fields)||void 0===a?void 0:a.directions," \n")),(d.custom_fields.hcEntrance||d.custom_fields.hcParking||d.custom_fields.hcToilet||d.custom_fields.hcWheelchair)&&(m="".concat(m," \n**Fasiliteter:** \n"),d.custom_fields.hcEntrance&&(m="".concat(m," - Hovedinngangen uten trinn og h\xf8ye terskler \n")),d.custom_fields.hcParking&&(m="".concat(m," - HC-parkering i n\xe6rheten \n")),d.custom_fields.hcToilet&&(m="".concat(m," - HC-toalett \n")),d.custom_fields.hcWheelchair&&(m="".concat(m," - Mulig \xe5 komme rundt i lokalet/omr\xe5det med rullestol \n"))),d.description="".concat(d.description,"\n\n ").concat(m);let u={externalRef:e.objectId,content:d};try{(await r.Z.post("/api/updateScheduleItem",u)).data.success?console.log("App updated successfully"):console.log("Failed to update the app")}catch(e){throw console.log("Error updating the folder:",e),e}}async function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{await Promise.all([i(e,t,n),d(e,t,n)]),console.log("Both sync operations completed successfully")}catch(e){throw console.log("Error in syncing operations:",e),e}}async function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{await Promise.all([d(e,t,n)]),console.log("Both sync operations completed successfully")}catch(e){throw console.log("Error in syncing operations:",e),e}}}}]);
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.