"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9882],{29543:function(e,t,n){n.d(t,{H:function(){return l},d:function(){return o}});var r=n(35351),i=n(12321);let o=e=>{let{withoutPaddingXBellow:t,...n}=e;return(0,r.jsx)(i.W20,{maxW:"container.lg",alignSelf:"center",paddingX:{base:0,[null!=t?t:"base"]:"0.75rem"},...n})},l=e=>(0,r.jsx)(i.W20,{maxW:{base:"container.lg",xl:"container.xl"},paddingX:{base:".75rem",xl:"1.25rem"},...e})},15051:function(e,t,n){n.d(t,{Y:function(){return c}});var r=n(35351),i=n(12321),o=n(57152),l=n(14007),a=n(3518),u=n(93717);let c=e=>{let{sites:t,...n}=e,{ts:c}=(0,a.$)();if(!(null==t?void 0:t.length))return null;let s=(0,o.fR)(t,e=>{var t;return null!==(t=c(e.name))&&void 0!==t?t:"N/A"});return(0,r.jsx)(i.rjZ,{as:"ul",gridTemplateColumns:{base:"1fr",md:"1fr 1fr"},gap:"1rem 4rem",listStyleType:"none",...n,children:s.map(e=>{var t;return(0,r.jsx)(i.xuv,{as:"li",children:(0,r.jsxs)(i.Ugi,{as:"a",width:"fit-content",minHeight:"3.5rem",padding:".5rem .75rem",borderRadius:"0.25rem",transition:"background 0.15s ease",href:(0,l.$2)(e),textDecoration:"none",justifyContent:"flex-start",alignItems:"center",gap:".75rem",_hover:{background:o.O9.grey05,textDecoration:"underline"},children:[(0,r.jsx)(u.x,{boxShadow:"none",borderRadius:"none",image:null===(t=e.municipality)||void 0===t?void 0:t.coatOfArms,resolution:200,width:"1.9rem",alt:""}),(0,r.jsx)(i.X6q,{fontWeight:"400",as:"h3",fontSize:"md",children:c(e.name)})]})},e._id)})})}},41207:function(e,t,n){n.d(t,{y:function(){return s}});var r=n(35351),i=n(12321),o=n(14007),l=n(9804),a=n.n(l),u=n(3518),c=n(68990);let s=e=>{let t=d(e);return t?(0,r.jsx)(i.xuv,{sx:{img:{transition:"filter 0.075s"}},children:(0,r.jsx)(a(),{unoptimized:o.im,...t})}):(0,r.jsx)(p,{aspectRatio:"number"!=typeof e.aspectRatio?(0,c.u)(e.image).aspectRatio:e.aspectRatio})},d=e=>{var t,n,r,i,l,a,s,d,p,h,v,g,m,b,x;let{ts:y}=(0,u.$)(),w=f(e.image)&&(null===(t=e.image.altText)||void 0===t?void 0:t.enabled)&&y(null===(n=e.image.altText)||void 0===n?void 0:n.text)||"",j=(null===(l=e.image)||void 0===l?void 0:null===(i=l.asset)||void 0===i?void 0:null===(r=i._ref)||void 0===r?void 0:r.endsWith("-svg"))?{src:null!==(d=null===(a=(0,o.aF)(e.image))||void 0===a?void 0:a.url())&&void 0!==d?d:"",placeholder:"empty",style:{transform:"scale(0.9)"},objectFit:"contain"}:{},k={alt:w,placeholder:"blur",...e.customNextImageProps,...j},R=null===(s=(0,o.aF)(e.image))||void 0===s?void 0:s.quality(null!==(p=e.quality)&&void 0!==p?p:85).format("webp");if("fill"===e.aspectRatio){let t=null==R?void 0:R.width(e.resolution).url(),n=null==R?void 0:R.width(10).url();if(!t)return;let r={x:Math.round((null!==(b=null===(v=e.image)||void 0===v?void 0:null===(h=v.hotspot)||void 0===h?void 0:h.x)&&void 0!==b?b:.5)*100),y:Math.round((null!==(x=null===(m=e.image)||void 0===m?void 0:null===(g=m.hotspot)||void 0===g?void 0:g.y)&&void 0!==x?x:.5)*100)};return{src:t,blurDataURL:n,layout:"fill",objectFit:"cover",objectPosition:"".concat(r.x,"% ").concat(r.y,"%"),...k}}if("original"===e.aspectRatio){let{width:t,height:n}=(0,c.u)(e.image),r=null==R?void 0:R.width(e.resolution).url(),i=null==R?void 0:R.width(10).url();if(!r)return;return{src:r,blurDataURL:i,width:t,height:n,...k}}let P=e.resolution,C=Math.round(P/e.aspectRatio),S=null==R?void 0:R.size(P,C).url(),_=null==R?void 0:R.size(10,Math.round(10/e.aspectRatio)).url();if(S)return{width:P,height:C,src:S,blurDataURL:_,...k}},f=e=>(null==e?void 0:e._type)==="imageWithMetadata",p=e=>(0,r.jsx)(i.xuv,{width:"100%",background:"linear-gradient(-35deg, ".concat(i.O9T.grey15,", ").concat(i.O9T.grey05,")"),aspectRatio:e.aspectRatio})},93717:function(e,t,n){n.d(t,{x:function(){return a}});var r=n(35351),i=n(12321),o=n(3518),l=n(41207);function a(e){let{image:t,resolution:n,boxShadow:a="md",alt:u,customNextImageProps:c,hideCaption:s,...d}=e,{t:f}=(0,o.$)();return(null==t?void 0:t.asset)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.xuv,{lineHeight:0,borderRadius:"0.5em",boxShadow:a,position:"relative",overflow:"hidden",...d,children:(0,r.jsx)(l.y,{image:t,resolution:n,aspectRatio:"original",customNextImageProps:{alt:u,...c}})}),t.creator&&!s&&(0,r.jsx)(i.xuv,{fontStyle:"italic",marginTop:"0.1rem",fontSize:"sm",opacity:.8,position:"absolute",top:"100%",left:"50%;",transform:"translateX(-50%)",whiteSpace:"nowrap",children:f("Foto: {opphavsPerson}",{opphavsPerson:t.creator})})]}):null}},68990:function(e,t,n){n.d(t,{u:function(){return l}});var r=n(59983);let i={width:1,height:1,aspectRatio:1},o=e=>{var t;return"object"==typeof e&&(null===(t=e.crop)||void 0===t?void 0:t._type)==="sanity.imageCrop"&&(!!e.crop.bottom||!!e.crop.left||!!e.crop.right||!!e.crop.top)};function l(e){if(!e)return i;try{let{width:n,height:i,aspectRatio:l}=(0,r.pz)(e);if(o(e)){var t;let{left:r=0,right:o=0,bottom:l=0,top:a=0}=null!==(t=e.crop)&&void 0!==t?t:{},u=n*(1-r-o),c=i*(1-a-l);return{width:Math.round(u),height:Math.round(c),aspectRatio:u/c}}return{width:n,height:i,aspectRatio:l}}catch(e){return console.error(e),i}}},37943:function(e,t,n){n.d(t,{C:function(){return a}});var r=n(35351),i=n(71805),o=n(12321),l=n(29543);let a=()=>(0,r.jsx)(o.xuv,{as:"footer",padding:"4rem 1rem 3rem",fontSize:"xs",background:"gray.100",children:(0,r.jsx)(l.H,{children:(0,r.jsxs)(o.kCb,{justifyContent:"space-between",alignItems:"flex-end",flexWrap:"wrap",gap:"1rem",children:[(0,r.jsxs)(o.xuv,{children:[(0,r.jsxs)(o.xvT,{children:[(0,r.jsx)("b",{children:"Libry Content"})," er utviklet av ",(0,r.jsx)(o.rUS,{href:"https://www.bibsent.no",children:"Biblioteksentralen"})]}),(0,r.jsx)(o.xvT,{children:"Biblioteksentralen SA, Pb. 24 Alnabru, 0614 OSLO | Org.nr: 910 568 183"})]}),(0,r.jsx)(o.rUS,{href:"https://www.bibsent.no",_hover:{color:"#555"},children:(0,r.jsx)(i.Vv,{"aria-label":"Biblioteksentralen",height:"2.5em"})})]})})})},3518:function(e,t,n){n.d(t,{$:function(){return l}});var r=n(70851),i=n(38286),o=n(38859);let l=()=>{let e=(0,i.useTranslations)(),t=(0,i.useLocale)(),n=(0,r.lD)(t),l=(0,o.useCallback)(e=>(0,r.tc)(e,n),[n]),a=(0,o.useCallback)(e=>(0,r.FI)(e,n),[n]),u=(0,o.useCallback)(e=>{if(!e)return{};let t=a(e);return t===n?{}:{lang:t}},[n,a]);return{t:(0,o.useCallback)(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e(t.replace(/\./g,""),...r)},[e]),lang:n,ts:l,getContentLang:a,populateLang:u}}},19103:function(e,t,n){Object.defineProperty(t,"$",{enumerable:!0,get:function(){return i}});let r=n(5071);function i(e){let{createServerReference:t}=n(14578);return t(e,r.callServer)}},59888:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(38859),i=n(13715),o="function"==typeof IntersectionObserver,l=new Map,a=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!o,[s,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(c||s)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},a.push(n),l.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),l.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!s){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,n,t,s,f.current]),[p,s,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92320:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=n(56768);function i(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},64996:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return o}});let r=n(35351),i=n(39526);function o(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,i.getExpectedRequestStore)("next/dynamic css"),o=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));o.push(...t)}}return 0===o.length?null:(0,r.jsx)(r.Fragment,{children:o.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},31157:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var r=n(20929);n(5071);var i=(0,n(19103).$)("b6ce064bc783773230bbcfe6064661c4dd831956"),o=n(38859);function l(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n<t);return r||t>-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function a(e,t){if(!function(e,t){if("string"!=typeof e)return!1;let{pathname:n}=l(e);return n===t||n.startsWith("".concat(t,"/"))}(e,t))return e;let n=e.slice(t.length);return n.startsWith("/")?n:"/".concat(n)}let u=(e,t)=>{let{pathname:n,query:r,hash:i}=l(e);return t?n.endsWith("/")?"".concat(n).concat(r).concat(i):"".concat(n,"/").concat(r).concat(i):"".concat(n.replace(/\/$/,"")||"/").concat(r).concat(i)};function c(e){let{refresh:t,zIndex:c,basePath:s="",trailingSlash:d=!1}=e,f=(0,r.useRouter)(),p=(0,o.useRef)(f),[h,v]=(0,o.useState)();(0,o.useEffect)(()=>{p.current=f},[f]),(0,o.useEffect)(()=>{let e=function(e={}){let t=new AbortController;return Promise.all([n.e(8451),n.e(9464)]).then(n.bind(n,89550)).then(({renderVisualEditing:n})=>{let{signal:r}=t;r.aborted||n(r,e)}),()=>{t.abort()}}({zIndex:c,refresh:t||(e=>{switch(e.source){case"manual":return e.livePreviewEnabled?r():o();case"mutation":return e.livePreviewEnabled?l():u();default:throw Error("Unknown refresh source",{cause:e})}}),history:{subscribe:e=>(v(()=>e),()=>v(void 0)),update:e=>{switch(e.type){case"push":return p.current.push(a(e.url,s));case"pop":return p.current.back();case"replace":return p.current.replace(a(e.url,s));default:throw Error("Unknown update type: ".concat(e.type))}}}}),r=()=>(console.debug("Live preview is setup, calling router.refresh() to refresh the server components without refetching cached data"),p.current.refresh(),Promise.resolve()),o=()=>(console.debug("No loaders in live mode detected, or preview kit setup, revalidating root layout"),i()),l=()=>(console.debug("Live preview is setup, mutation is skipped assuming its handled by the live preview"),!1),u=()=>(console.debug("No loaders in live mode detected, or preview kit setup, revalidating root layout"),i());return()=>e()},[s,t,c]);let g=(0,r.usePathname)(),m=(0,r.useSearchParams)();return(0,o.useEffect)(()=>{h&&h({type:"push",url:u(function(e,t){if(!e.startsWith("/")||!t)return e;if("/"===e&&t)return t;let{pathname:n,query:r,hash:i}=l(e);return"".concat(t).concat(n).concat(r).concat(i)}("".concat(g).concat(null!=m&&m.size?"?".concat(m):""),s),d)})},[s,h,g,m,d]),null}}}]);
//# sourceMappingURL=9882-9d5914992052603f.js.map