1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4150],{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:()=>u});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,u=e.ogurl,d=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===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}},37092:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/sok-person/[searchQuery]",function(){return r(41212)}])},41212:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>O});var t=r(16927),n=r(3576),i=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),v=r(93072),m=r.n(v),g=r(77961),x=r(59961),y=r(70392),j=r(82435),b=r(30736),f=r(25067),R=r(86729),_=r(15039),q=r.n(_),w=r(92186),k=e=>{var s=e.searchQuery;return(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",s,"\xbb i person- og organisasjons\xf8k"]})})})};k.propTypes={searchQuery:h().string.isRequired};var S=r(48230),A=r.n(S),N=r(15202),P=r(31575),Q=r(4254),I=e=>{var s=e.type.toUpperCase();return e.birthYear&&e.deathYear?s="".concat(s," (").concat(e.birthYear,"-").concat(e.deathYear,")"):e.birthYear?s="".concat(s," (f. ").concat(e.birthYear,")"):e.deathYear&&(s="".concat(s," (d. ").concat(e.deathYear,")")),s},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length<=3?e.join(", "):"".concat(e.slice(0,3).join(", ")," (+").concat(e.length-3,")")},B=e=>e.hasImage?(0,o.jsx)("div",{className:"agent-card__image",style:{backgroundImage:"url(".concat((0,Q.Q)(e.hasImage),")")}}):(0,o.jsx)(g.eB,{className:"agent-card__image ".concat((0,P.getRandomColorClass)(e.uri)),children:(0,o.jsx)("div",{className:"agent-card__image-inner",style:{backgroundImage:'url("/icons/placeholders/person.svg")'}})}),M=e=>{var s=e.agent,r="/".concat(s.type,"/").concat(s.type,"Slug"),t="/".concat(s.type,"/").concat((0,N.slugifyAndEncode)(s.name),"_").concat(s.id);return(0,o.jsx)(A(),{href:r,as:t,children:(0,o.jsxs)("article",{className:"agent-card",children:[B(s),(0,o.jsxs)(g.eB,{className:"agent-card__details",children:[(0,o.jsx)(g.eB,{children:(0,o.jsx)("p",{className:"agent-card__label",children:I(s)})}),(0,o.jsx)(g.eB,{className:"agent-card__title","data-cy":"card-title",children:(0,o.jsx)("h3",{className:"h4",children:s.name})}),(0,o.jsx)(g.eB,{className:"agent-card__roles",children:E(s.roles)}),s.abstract&&(0,o.jsx)(g.eB,{className:"agent-card__abstract",children:s.abstract})]})]})})};M.propTypes={agent:h().object.isRequired};var T=e=>{var s=e.initialRender,r=e.searchQuery,t=void 0===r?"":r,n=e.results,i=e.isSearching,a=void 0!==i&&i,c=e.error,l=(void 0===n?{}:n).hits,u=void 0===l?[]:l,d=u.length<1&&!a,h=q()({"agent-search-results":!0,"agent-search-results--empty":""===t,"agent-search-results--no-hits":d});return a&&0===u.length||s?(0,o.jsx)(g.aH,{}):d?(0,o.jsx)(k,{searchQuery:t}):null!==(void 0!==c&&c)?(0,o.jsx)(w.A,{children:(0,o.jsx)("p",{children:"En feil har oppst\xe5tt"})}):(0,o.jsx)("section",{className:h,children:(0,o.jsx)(g.eB,{top:8,bottom:8,responsive:!0,children:u.map(e=>(0,o.jsx)(g.eB,{children:(0,o.jsx)(M,{agent:e})},e.id))})})};T.propTypes={query:h().object,initialRender:h().bool.isRequired,searchQuery:h().string,isSearching:h().bool,results:h().object,error:h().oneOfType([h().object,h().bool])};var C=e=>{var s=u().pathname,r=u().asPath,t=(0,i._)((0,n._)({},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 H 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;this.props.showSearchField(),this.props.unfreezeBody(),t&&this.props.hideSearchOverlay(),(r!==i||null===n.lastFetch)&&(this.props.searchEvents(1,s),this.props.searchMediaAndPerson({searchQuery:i,page:1}),this.props.searchInfo(s),this.props.searchReview(s))}componentDidUpdate(e){var s=this.props.query;s!==e.query&&(this.props.searchMediaAndPerson({searchQuery:s.searchQuery,page:s.page}),s.searchQuery!==e.query.searchQuery&&(this.props.searchEvents(1,s),this.props.searchInfo(s),this.props.searchReview(s)))}render(){var e=this.props,s=e.isServer,r=e.query,t=e.query,n=(void 0===t?{}:t).searchQuery,i=e.agentResults,a=e.searchApi,l=e.agentSearchApi,u=e.eventsApi,d=e.numResultsMedia,h=e.infoSearchApi,p=e.infoResults,v=e.reviewSearchApi,m=e.reviewResults,x=this.props.events.results.total;return(0,o.jsxs)(c.Fragment,{children:[(0,o.jsx)(b.A,{title:"".concat(n||"S\xf8k"," - deichman.no")}),(0,o.jsx)(f.A,{target:"#results",text:"Hopp til resultater"}),(0,o.jsx)(R.A,{query:n,isSearchingMedia:a.inProgress,numResultsMedia:d,isSearchingEvent:u.inProgress,numResultsEvent:x,isSearchingPerson:l.inProgress,numResultsPerson:i.totalHits,isSearchingInfo:h.inProgress,numResultsInfo:p.totalHits,isSearchingReview:v.inProgress,numResultsReview:m.totalHits}),(0,o.jsxs)(g.mc,{children:[(0,o.jsx)("div",{id:"results","data-cy":"event-search-results",children:(0,o.jsx)(T,{query:r,initialRender:s&&null===l.lastFetch,searchQuery:n,results:i,isSearching:l.inProgress,error:l.error})}),i.totalHits>(i.hits||[]).length&&(0,o.jsx)(g.eB,{top:8,bottom:8,responsive:!0,children:(0,o.jsx)(g.x0,{text:"Se flere",onClick:()=>C(r)})})]})]})}constructor(e){super(e),this.state={},m()(this)}}H.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 O=(0,p.Ng)(function(e){var s=e.events,r=e.search,t=r.currentQuery,n=r.results,i=r.overlayVisible,a=r.searchApi,o=r.agentResults,c=r.agentSearchApi,l=r.infoSearchApi,u=r.infoResults,d=r.reviewSearchApi,h=r.reviewResults;return{overlayVisible:i,currentQuery:t,numResultsMedia:n.totalHits,searchApi:a,agentResults:o,agentSearchApi:c,events:s.events,eventsApi:s.eventsApi,infoSearchApi:l,infoResults:u,reviewSearchApi:d,reviewResults:h}},function(e){return{searchEvents:(s,r)=>e((0,y.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)())}})(H)},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),u=r(89099),d=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,u.useRouter)(),y=o()({"sub-nav":!0,"sub-nav--dark":void 0!==i&&i});return(0,t.jsxs)("div",{className:y,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: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,showLogOut:i().bool};let m=(0,p.fQ)(v)},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,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===n?"...":n,")"),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: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},92186:(e,s,r)=>{"use strict";r.d(s,{A:()=>o});var t=r(37876);r(14232);var n=r(95062),i=r.n(n),a=e=>{var s=e.children;return(0,t.jsx)("section",{className:"full-screen",children:s})};a.propTypes={children:i().node.isRequired};let o=a}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(37092)),_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.