1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3617],{19878:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>q});var t=r(16927),i=r(3576),n=r(62701),a=r(4902),o=r(37876),c=r(14232),l=r(89099),u=r.n(l),d=r(95062),h=r.n(d),p=r(35988),m=r(93072),v=r.n(m),g=r(77961),b=r(59961),f=r(70392),x=r(82435),y=r(30736),j=r(25067),R=r(86729),_=r(32634),k=e=>{var s=u().pathname,r=u().asPath,t=(0,n._)((0,i._)({},e),{page:parseInt(e.page||1,10)+1});delete t.searchQuery,u().replace({pathname:void 0===s?"/":s,query:t},{pathname:(void 0===r?"/":r).split("?")[0],query:t},{scroll:!1})};class w 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,i=e.searchApi,n=s.searchQuery;if(this.props.showSearchField(),this.props.unfreezeBody(),t&&this.props.hideSearchOverlay(),r!==n||null===i.lastFetch){var a=parseInt(s.page||1,10)+1;this.props.search(a,s),this.props.searchEvents(1,s),this.props.searchMediaAndPerson({searchQuery:n}),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.searchEvents(1,s),this.props.searchReview(s))),s!==e.query&&(this.props.search(parseInt(s.page||1,10)+1,s),s.searchQuery!==e.query.searchQuery&&(this.props.searchMediaAndPerson({searchQuery:s.searchQuery,page:1}),this.props.searchEvents(1,s),this.props.searchReview(s)))}render(){var e=this.props,s=e.isServer,r=e.query,t=e.query,i=(void 0===t?{}:t).searchQuery,n=e.agentResults,a=e.searchApi,l=e.agentSearchApi,u=e.eventsApi,d=e.infoSearchApi,h=e.infoResults,p=e.numResultsMedia,m=e.numResultsEvent,v=e.reviewSearchApi,b=e.reviewResults,f=h.totalHits;return(0,o.jsxs)(c.Fragment,{children:[(0,o.jsx)(y.A,{title:"".concat(i||"S\xf8k"," - deichman.no")}),(0,o.jsx)(j.A,{target:"#results",text:"Hopp til resultater"}),(0,o.jsx)(R.A,{query:i,isSearchingMedia:a.inProgress,numResultsMedia:p,isSearchingEvent:u.inProgress,numResultsEvent:m,isSearchingPerson:l.inProgress,numResultsPerson:n.totalHits,isSearchingInfo:d.inProgress,numResultsInfo:h.totalHits,isSearchingReview:v.inProgress,numResultsReview:b.totalHits}),(0,o.jsxs)(g.mc,{children:[(0,o.jsx)("div",{id:"results","data-cy":"event-search-results",children:(0,o.jsx)(_.A,{query:r,initialRender:s&&null===d.lastFetch,searchQuery:i,results:h,isSearching:d.inProgress,error:d.error})}),h.totalHits>(h.hits||[]).length&&(0,o.jsx)(g.eB,{top:8,bottom:8,responsive:!0,children:(0,o.jsx)(g.x0,{text:"Se flere",onClick:()=>k(r)})}),0===f&&(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",i,"\xbb i nettsiden"]})})})]})]})}constructor(e){super(e),this.state={},v()(this)}}w.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 q=(0,p.Ng)(function(e){var s=e.events.eventsApi,r=void 0===s?{}:s,t=e.search,i=t.currentQuery,n=t.results,a=t.overlayVisible,o=t.searchApi,c=t.agentResults,l=t.agentSearchApi,u=t.infoResults,d=t.infoSearchApi,h=t.reviewSearchApi,p=t.reviewResults;return{overlayVisible:a,currentQuery:i,numResultsMedia:n.totalHits,searchApi:o,agentResults:c,agentSearchApi:l,numResultsEvent:r.total,eventsApi:r,infoSearchApi:d,infoResults:u,reviewSearchApi:h,reviewResults:p}},function(e){return{search:(s,r)=>e((0,b.lm)(s,null,r)),searchEvents:(s,r)=>e((0,f.kQ)(s,null,null,r)),searchReview:s=>e((0,b.Vy)(1,null,s)),searchMediaAndPerson:s=>e((0,b.$P)(s)),unfreezeBody:()=>e((0,x.hI)()),showSearchField:()=>e((0,b.Wg)()),hideSearchOverlay:()=>e((0,b.BF)())}})(w)},25067:(e,s,r)=>{"use strict";r.d(s,{A:()=>l});var t=r(37876),i=r(14232),n=r(98477),a=r(95062),o=r.n(a);class c extends i.Component{componentDidMount(){this.element=document.getElementById("header-portal-root"),this.forceUpdate()}render(){return void 0===this.element?null:n.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},28868:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/sok-info/[searchQuery]",function(){return r(19878)}])},30736:(e,s,r)=>{"use strict";r.d(s,{A:()=>u});var t=r(37876);r(14232);var i=r(77328),n=r.n(i),a=r(95062),o=r.n(a),c=r(60643),l=e=>{var s=e.title,r=void 0===s?"deichman.no":s,i=e.description,a=void 0===i?"Velkommen til Deichman - Oslo kommunes bibliotek og Norges st\xf8rste folkebibliotek. Vi holder Oslo v\xe5ken!":i,o=e.ogimage,l=e.ogtype,u=e.ogurl,d=e.isHiddenPage,h=e.needsRefresh;(0,c.r)();
1var p="deichman.test";return p=new URL(window.location).hostname,(0,t.jsxs)(n(),{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===u?"https://deichman.no/":u}),(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!==d&&d&&(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 u=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}},32634:(e,s,r)=>{"use strict";r.d(s,{A:()=>f});var t=r(37876),i=r(95062),n=r.n(i),a=r(77961);r(14232);var o=r(48230),c=r.n(o),l=r(15202),u=r(31575),d=r(4254),h=r(54804),p={"4JeXY1O7ED":"/kontakt-oss","19434f8a-f0e6-4257-bf09-5caf522c69ff":"/om-oss","58ad42c9-a6ef-461c-8744-2a12bb5135c0":"/event-og-konferanse","UdIE-zOoYj":"/bruk-biblioteket","bfcba8d6-7f46-4be0-8d8c-3e61eb00b33e":"/for-media","81b4233d-a7ae-4db3-8c22-fb161681e1ae":"/samarbeid-med-oss","9DIZ-yYQRc":"/personvern",YMJNiVQ8ie:"/utlansreglement",TQTtmVfIxY:"/historien","87e47dc3-1c2b-4392-b64b-4c235b8b6768":"/hvem-vi-er","19434f8a-f0e6-4257-bf09-5caf522c69ff":"/om-oss",iP5Q5Gb1Qi:"/in-english","10742992-23c8-40a4-8784-b582d75889ae":"/moterom-utleie","08b3b5e6-b23b-49f2-b9de-815a78a40552":"/moterom-gratis"},m={page:"aktuelt",service:"vi-tilbyr",library:"bibliotekene",recommendation:"utgivelse",publication_list:"liste"},v={page:"aktuelt",service:"tjeneste",info:"informasjon",news:"aktuelt",library:"bibliotek",literature:"lesetips",recommendation:"anbefaling",publication_list:"temal
1iste"},g=e=>{var s=e.item,r="/".concat(m[s.type],"/pageSlug"),i="recommendation"===s.type?"/utgivelse/".concat(s.targetPublication,"#").concat(s.id):"/".concat(m[s.type],"/").concat((0,l.slugifyAndEncode)(s.title).replace("deichman-","")).concat("library"===s.type?"":"_").concat(s.id),n=s.image;return(0,t.jsx)(c(),{href:r,as:p[s.id]?p[s.id]:i,children:(0,t.jsxs)("article",{className:"info-search-card",children:[(0,t.jsx)(a.eB,{className:"info-search-card__image ".concat((0,u.getRandomColorClass)(s.id)),children:(0,t.jsx)("div",{className:"info-search-card__image-inner",style:{backgroundImage:'url("'.concat((0,d.Q)((void 0===n?{}:n).url,150),'")')}})}),(0,t.jsxs)(a.eB,{className:"info-search-card__details",children:[(0,t.jsx)(a.eB,{children:(0,t.jsxs)("p",{className:"info-search-card__label",children:[v[s.subtype||s.type],"news"===s.subtype&&(0,t.jsx)("span",{className:"info-search-card__date",children:(0,h.C1)(s.created)})]})}),(0,t.jsx)(a.eB,{className:"info-search-card__title","data-cy":"card-title",children:(0,t.jsx)("h3",{className:"h4",children:s.title})}),(0,t.jsx)(a.eB,{}),(0,t.jsxs)(a.eB,{className:"info-search-card__abstract text-gray",children:[s.highlight&&(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:s.highlight.abstract}}),!s.highlight&&(0,t.jsx)("p",{children:s.ingress})]})]})]})})};function b(e){var s=e.results;return(0,t.jsx)("section",{className:"info-search-results",children:(0,t.jsx)(a.eB,{children:(0,t.jsx)("ul",{children:(s.hits||[]).map((e,s)=>(0,t.jsx)(g,{item:e},"infosearchcard-".concat(s)))})})})}g.propTypes={agent:n().object.isRequired},b.propTypes={headline:n().string,results:n().object,noHits:n().bool,showCount:n().bool,totalCount:n().number,featured:n().bool,collapseHandler:n().func,collapseLabel:n().string};let f=b},54925:(e,s,r)=>{"use strict";r.d(s,{A:()=>v});var t=r(37876);r(14232);var i=r(95062),n=r.n(i),a=r(15039),o=r.n(a),c=r(48230),l=r.n(c),u=r(89099),d=r(77961),h=r(40412),p=r(5441),m=e=>{var s,r,i=e.items,n=e.dark,a=e.header,c=void 0===a?"":a,p=e.activeItem,m=void 0===p?"":p,v=e.showLogOut,g=e.session,b=(0,u.useRouter)(),f=o()({"sub-nav":!0,"sub-nav--dark":void 0!==n&&n});return(0,t.jsxs)("div",{className:f,children:[c&&(0,t.jsx)(d.mc,{children:(0,t.jsx)("h2",{className:"sub-nav__header",children:c})}),(0,t.jsx)(d.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:i.map(e=>{var s=o()({"sub-nav__item":!0,"sub-nav__item--active":b.pathname===e.url||m===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!==v&&v&&(0,t.jsx)("div",{className:"sub-nav__desktop-only, sub-nav__item",children:(0,t.jsx)(h.A,{})})]})})]})};m.propTypes={items:n().array.isRequired,header:n().string,dark:n().bool,activeItem:n().string,showLogOut:n().bool};let v=(0,p.fQ)(m)},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 i=r(95062),n=r.n(i),a=r(54925),o=e=>{var s=e.query,r=e.isSearchingMedia,i=e.numResultsMedia,n=e.isSearchingEvent,o=e.numResultsEvent,c=e.isSearchingPerson,l=e.numResultsPerson,u=e.isSearchingInfo,d=e.numResultsInfo,h=e.isSearchingReview,p=e.numResultsReview;return(0,t.jsx)(a.A,{items:[{text:r?"Medier (...)":"Medier (".concat(void 0===i?"...":i,")"),url:"/sok/[searchQuery]",as:"/sok/".concat(s)},{text:u?"Nettsiden (...)":"Nettside (".concat(void 0===d?"...":d,")"),url:"/sok-info/[searchQuery]",as:"/sok-info/".concat(s)},{text:n?"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:n().string.isRequired,isSearchingMedia:n().bool.isRequired,numResultsMedia:n().number,isSearchingEvent:n().bool.isRequired,numResultsEvent:n().number,isSearchingPerson:n().bool.isRequired,numResultsPerson:n().number,isSearchingInfo:n().bool.isRequired,numResultsInfo:n().number};let c=o}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(28868)),_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.