PageSourceSearch

https://www.litteraturhuset.no/_next/static/chunks/0.m-~-g7p.dsq.js?dpl=dpl_6AjosWhEpP4ZKzEF3mCBpTHeoCXy

js litteraturhuset.no collected 2026-09-24 18:07:38 UTC 29,579 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,211146,e=>{"use strict";var t=e.i(350505),r=e.i(516902),n=e.i(291967),i=e.i(922353),s=e.i(9413),l=e.i(411207),a=e.i(285565),o=r.forwardRef((e,r)=>(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var[d,c]=(0,s.createContextScope)("Form"),u="Form",[m,h]=d(u),[p,f]=d(u),x=r.forwardRef((e,s)=>{let{__scopeForm:l,onClearServerErrors:o=()=>{},...d}=e,c=r.useRef(null),u=(0,i.useComposedRefs)(s,c),[h,f]=r.useState({}),x=r.useCallback(e=>h[e],[h]),g=r.useCallback((e,t)=>f(r=>({...r,[e]:{...r[e]??{},...t}})),[]),v=r.useCallback(e=>{f(t=>({...t,[e]:void 0})),I(t=>({...t,[e]:{}}))},[]),[y,b]=r.useState({}),j=r.useCallback(e=>y[e]??[],[y]),k=r.useCallback((e,t)=>{b(r=>({...r,[e]:[...r[e]??[],t]}))},[]),w=r.useCallback((e,t)=>{b(r=>({...r,[e]:(r[e]??[]).filter(e=>e.id!==t)}))},[]),[N,I]=r.useState({}),T=r.useCallback(e=>N[e]??{},[N]),C=r.useCallback((e,t)=>{I(r=>({...r,[e]:{...r[e]??{},...t}}))},[]),[_,E]=r.useState({}),S=r.useCallback((e,t)=>{E(r=>{let n=new Set(r[e]).add(t);return{...r,[e]:n}})},[]),M=r.useCallback((e,t)=>{E(r=>{let n=new Set(r[e]);return n.delete(t),{...r,[e]:n}})},[]),R=r.useCallback(e=>Array.from(_[e]??[]).join(" ")||void 0,[_]);return(0,t.jsx)(m,{scope:l,getFieldValidity:x,onFieldValidityChange:g,getFieldCustomMatcherEntries:j,onFieldCustomMatcherEntryAdd:k,onFieldCustomMatcherEntryRemove:w,getFieldCustomErrors:T,onFieldCustomErrorsChange:C,onFieldValiditionClear:v,children:(0,t.jsx)(p,{scope:l,onFieldMessageIdAdd:S,onFieldMessageIdRemove:M,getFieldDescription:R,children:(0,t.jsx)(a.Primitive.form,{...d,ref:u,onInvalid:(0,n.composeEventHandlers)(e.onInvalid,e=>{let t=P(e.currentTarget);t===e.target&&t.focus(),e.preventDefault()}),onSubmit:(0,n.composeEventHandlers)(e.onSubmit,o,{checkForDefaultPrevented:!1}),onReset:(0,n.composeEventHandlers)(e.onReset,o)})})})});x.displayName=u;var g="FormField",[v,y]=d(g),b=r.forwardRef((e,r)=>{let{__scopeForm:n,name:i,serverInvalid:s=!1,...o}=e,d=h(g,n).getFieldValidity(i),c=(0,l.useId)();return(0,t.jsx)(v,{scope:n,id:c,name:i,serverInvalid:s,children:(0,t.jsx)(a.Primitive.div,{"data-valid":D(d,s),"data-invalid":B(d,s),...o,ref:r})})});b.displayName=g;var j="FormLabel",k=r.forwardRef((e,r)=>{let{__scopeForm:n,...i}=e,s=h(j,n),l=y(j,n),a=i.htmlFor||l.id,d=s.getFieldValidity(l.name);return(0,t.jsx)(o,{"data-valid":D(d,l.serverInvalid),"data-invalid":B(d,l.serverInvalid),...i,ref:r,htmlFor:a})});k.displayName=j;var w="FormControl",N=r.forwardRef((e,s)=>{let{__scopeForm:l,...o}=e,d=h(w,l),c=y(w,l),u=f(w,l),m=r.useRef(null),p=(0,i.useComposedRefs)(s,m),x=o.name||c.name,g=o.id||c.id,v=d.getFieldCustomMatcherEntries(x),{onFieldValidityChange:b,onFieldCustomErrorsChange:j,onFieldValiditionClear:k}=d,N=r.useCallback(async e=>{if(A(e.validity))return void b(x,R(e.validity));let t=e.form?new FormData(e.form):new FormData,r=[e.value,t],n=[],i=[];v.forEach(e=>{var t,s,l;(t=e,s=r,"AsyncFunction"===t.match.constructor.name||(l=t.match,l(...s)instanceof Promise))?i.push(e):"Function"===e.match.constructor.name&&n.push(e)});let s=Object.fromEntries(n.map(({id:e,match:t})=>[e,t(...r)])),l=Object.values(s).some(Boolean);if(e.setCustomValidity(l?I:""),b(x,R(e.validity)),j(x,s),!l&&i.length>0){let t=i.map(({id:e,match:t})=>t(...r).then(t=>[e,t])),n=Object.fromEntries(await Promise.all(t)),s=Object.values(n).some(Boolean);e.setCustomValidity(s?I:""),b(x,R(e.validity)),j(x,n)}},[v,x,j,b]);r.useEffect(()=>{let e=m.current;if(e){let t=()=>N(e);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}},[N]);let T=r.useCallback(()=>{let e=m.current;e&&(e.setCustomValidity(""),k(x))},[x,k]);r.useEffect(()=>{let e=m.current?.form;if(e)return e.addEventListener("reset",T),()=>e.removeEventListener("reset",T)},[T]),r.useEffect(()=>{let e=m.current,t=e?.closest("form");if(t&&c.serverInvalid){let r=P(t);r===e&&r.focus()}},[c.serverInvalid]);let C=d.getFieldValidity(x);return(0,t.jsx)(a.Primitive.input,{"data-valid":D(C,c.serverInvalid),"data-invalid":B(C,c.serverInvalid),"aria-invalid":!!c.serverInvalid||void 0,"aria-describedby":u.getFieldDescription(x),title:"",...o,ref:p,id:g,name:x,onInvalid:(0,n.composeEventHandlers)(e.onInvalid,e=>{N(e.currentTarget)}),onChange:(0,n.composeEventHandlers)(e.onChange,e=>{T()})})});N.displayName=w;
1var I="This value is not valid",T={badInput:I,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},C="FormMessage";r.forwardRef((e,r)=>{let{match:n,name:i,...s}=e,l=y(C,e.__scopeForm),a=i??l.name;return void 0===n?(0,t.jsx)(S,{...s,ref:r,name:a,children:e.children||I}):"function"==typeof n?(0,t.jsx)(E,{match:n,...s,ref:r,name:a}):(0,t.jsx)(_,{match:n,...s,ref:r,name:a})}).displayName=C;var _=r.forwardRef((e,r)=>{let{match:n,forceMatch:i=!1,name:s,children:l,...a}=e,o=h(C,a.__scopeForm).getFieldValidity(s);return i||o?.[n]?(0,t.jsx)(S,{ref:r,...a,name:s,children:l??T[n]}):null}),E=r.forwardRef((e,n)=>{let{match:s,forceMatch:a=!1,name:o,id:d,children:c,...u}=e,m=h(C,u.__scopeForm),p=r.useRef(null),f=(0,i.useComposedRefs)(n,p),x=(0,l.useId)(),g=d??x,v=r.useMemo(()=>({id:g,match:s}),[g,s]),{onFieldCustomMatcherEntryAdd:y,onFieldCustomMatcherEntryRemove:b}=m;r.useEffect(()=>(y(o,v),()=>b(o,v.id)),[v,o,y,b]);let j=m.getFieldValidity(o),k=m.getFieldCustomErrors(o)[g];return a||j&&!A(j)&&k?(0,t.jsx)(S,{id:g,ref:f,...u,name:o,children:c??I}):null}),S=r.forwardRef((e,n)=>{let{__scopeForm:i,id:s,name:o,...d}=e,c=f(C,i),u=(0,l.useId)(),m=s??u,{onFieldMessageIdAdd:h,onFieldMessageIdRemove:p}=c;return r.useEffect(()=>(h(o,m),()=>p(o,m)),[o,m,h,p]),(0,t.jsx)(a.Primitive.span,{id:m,...d,ref:n})}),M=r.forwardRef((e,r)=>{let{__scopeForm:n,...i}=e;return(0,t.jsx)(a.Primitive.button,{type:"submit",...i,ref:r})});function R(e){let t={};for(let r in e)t[r]=e[r];return t}function F(e){return e instanceof HTMLElement}function L(e){return"validity"in e&&(!1===e.validity.valid||"true"===e.getAttribute("aria-invalid"))}function P(e){let[t]=Array.from(e.elements).filter(F).filter(L);return t}function A(e){let t=!1;for(let r in e)if("valid"!==r&&"customError"!==r&&e[r]){t=!0;break}return t}function D(e,t){if(e?.valid===!0&&!t)return!0}function B(e,t){if(e?.valid===!1||t)return!0}M.displayName="FormSubmit";var O=e.i(81522),V=e.i(654307),$=e.i(939116),U=e.i(908624);let q=(0,U.createServerReference)("40d4843944f3ee2e0e2af2cedbf882a819ba39d856",U.callServer,void 0,U.findSourceMapURL,"navigate");e.s(["EmailFieldWithRedirect",0,function(){let e=(0,r.useId)(),[n,i]=(0,r.useState)("");async function s(e){e.preventDefault();let t=new FormData(e.currentTarget).get("email");t&&i(t.toString())}return n&&n.length>1&&q(n),(0,t.jsx)(x,{className:"space-y-2",onSubmit:s,children:(0,t.jsxs)("div",{className:"flex flex-col gap-y-2 gap-x-6  md:flex-row w-full items-center md:items-end !mt-8",children:[(0,t.jsxs)(b,{name:"email",className:"w-full",children:[(0,t.jsx)(k,{htmlFor:e,className:"text-xs block mb-2",children:"Epost-adresse"}),(0,t.jsx)(N,{id:e,type:"email",className:"border border-b-2 border-green-deep rounded-t w-full h-9 px-2 bg-white"})]}),(0,t.jsx)(M,{asChild:!0,className:"shrink-0 grow-0 h-9",children:(0,t.jsx)(O.Button,{className:"font-medium",children:"Meld meg på"})})]})})},"NewsletterForm",0,function(e){let[n,i]=(0,r.useState)();async function s(e){e.preventDefault(),i("working");let t=new FormData(e.currentTarget),r=t.get("email")?.toString(),n=[];if(t.forEach((e,t)=>{"email"!==t&&n.push(t)}),!r)return void i("initial");let s=await fetch("/api/signup-newsletter",{method:"POST",body:JSON.stringify({email:r,tags:n})});"200 Success"===(await s.json()).status?i("success"):i("fail")}return"success"===n?(0,t.jsx)($.Typography,{as:"h3",style:"heading-2",className:"text-green-deep text-center",children:"Takk for påmeldingen!"}):(0,t.jsxs)(x,{className:"space-y-2",onSubmit:s,children:[(0,t.jsx)(V.Container,{gridOnly:!0,noYGap:!0,className:"gap-y-2",children:e.tags.map(r=>(0,t.jsxs)(b,{name:r.title[e.locale],className:"flex items-center gap-x-2 col-span-12 md:col-span-6",children:[(0,t.jsx)(N,{type:"checkbox",defaultChecked:e.initialTags?.includes(r.title[e.locale])}),(0,t.jsx)(k,{children:r.title[e.locale]})]},r._id))}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-2 gap-x-6  md:flex-row w-full items-center md:items-end !mt-8",children:[(0,t.jsxs)(b,{name:"email",className:"w-full",children:[(0,t.jsx)(k,{className:"text-xs block mb-2",children:"Epost-adresse"}),(0,t.jsx)(N,{type:"email",className:"border border-b-2 border-green-deep rounded-t w-full h-9 px-2",defaultValue:e.initialEmail})]}),(0,t.jsx)(M,{asChild:!0,className:"shrink-0 grow-0 h-9",children:(0,t.jsx)(O.Button,{disabled:"working"===n,className:"font-medium",children:"Meld meg på"})})]})]})},"i18n",0,{defaultLocale:"nb",locales:["nb","en"]}],211146)},318770,e=>{"use strict";
1var t=e.i(350505),r=e.i(995477),n=e.i(7284),i=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};function s(e,t,r,n,i,s,l,a,o){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return r(t(e));case 4:return n(r(t(e)));case 5:return i(n(r(t(e))));case 6:return s(i(n(r(t(e)))));case 7:return l(s(i(n(r(t(e))))));case 8:return a(l(s(i(n(r(t(e)))))));case 9:return o(a(l(s(i(n(r(t(e))))))));default:for(var d=arguments[0],c=1;c<arguments.length;c++)d=arguments[c](d);return d}}var l=function(e,t){var r="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return r(arguments)?t.apply(this,e):function(r){return t.apply(void 0,i([r],e,!1))}}},a=function(e){return{_tag:"Right",right:e}};function o(e){return function(t,r){return e.map(t,function(){return r})}}Object.prototype.hasOwnProperty;var d=l(2,function(e,t){return x(e)?e:t(e.right)}),c=function(e,t){return s(e,m(t))},u="Either",m=function(e){return function(t){return x(t)?t:a(e(t.right))}},h={URI:u,map:c};l(2,o(h)),o(h);var p={URI:u,fromEither:function(e){return e}},f=function(e,t){return function(r){return p.fromEither(e(r)?a(r):{_tag:"Left",left:t(r)})}},x=function(e){return"Left"===e._tag};p.fromEither;var g=a([]),v=e.i(796524),y=e.i(935316),b=e.i(520234);function j(e){if(!e.crop)return e.asset.metadata.dimensions;let{width:t,height:r}=e.asset.metadata.dimensions,{left:n,top:i,bottom:s,right:l}=e.crop,a=Math.floor(t-t*l-t*n),o=Math.floor(r-r*s-r*i);return{width:a,height:o,aspectRatio:a/o}}e.s(["Image",0,function(e){var i,s,l,a,o,d;let c=(0,r.createImageUrlBuilder)(e.clientConfig),u=(i=e.layout||"original",s=j(e.source),(0,b.match)(i).with("original",()=>s.width).with("square",()=>Math.min(s.width,s.height)).with("portrait",()=>Math.round(s.aspectRatio<.744?s.width:.75*s.height)).with("four-three",()=>Math.round(s.aspectRatio<1.332?s.width:1.333*s.height)).with("landscape-medium","landscape-large",()=>Math.round(s.aspectRatio<1.5?s.width:1.5*s.height)).with("landscape-full",()=>Math.round(s.aspectRatio<1.778?s.width:1.778*s.height)).exhaustive()),m=(l=e.layout||"original",a=j(e.source),(0,b.match)(l).with("original",()=>a.height).with("square",()=>Math.min(a.width,a.height)).with("portrait",()=>Math.round(a.aspectRatio<.744?a.width/.75:a.height)).with("four-three",()=>Math.round(a.aspectRatio<1.332?a.width/1.333:a.height)).with("landscape-medium","landscape-large",()=>Math.round(a.aspectRatio<1.5?a.width/1.5:a.height)).with("landscape-full",()=>Math.round(a.aspectRatio<1.778?a.width/1.778:a.height)).exhaustive()),h=(0,v.pipe)(e.source.asset.extension,f(e=>"svg"===e,()=>"non-svg"),(o=()=>c.image(e.source).width(u).height(m).url(),d=()=>c.image(e.source).url(),function(e){return x(e)?o(e.left):d(e.right)}));return(0,t.jsx)(y.default,{alt:e.source.alt,width:e.fill?void 0:u,height:e.fill?void 0:m,fill:e.fill,src:h,className:(0,n.default)({rounded:"svg"!==e.source.asset.extension},e.className),priority:e.priority,sizes:e.sizes,blurDataURL:e.blurUp?e.source.asset.metadata.lqip:void 0,placeholder:e.blurUp?"blur":void 0})}],318770)},339821,379145,e=>{"use strict";var t=e.i(350505),r=e.i(974522),n=e.i(7284),i=e.i(935316),s=e.i(516902),l=e.i(939116);e.s(["DropdownControl",0,function(e){let[a,o]=(0,s.useState)("bottom");return(0,t.jsxs)("div",{className:e.className,children:[e.label&&(0,t.jsx)(l.Typography,{className:"mb-2",children:e.label}),(0,t.jsxs)(r.Root,{value:e.value.id,onValueChange:t=>{let r=e.items.find(e=>e.id===t);r&&e.onValueChange(r)},children:[(0,t.jsxs)(r.Trigger,{className:(0,n.default)("group bg-white border border-b-2 data-[state=open]:border-b border-green-deep px-4 py-1 text-left rounded-2xl cursor-pointer w-56 flex justify-between items-center",{"data-[state=open]:rounded-b-none data-[state=open]:mb-[1px]":"bottom"===a,"data-[state=open]:rounded-t-none data-[state=open]:mt-[1px]":"top"===a}),children:[e.value.title,(0,t.jsx)("div",{className:"group-data-[state=open]:rotate-180 transition-transform ease-in-out duration-200 h-[10px] aspect-square relative",children:(0,t.jsx)(i.default,{src:"/expand_more.svg",fill:!0,alt:"Expand icon"})})]}),(0,t.jsx)(r.Portal,{children:(0,t.jsx)(r.Content,{position:"popper",className:"bg-white border data-[side=bottom]:border-t-0 data-[side=top]:border-b-0 data-[state=open]:border-b-2 data-[side=top]:data-[state=open]:border-t-2 border-green-deep data-[side=bottom]:rounded-b-2xl data-[side=top]:rounded-t-2xl remove-padding w-56 overflow-hidden max-h-[300px] z-50",ref:e=>{if(e){let t=e.getAttribute("data-side");t&&t!==a&&o(t)}}
1,children:(0,t.jsx)(r.Viewport,{className:"overflow-y-auto max-h-[300px]",children:e.items.map((e,i)=>(0,t.jsx)("div",{className:"",children:(0,t.jsx)(r.Item,{value:e.id,className:(0,n.default)({"bg-green-pale":i%2==0},"cursor-pointer m-0 block px-4 py-1"),children:e.title},e.id)},e.id))})})})]})]})}],339821),e.s(["SegmentedControl",0,function(e){return(0,t.jsxs)("div",{className:(0,n.default)(e.className,""),children:[e.label&&(0,t.jsx)(l.Typography,{className:"mb-2",children:e.label}),(0,t.jsx)("div",{className:"inline-flex divide-x rounded-full border border-b-2 divide-green-deep border-green-deep overflow-hidden",children:e.segments.map(r=>(0,t.jsxs)("button",{type:"button",onClick:r.onClick,className:(0,n.default)({"bg-green-pale":r.id===e.selectedSegmentId},"px-3 py-1 text-sm font-medium text-green-deep flex items-center space-x-1.5"),children:[r.icon&&(0,t.jsx)("div",{className:"h-[13px] relative aspect-square mr-1",children:(0,t.jsx)(i.default,{src:r.icon.url,fill:!0,alt:r.icon.alt})}),(0,t.jsx)("p",{className:"whitespace-nowrap",children:r.title})]},r.id))})]})}],379145)},309979,e=>{"use strict";var t=e.i(350505),r=e.i(7284),n=e.i(935316),i=e.i(81522),s=e.i(939116);e.s(["ButtonCloudControl",0,function(e){return(0,t.jsxs)("div",{children:[e.label&&(0,t.jsx)(s.Typography,{className:"mb-2",children:e.label}),(0,t.jsx)("div",{className:(0,r.default)("flex flex-wrap m-[-3px]",e.className),children:e.items.map(r=>(0,t.jsx)(i.Button,{style:"outlined",state:r.locked?"inactive":e.selectedItems.map(e=>e.id).includes(r.id)?"selected":"active",className:"m-[3px] rounded-sm",onClick:()=>e.onValueChange(r),size:"small",disabled:r.locked,children:(0,t.jsxs)("div",{className:"flex items-center",children:[e.selectedItems.map(e=>e.id).includes(r.id)&&(0,t.jsx)("span",{className:"mr-[4px] h-[12px] relative aspect-square",children:(0,t.jsx)(n.default,{src:"/check.svg",fill:!0,alt:"Check mark icon"})})," ",(0,t.jsx)("p",{children:r.title})]})},r.id))})]})}])},317466,160128,664927,e=>{"use strict";var t=e.i(350505),r=e.i(381461),n=e.i(7284),i=e.i(150871),s=e.i(654307),l=e.i(318770),a=e.i(702546);function o(e){return(0,t.jsxs)("div",{className:(0,n.default)(e.className,"block"),children:[(0,t.jsx)("div",{className:"bg-green-pale border-b-2 border-green-sharp py-6 mb-4 px-3",children:(0,t.jsx)("figure",{className:"w-full h-[200px] flex items-center justify-center",children:(0,t.jsx)(l.Image,{clientConfig:e.clientConfig,source:e.cover,className:"mx-auto shadow-sm group-hover:shadow-md group-hover:scale-[1.03] transition ease-in-out duration-300 w-auto h-full",sizes:"(max-width: 640px) 45vw, (max-width: 1024px) 33vw, 18vw"})})}),e.author&&(0,t.jsx)("h4",{className:"text-xs text-green-deep mb-1 font-medium",children:e.author}),(0,t.jsx)("h3",{className:"text-2xl font-medium group-hover:underline",children:e.title}),(0,t.jsx)("p",{className:"text-sm my-3",children:e.shortDescription}),e.topics&&(0,t.jsx)("div",{className:"text-xs text-green-deep flex gap-x-4 mb-3 font-medium flex-wrap gap-y-2",children:e.topics.map(e=>(0,t.jsx)("p",{className:"border border-green-deep rounded-sm px-1 py-0.5",children:e.name},e._id))}),(0,t.jsxs)("div",{className:"text-xs text-green-deep flex flex-wrap gap-x-4 gap-y-2 font-medium",children:[e.nationalities?.map(e=>(0,t.jsxs)("p",{children:[e.icon," ",e.name]},e._id)),e.genres?.map(e=>(0,t.jsxs)("p",{className:"flex",children:[(0,t.jsx)(a.Icon,{type:"label",className:"mr-1.5 h-[0.9em] translate-y-0.5"})," ",e.name]},e._id))]})]})}function d(e){return(0,t.jsxs)("div",{className:(0,n.default)(e.className,"grid sm:grid-cols-2 gap-4 md:gap-5 lg:gap-6 border-t-[1.5px] border-green-deep pt-8"),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-2xl font-medium group-hover:underline mt-1 mb-1.5",children:e.title}),e.author&&(0,t.jsx)("h4",{className:"text-xs text-green-deep font-medium",children:e.author}),(0,t.jsx)("p",{className:"text-sm my-3",children:e.shortDescription}),(0,t.jsx)(i.default,{href:(0,r.route)({kind:"book",slug:e.slug.current}),className:(0,n.default)(e.className,"group block"),children:(0,t.jsxs)("p",{className:"text-green-deep flex items-center gap-1.5",children:["Les mer"," ",(0,t.jsx)(a.Icon,{type:"navigate_next",className:"group-hover:translate-x-[1px] transition duration-200 ease-in-out"})]})})]}),(0,t.jsx)("div",{className:"bg-green-pale border-b-2 border-green-sharp py-6 mb-4 px-3",children:(0,t.jsx)(l.Image,{clientConfig:e.clientConfig,source:e.cover,className:"mx-auto 
1shadow-sm group-hover:shadow-md group-hover:scale-[1.03] h-[220px] w-fit transition ease-in-out duration-300 object-contain",sizes:"(max-width: 640px) 80vw, (max-width: 1024px) 40vw, 20vw"})})]})}e.s(["AuthorCard",0,function(e){return(0,t.jsxs)(s.Container,{gridOnly:!0,className:(0,n.default)("border-t-[1.5px] border-green-deep pt-8",e.className),children:[(0,t.jsxs)("div",{className:"col-span-12 sm:col-span-6",children:[(0,t.jsx)("h4",{className:"text-green-deep mb-1.5 font-medium",children:"en"===e.locale?"About the author":"Om forfatteren"}),(0,t.jsx)("h3",{className:"text-2xl font-medium group-hover:underline mb-4",children:e.authorName}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm mb-4",children:e.description}),(0,t.jsx)(i.default,{href:(0,r.route)({kind:"author",slug:e.slug}),className:(0,n.default)(e.className,"group text-sm text-green-deep"),children:(0,t.jsxs)("p",{className:"text-green-deep flex items-center gap-1.5",children:["Les mer"," ",(0,t.jsx)(a.Icon,{type:"navigate_next",className:"group-hover:translate-x-[1px] transition duration-200 ease-in-out"})]})})]})]}),(0,t.jsx)(l.Image,{clientConfig:e.clientConfig,source:e.image,className:"w-full col-span-12 sm:col-span-6"})]})}],160128),e.s(["BookCard",0,function(e){return"large"===e.size?(0,t.jsx)(d,{...e}):(0,t.jsx)(i.default,{href:(0,r.route)({kind:"book",slug:e.slug.current}),className:(0,n.default)(e.className,"group block"),children:(0,t.jsx)(o,{...e})})}],664927),e.s([],317466)},866070,e=>{"use strict";var t=e.i(350505),r=e.i(7284),n=e.i(150871),i=e.i(516902),s=e.i(81522),l=e.i(654307),a=e.i(908624);let o=(0,a.createServerReference)("007f1355be027b485460ee0e4e39105097c4f80124",a.callServer,void 0,a.findSourceMapURL,"navigateHome");e.s(["LocaleNotFound",0,function(e){let[a,d]=(0,i.useState)(5);return(0,i.useEffect)(()=>{if(2===a&&o(),0===a)return;let e=setTimeout(()=>{d(a-1)},1e3);return()=>clearTimeout(e)},[a]),(0,t.jsx)("div",{className:(0,r.default)(e.className,"min-h-[60vh] flex items-center"),children:(0,t.jsx)(l.Container,{grid:!0,children:(0,t.jsxs)("div",{className:"col-span-12 md:col-span-6 md:col-start-4",children:[(0,t.jsx)("h2",{className:"text-6xl font-display text-green-deep mb-10 text-center",children:"The page is not available in English"}),(0,t.jsxs)("p",{className:"font-medium text-green-deep text-xl mb-10",children:["Not all of the content on our website is translated into English. We are sending you to the English front page in ",a," seconds."]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(n.default,{href:"/",children:(0,t.jsx)(s.Button,{children:"Go to the front page"})})})]})})})}],866070)},828168,e=>{"use strict";function t(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function r(e){return"string"==typeof e._type&&"@"!==e._type[0]&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(e=>"string"==typeof e._key))&&"children"in e&&Array.isArray(e.children)&&e.children.every(e=>"object"==typeof e&&"_type"in e)}function n(e){return r(e)&&"listItem"in e&&"string"==typeof e.listItem&&(void 0===e.level||"number"==typeof e.level)}function i(e){return"@list"===e._type}function s(e){return"@span"===e._type}function l(e){return"@text"===e._type}let a=["strong","em","code","underline","strike-through"];function o(e,r,n){if(!t(e)||!e.marks||!e.marks.length)return[];let i=e.marks.slice(),s={};return i.forEach(e=>{s[e]=1;for(let i=r+1;i<n.length;i++){let r=n[i];if(r&&t(r)&&Array.isArray(r.marks)&&-1!==r.marks.indexOf(e))s[e]++;else break}}),i.sort((e,t)=>(function(e,t,r){let n=e[t],i=e[r];if(n!==i)return i-n;let s=a.indexOf(t),l=a.indexOf(r);return s===l?t.localeCompare(r):s-l})(s,e,t))}function d(e,t,r){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:r,level:e.level||1,listItem:e.listItem,children:[e]}}function c(e,r){let n=r.level||1,s=r.listItem||"normal",l="string"==typeof r.listItem;if(i(e)&&(e.level||1)===n&&l&&(e.listItem||"normal")===s)return e;if(!("children"in e))return;let a=e.children[e.children.length-1];return a&&!t(a)?c(a,r):void 0}let u=/^\s/,m=/\s$/;e.s(["LIST_NEST_MODE_HTML",0,"html","buildMarksTree",0,function(e){let{children:r}=e,n=e.markDefs??[];if(!r||!r.length)return[];let i=r.map(o),s={_type:"@span",children:[],markType:"<unknown>"},l=[s];for(let e=0;e<r.length;e++){let s=r[e];if(!s)continue;let a=i[e]||[],o=1;if(l.length>1)for(;o<l.length;o++){let e=l[o]?.markKey||"",t=a.indexOf(e);if(-1===t)break;a.splice(t,1)}let d=(l=l.slice(0,o))[l.length-1];
1if(d){for(let e of a){let t=n?.find(t=>t._key===e),r={_type:"@span",_key:s._key,children:[],markDef:t,markType:t?t._type:e,markKey:e};d.children.push(r),l.push(r),d=r}if(t(s)){let e=s.text.split("\n");for(let t=e.length;t-- >1;)e.splice(t,0,"\n");d.children=d.children.concat(e.map(e=>({_type:"@text",text:e})))}else d.children=d.children.concat(s)}}return s.children},"isPortableTextBlock",0,r,"isPortableTextListItemBlock",0,n,"isPortableTextToolkitList",0,i,"isPortableTextToolkitSpan",0,s,"isPortableTextToolkitTextNode",0,l,"nestLists",0,function(e,t){let r=[],i;for(let a=0;a<e.length;a++){let o=e[a];if(o){var s,l;if(!n(o)){r.push(o),i=void 0;continue}if(!i){i=d(o,a,t),r.push(i);continue}if(s=o,l=i,(s.level||1)===l.level&&s.listItem===l.listItem){i.children.push(o);continue}if((o.level||1)>i.level){let e=d(o,a,t);if("html"===t){let t=i.children[i.children.length-1],r={...t,children:[...t.children,e]};i.children[i.children.length-1]=r}else i.children.push(e);i=e;continue}if((o.level||1)<i.level){let e=r[r.length-1],n=e&&c(e,o);if(n){(i=n).children.push(o);continue}i=d(o,a,t),r.push(i);continue}if(o.listItem!==i.listItem){let e=r[r.length-1],n=e&&c(e,{level:o.level||1});if(n&&n.listItem===o.listItem){(i=n).children.push(o);continue}i=d(o,a,t),r.push(i);continue}console.warn("Unknown state encountered for block",o),r.push(o)}}return r},"spanToPlainText",0,function e(t){let r="";return t.children.forEach(t=>{l(t)?r+=t.text:s(t)&&(r+=e(t))}),r},"toPlainText",0,function(e){let n=Array.isArray(e)?e:[e],i="";return n.forEach((e,s)=>{if(!r(e))return;let l=!1;e.children.forEach(e=>{t(e)?(i+=l&&i&&!m.test(i)&&!u.test(e.text)?" ":"",i+=e.text,l=!1):l=!0}),s!==n.length-1&&(i+="\n\n")}),i}])},617636,e=>{"use strict";var t=e.i(350505),r=e.i(828168),n=e.i(516902);let i={textDecoration:"underline"},s=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,l=e=>s(`block type "${e}"`,"types");function a(e){console.warn(e)}let o={display:"none"},d={types:{},block:{normal:({children:e})=>(0,t.jsx)("p",{children:e}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{children:e}),h1:({children:e})=>(0,t.jsx)("h1",{children:e}),h2:({children:e})=>(0,t.jsx)("h2",{children:e}),h3:({children:e})=>(0,t.jsx)("h3",{children:e}),h4:({children:e})=>(0,t.jsx)("h4",{children:e}),h5:({children:e})=>(0,t.jsx)("h5",{children:e}),h6:({children:e})=>(0,t.jsx)("h6",{children:e})},marks:{em:({children:e})=>(0,t.jsx)("em",{children:e}),strong:({children:e})=>(0,t.jsx)("strong",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),underline:({children:e})=>(0,t.jsx)("span",{style:i,children:e}),"strike-through":({children:e})=>(0,t.jsx)("del",{children:e}),link:({children:e,value:r})=>(0,t.jsx)("a",{href:r?.href,children:e})},list:{number:({children:e})=>(0,t.jsx)("ol",{children:e}),bullet:({children:e})=>(0,t.jsx)("ul",{children:e})},listItem:({children:e})=>(0,t.jsx)("li",{children:e}),hardBreak:()=>(0,t.jsx)("br",{}),unknownType:({value:e,isInline:r})=>{let n=l(e._type);return(0,t.jsx)(r?"span":"div",{style:o,children:n})},unknownMark:({markType:e,children:r})=>(0,t.jsx)("span",{className:`unknown__pt__mark__${e}`,children:r}),unknownList:({children:e})=>(0,t.jsx)("ul",{children:e}),unknownListItem:({children:e})=>(0,t.jsx)("li",{children:e}),unknownBlockStyle:({children:e})=>(0,t.jsx)("p",{children:e})};function c(e,t,r){let n=t[r],i=e[r];return"function"==typeof n||n&&"function"==typeof i?n:n?{...i,...n}:i}function u(e){let{node:t,index:n,isInline:i,renderNode:s}=e,l=(0,r.buildMarksTree)(t).map((e,t)=>s({node:e,isInline:!0,index:t,renderNode:s}));return{_key:t._key||`block-${n}`,children:l,index:n,isInline:i,node:t}}function m(){}e.s(["PortableText",0,function({value:e,components:i,listNestingMode:o,onMissingComponent:h=a}){let p=h||m,f=(0,r.nestLists)(Array.isArray(e)?e:[e],o||r.LIST_NEST_MODE_HTML),x=(0,n.useMemo)(()=>i?function(e,t){let{block:r,list:n,listItem:i,marks:s,types:l,...a}=t;return{...e,block:c(e,t,"block"),list:c(e,t,"list"),listItem:c(e,t,"listItem"),marks:c(e,t,"marks"),types:c(e,t,"types"),...a}}(d,i):d,[i]),g=(0,n.useMemo)(()=>{var e,n;return e=x,n=p,function i(a){var o,d,c,m,h,p,f,x;let g,v,{node:y,index:b,isInline:j}=a,k=y._key||`node-${b}`;return(0,r.isPortableTextToolkitList)(y)?function(r,l,a){let o=r.children.map((e,t)=>i({node:e._key?e:{...e,_key:`li-${l}-${t}`},index:t,isInline:!1,renderNode:i})),d=e.list,c=("function"==typeof d?d:d[r.listItem])||e.unknownList;if(c===e.unknownList){let e=r.listItem||"bullet";n(s(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return(0,t.jsx)(c,{value:r,index:l,isInline:!1,renderNode:i,children:o},a)}(y,b,k):(0,r.isPortableTextListItemBlock)(y)?function(r,l,a){let o=u({node:r,index:l,isInline:!1,renderNode:i}),d=e.listItem,c=("function"==typeof d?d:d[r.listItem])||e.unknownListItem;if(c===e.unknownListItem){let e=r.listItem||"bullet";n(s(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let m=o.children;if(r.style&&"normal"!==r.style){let{listItem:e,...t}=r;m=i({node:t,index:l,isInline:!1,renderNode:i})}return(0,t.jsx)(c,{value:r,index:l,isInline:!1,renderNode:i,children:m},a)}(y,b,k):(0,r.isPortableTextToolkitSpan)(y)?function(l,a){let{markDef:o,markType:d,markKey:c}=l,u=e.marks[d]||e.unknownMark,m=l.children.map((e,t)=>i({node:e,index:t,isInline:!0,renderNode:i}));return u===e.unknownMark&&n(s(`mark type "${d}"`,"marks"),{nodeType:"mark",type:d}),(0,t.jsx)(u,{text:(0,r.spanToPlainText)(l),value:o,markType:d,markKey:c,renderNode:i,children:m},a)}(y,k):y._type in e.types?(o=y,d=b,c=k,m=j,(g=e.types[o._type])?(0,t.jsx)(g,{value:o,isInline:m,index:d,renderNode:i}
1,c):null):(0,r.isPortableTextBlock)(y)?function(r,l,a,o){let{_key:d,...c}=u({node:r,index:l,isInline:o,renderNode:i}),m=c.node.style||"normal",h=("function"==typeof e.block?e.block:e.block[m])||e.unknownBlockStyle;return h===e.unknownBlockStyle&&n(s(`block style "${m}"`,"block"),{nodeType:"blockStyle",type:m}),(0,t.jsx)(h,{...c,value:c.node,renderNode:i},a)}(y,b,k,j):(0,r.isPortableTextToolkitTextNode)(y)?function(r,n){if("\n"===r.text){let r=e.hardBreak;return r?(0,t.jsx)(r,{},n):"\n"}return r.text}(y,k):(h=y,p=b,f=k,x=j,n(l(h._type),{nodeType:"block",type:h._type}),v=e.unknownType,(0,t.jsx)(v,{value:h,isInline:x,index:p,renderNode:i},f))}},[x,p]);return(0,t.jsx)(t.Fragment,{children:f.map((e,t)=>g({node:e,index:t,isInline:!1,renderNode:g}))})}])}]);

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.