1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9957],{13330:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/sok-event/[searchQuery]",function(){return r(14026)}])},14026:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>M});var t=r(16927),n=r(3576),i=r(62701),a=r(4902),o=r(37876),c=r(14232),l=r(89099),d=r.n(l),u=r(95062),h=r.n(u),p=r(35988),v=r(93072),m=r.n(v),g=r(77961),x=r(59961),f=r(70392),j=r(82435),y=r(91202),b=r(30736),R=r(25067),_=r(86729),w=r(48230),A=r.n(w),S=r(15202),k=r(31575),q=r(4254),N=r(54804),P=e=>{var s=e.event,r="/event/".concat((0,S.slugifyAndEncode)(s.title),"_").concat(s.id);return(0,o.jsx)(A(),{href:"/event/eventSlug",as:r,children:(0,o.jsxs)("article",{className:"event-search-card",children:[(0,o.jsx)(g.eB,{className:"event-search-card__image ".concat((0,k.getRandomColorClass)(s.uri)),children:(0,o.jsx)("div",{className:"event-search-card__image-inner",style:{backgroundImage:'url("'.concat((0,q.Q)(s.image.url,150),'")')}})}),(0,o.jsxs)(g.eB,{className:"event-search-card__details",children:[(0,o.jsx)(g.eB,{className:"event-search-card__title","data-cy":"card-title",children:(0,o.jsx)("h3",{className:"h4",children:s.title})}),(0,o.jsxs)(g.eB,{children:[(0,o.jsx)("p",{className:"event-search-card__label",children:s.externalLocationName||s.location.signature}),(0,o.jsxs)("p",{className:"event-search-card__label",children:[(0,o.jsx)("time",{children:(0,N.uX)(s.date)}),", kl."," ",(0,o.jsx)("time",{children:(0,N.XL)(s.startTime)}),s.endTime&&(0,o.jsxs)("span",{children:[" ","- ",(0,o.jsx)("time",{children:(0,N.XL)(s.endTime)})]})]})]}),(0,o.jsx)(g.eB,{}),(0,o.jsxs)(g.eB,{className:"event-search-card__abstract text-gray",children:[s.highlight&&(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:s.highlight.abstract}}),!s.highlight&&(0,o.jsx)("p",{children:s.ingress})]})]})]})})};function I(e){var s=e.items;return(0,o.jsx)("section",{className:"event-search-results",children:(0,o.jsx)(g.eB,{children:(0,o.jsx)("ul",{children:s.map((e,s)=>(0,o.jsx)(P,{event:e},"eventsearchcard-".concat(s)))})})})}P.propTypes={agent:h().object.isRequired},I.propTypes={headline:h().string,items:h().arrayOf(h().object),noHits:h().bool,showCount:h().bool,totalCount:h().number,featured:h().bool,hideDateBadge:h().bool,collapseHandler:h().func,collapseLabel:h().string};var B=r(66112),Q=e=>{var s=d().pathname,r=d().asPath,t=(0,i._)((0,n._)({},e),{page:parseInt(e.page||1,10)+1});delete t.searchQuery,d().replace({pathname:void 0===s?"/":s,query:t},{pathname:(void 0===r?"/":r).split("?")[0],query:t},{scroll:!1})};class C extends c.Component{static getInitialProps(e){return(0,t._)(function(){var s;return(0,a.YH)(this,function(r){return[2,{query:void 0===(s=e.query)?{}:s,isServer:!!e.req}]})})()}componentDidMount(){var e=this.props,s=e.query,r=e.currentQuery,t=e.overlayVisible,n=e.searchApi,i=s.searchQuery;if(this.props.showSearchField(),this.props.unfreezeBody(),t&&this.props.hideSearchOverlay(),r!==i||null===n.lastFetch){var a=parseInt(s.page||1,10)+1;this.props.search(a,s),this.props.searchMediaAndPerson({searchQuery:i}),this.props.searchInfo(s),this.props.searchReview(s)}}componentDidUpdate(e){var s=this.props.query;s!==e.query&&(this.props.search(parseInt(s.page||1,10)+1,s),s.searchQuery!==e.query.searchQuery&&(this.props.searchMediaAndPerson({searchQuery:s.searchQuery}),this.props.searchInfo(s),this.props.searchReview(s)))}render(){var e=this.props,s=(e.isServer,e.query),r=e.query,t=(void 0===r?{}:r).searchQuery,n=e.agentResults,i=e.searchApi,a=e.agentSearchApi,l=e.eventsApi,d=e.numResultsMedia,u=e.infoSearchApi,h=e.infoResults,p=e.reviewSearchApi,v=e.reviewResults,m=this.props.events,x=m.allEvents,f=void 0===x?[]:x,j=m.results,w=j.total,A=(0,y.Co)(f);return(0,o.jsxs)(c.Fragment,{children:[(0,o.jsx)(b.A,{title:"".concat(t||"S\xf8k"," - deichman.no")}),(0,o.jsx)(R.A,{target:"#results",text:"Hopp til resultater"}),(0,o.jsx)(_.A,{query:t,isSearchingMedia:i.inProgress,numResultsMedia:d,isSearchingEvent:l.inProgress,numResultsEvent:w,isSearchingPerson:a.inProgress,numResultsPerson:n.totalHits,isSearchingInfo:u.inProgress,numResultsInfo:h.totalHits,isSearchingReview:p.inProgress,numResultsReview:v.totalHits}),(0,o.jsx)(B.A,{type:"events",results:j,hideSearch:!0}),(0,o.jsxs)(g.mc,{children:[(0,o.jsx)("div",{id:"results","data-cy":"event-search-results",children:A.map((e,s)=>(0,o.jsx)(g.eB,{children:(0,o.jsx)(I,{items:e.items,hideDateBadge:!0})},e.headline))}),w>f.length&&(0,o.jsx)(g.eB,{top:8,bottom:8,responsive:!0,children:(0,o.jsx)(g.x0,{text:"Se flere",onClick:()=>Q(s)})}),0===w&&(0,o.jsx)(g.eB,{className:"search-results__no-hits",children:(0,o.jsx)(g.eB,{top:8,children:(0,o.jsxs)("h4",{children:["0 treff p\xe5 \xab",t,"\xbb i arrangement"]})})})]})]})}constructor(e){super(e),this.state={},m()(this)}}C.propTypes={results:h().object.isRequired,isServer:h().bool.isRequired,query:h().object.isRequired,currentQuery:h().string.isRequired,unfreezeBody:h().func.isRequired,hideSearchOverlay:h().func.isRequired,overlayVisible:h().bool.isRequired,searchApi:h().object.isRequired,showSearchField:h().func.isRequired,search:h().func.isRequired};let M=(0,p.Ng)(function(e){var s=e.events,r=e.eventsApi,t=e.search,n=t.currentQuery,i=t.results,a=t.overlayVisible,o=t.searchApi,c=t.agentResults,l=t.agentSearchApi,d=t.infoSearchApi,u=t.infoResults,h=t.reviewSearchApi,p=t.reviewResults;return{overlayVisible:a,currentQuery:n,numResultsMedia:i.totalHits,searchApi:o,agentResults:c,agentSearchApi:l,events:s.events,eventsApi:void 0===r?{}:r,infoSearchApi:d,infoResults:u,reviewSearchApi:h,reviewResults:p}},function(e){return{search:(s,r)=>e((0,f.kQ)(s,null,null,r)),searchMediaAndPerson:s=>
1e((0,x.$P)(s)),searchInfo:s=>e((0,x.lm)(1,null,s)),searchReview:s=>e((0,x.Vy)(1,null,s)),unfreezeBody:()=>e((0,j.hI)()),showSearchField:()=>e((0,x.Wg)()),hideSearchOverlay:()=>e((0,x.BF)())}})(C)},25067:(e,s,r)=>{"use strict";r.d(s,{A:()=>l});var t=r(37876),n=r(14232),i=r(98477),a=r(95062),o=r.n(a);class c extends n.Component{componentDidMount(){this.element=document.getElementById("header-portal-root"),this.forceUpdate()}render(){return void 0===this.element?null:i.createPortal((0,t.jsx)("a",{className:"sr sr--focusable",href:this.props.target,children:this.props.text}),this.element)}}c.propTypes={target:o().string.isRequired,text:o().string.isRequired};let l=c},30736:(e,s,r)=>{"use strict";r.d(s,{A:()=>d});var t=r(37876);r(14232);var n=r(77328),i=r.n(n),a=r(95062),o=r.n(a),c=r(60643),l=e=>{var s=e.title,r=void 0===s?"deichman.no":s,n=e.description,a=void 0===n?"Velkommen til Deichman - Oslo kommunes bibliotek og Norges st\xf8rste folkebibliotek. Vi holder Oslo v\xe5ken!":n,o=e.ogimage,l=e.ogtype,d=e.ogurl,u=e.isHiddenPage,h=e.needsRefresh;(0,c.r)();var p="deichman.test";return p=new URL(window.location).hostname,(0,t.jsxs)(i(),{className:"header",children:[(0,t.jsx)("meta",{charSet:"utf-8"}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"}),(0,t.jsx)("meta",{name:"robots",content:"noarchive"}),(0,t.jsx)("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),(0,t.jsx)("meta",{name:"apple-mobile-web-app-status-bar-style",content:"default"}),(0,t.jsx)("meta",{name:"theme-color",content:"#000"}),(0,t.jsx)("title",{children:r}),(0,t.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,t.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/favicons/icon-152x152.png"}),(0,t.jsx)("link",{rel:"apple-touch-icon",sizes:"192x192",href:"/favicons/icon-192x192.png"}),(0,t.jsx)("link",{rel:"apple-touch-icon",sizes:"512x512",href:"/favicons/icon-512x512.png"}),(0,t.jsx)("meta",{property:"og:title",content:r}),(0,t.jsx)("meta",{property:"og:description",content:a}),(0,t.jsx)("meta",{property:"og:type",content:void 0===l?"website":l}),(0,t.jsx)("meta",{property:"og:url",content:void 0===d?"https://deichman.no/":d}),(0,t.jsx)("meta",{property:"og:image",content:void 0===o?"https://deichman.no/favicons/icon-512x512.png":o}),(0,t.jsx)("meta",{name:"description",content:a}),void 0!==u&&u&&(0,t.jsx)("meta",{name:"robots",content:"noindex"}),void 0!==h&&h&&(0,t.jsx)("meta",{"http-equiv":"refresh",content:"5"}),(0,t.jsx)("script",{id:"plausible-src",defer:!0,"data-domain":p,src:"/tracking.js"}),(0,t.jsx)("script",{id:"plausible-func",dangerouslySetInnerHTML:{__html:"\n window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }\n "}})]})};l.propTypes={title:o().string,description:o().string,ogimage:o().string,ogtype:o().string,ogurl:o().string,isHiddenPage:o().bool,needsRefresh:o().bool};let d=l},31575:e=>{"use strict";var s=e=>{for(var s=0,r=0;r<e.length;r++)s+=e.charCodeAt(r);return s};e.exports={getRandomColorClass:e=>{if(!e||""===e)return"col-ok-1";var r=s(e);return"col-ok-".concat(r%6+1)},simpleHash:s}},54925:(e,s,r)=>{"use strict";r.d(s,{A:()=>m});var t=r(37876);r(14232);var n=r(95062),i=r.n(n),a=r(15039),o=r.n(a),c=r(48230),l=r.n(c),d=r(89099),u=r(77961),h=r(40412),p=r(5441),v=e=>{var s,r,n=e.items,i=e.dark,a=e.header,c=void 0===a?"":a,p=e.activeItem,v=void 0===p?"":p,m=e.showLogOut,g=e.session,x=(0,d.useRouter)(),f=o()({"sub-nav":!0,"sub-nav--dark":void 0!==i&&i});return(0,t.jsxs)("div",{className:f,children:[c&&(0,t.jsx)(u.mc,{children:(0,t.jsx)("h2",{className:"sub-nav__header",children:c})}),(0,t.jsx)(u.mc,{children:(0,t.jsxs)("div",{className:"sub-nav__inner",children:[(0,t.jsx)("div",{children:!(null!=(r=null==(s=g.user())?void 0:s.invalidProfile())&&r)&&(0,t.jsx)(t.Fragment,{children:n.map(e=>{var s=o()({"sub-nav__item":!0,"sub-nav__item--active":x.pathname===e.url||v===e.url});return e.disabled?(0,t.jsx)("span",{className:s,children:e.text},e.url):(0,t.jsx)(l(),{href:e.url,as:e.as?e.as:e.url,className:s,children:e.text},e.url)})})}),void 0!==m&&m&&(0,t.jsx)("div",{className:"sub-nav__desktop-only, sub-nav__item",children:(0,t.jsx)(h.A,{})})]})})]})};v.propTypes={items:i().array.isRequired,header:i().string,dark:i().bool,activeItem:i().string,
1showLogOut:i().bool};let m=(0,p.fQ)(v)},66112:(e,s,r)=>{"use strict";r.d(s,{A:()=>p});var t=r(20294),n=r(37876),i=r(14232),a=r(95062),o=r.n(a),c=r(38329),l=r(41519),d=r(96344),u=r(77961),h=e=>{var s=e.type,r=void 0===s?void 0:s,a=e.results,o=e.showCount,h=e.includeYearFilter,p=e.hideSearch,v=(0,t._)((0,i.useState)(!1),2),m=v[0],g=v[1];return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(c.A,{type:r,results:void 0===a?{}:a,showAll:m,onShowAll:()=>g(!m),showCount:void 0===o||o,includeYearFilter:void 0!==h&&h,hideSearch:void 0!==p&&p}),m&&"events"!==r&&"services"!==r&&"person"!==r&&(0,n.jsx)(u.mc,{id:"extraFilters",children:(0,n.jsx)(l.A,{type:r})}),(0,n.jsx)(u.mc,{className:"active-filters-container",children:(0,n.jsx)(u.eB,{top:5,children:(0,n.jsx)(d.A,{type:r})})})]})};h.propTypes={type:o().string,results:o().object,showCount:o().bool,includeYearFilter:o().bool,hideSearch:o().bool};let p=h},77328:(e,s,r)=>{e.exports=r(89836)},86729:(e,s,r)=>{"use strict";r.d(s,{A:()=>c});var t=r(37876);r(14232);var n=r(95062),i=r.n(n),a=r(54925),o=e=>{var s=e.query,r=e.isSearchingMedia,n=e.numResultsMedia,i=e.isSearchingEvent,o=e.numResultsEvent,c=e.isSearchingPerson,l=e.numResultsPerson,d=e.isSearchingInfo,u=e.numResultsInfo,h=e.isSearchingReview,p=e.numResultsReview;return(0,t.jsx)(a.A,{items:[{text:r?"Medier (...)":"Medier (".concat(void 0===n?"...":n,")"),url:"/sok/[searchQuery]",as:"/sok/".concat(s)},{text:d?"Nettsiden (...)":"Nettside (".concat(void 0===u?"...":u,")"),url:"/sok-info/[searchQuery]",as:"/sok-info/".concat(s)},{text:i?"Arrangement (...)":"Arrangement (".concat(void 0===o?"...":o,")"),url:"/sok-event/[searchQuery]",as:"/sok-event/".concat(s)},{text:c?"Person (...)":"Person (".concat(void 0===l?"...":l,")"),url:"/sok-person/[searchQuery]",as:"/sok-person/".concat(s)},{text:h?"Anbefalinger (...)":"Anbefalinger (".concat(void 0===p?"...":p,")"),url:"/sok-anbefaling/[searchQuery]",as:"/sok-anbefaling/".concat(s)}]})};o.propTypes={query:i().string.isRequired,isSearchingMedia:i().bool.isRequired,numResultsMedia:i().number,isSearchingEvent:i().bool.isRequired,numResultsEvent:i().number,isSearchingPerson:i().bool.isRequired,numResultsPerson:i().number,isSearchingInfo:i().bool.isRequired,numResultsInfo:i().number};let c=o},91202:(e,s,r)=>{"use strict";r.d(s,{CD:()=>d,PZ:()=>l,Co:()=>c});var t=r(75705),n=r(53266),i=r(99922),a=r(10271),o=r(54804);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=new Date;return e.reduce((e,r)=>{var c=(0,o.K7)(r.date),l=function(e,s){(0,i.A)(2,arguments);var r=(0,n.A)(e),a=(0,n.A)(s);return Math.round((r.getTime()-(0,t.A)(r)-(a.getTime()-(0,t.A)(a)))/864e5)}((0,a.A)(c),s),d=e.find(e=>e.diff===l);return d?d.items.push(r):e.push({diff:l,isToday:0===l,headline:l<1?"I dag":(0,o.uX)(c),items:[r]}),e},[]).sort((e,s)=>e.diff-s.diff)}function l(){for(var e,s,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0;n<t.length;n++){var i=t[n].rooms.find(e=>e.id===r.id);if(i){e=t[n].name,s=i.displayName;break}}return e?"".concat(s," (").concat(e,")"):""}function d(e){if(e&&e.id)return"https://use.mazemap.com/#v=1&campusid=363&config=deichman&zoom=19&sharepoitype=identifier&sharepoi=".concat(e.id)}}},e=>{var s=s=>e(e.s=s);e.O(0,[7230,8042,608,636,6593,8792],()=>s(13330)),_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.