PageSourceSearch

https://barnensbibliotek.se/_next/static/chunks/12u5br1u5fq5z.js

js barnensbibliotek.se collected 2026-10-02 11:37:43 UTC 32,242 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89285,e=>{"use strict";var t=e.i(71645),l=e.i(47498);e.s(["default",0,({bookid:e,add:r,remove:n})=>{let[a,s]=(0,l.default)("readinglist",{defaultValue:[]}),[i,o]=(0,t.useState)(!1);return(0,t.useEffect)(()=>o(!0),[]),i&&a?.includes(e)?t.default.cloneElement(n,{onClick:()=>{a?.length&&s(a.filter(t=>t!==e))}}):t.default.cloneElement(r,{onClick:()=>{a?.includes(e)||s([...a||[],e])}})}])},23705,e=>{"use strict";var t=e.i(47422);e.s(["HeartFillIcon",()=>t.default])},3168,5206,e=>{"use strict";var t=e.i(30059);e.s(["BookIcon",()=>t.default],3168);var l=e.i(92088);e.s(["BookSoundIcon",()=>l.default],5206)},13042,14788,35550,2015,e=>{"use strict";var t,l,r,n,a,s,i=((t={}).Adult="adult",t.Children="Children",t);e.s(["AudienceClassification",()=>i],14788),(l={}).ImageBlock="imageBlock",l.TextBlock="textBlock",l.LinksBlock="linksBlock",l.ImageLinkBlock="imageLinkBlock",l.TextImageBlock="textImageBlock",l.VoteBlock="voteBlock",l.MediaBlock="mediaBlock",l.BookBlock="bookBlock",l.BooklistBlock="booklistBlock",l.InteractiveBlock="interactiveBlock",l.BulletPointsBlock="bulletPointsBlock",l.DownloadStrip="downloadStrip",l.GoDirectlyToBlock="lanklistblock",l.FaqBlock="faqBlock",l.CTAButtonBlock="cta_button",l.QuoteBlock="quoteBlock",l.SubscriptionBlock="subscriptionBlock",l.HeroBlock="heroBlock",l.FormBlock="formBlock";var o=((r={}).Media="Media",r.External="External",r.Content="Content",r);e.s(["LinkType",()=>o],35550),(n={}).VideoBlock="videoBlock",n.AudioBlock="audioBlock",(a={}).articlePage="Artikel",a.craftPage="Pyssel",a.authorPage="Författare",a.themePage="Tema",a.bookTips="Boktips",a.writePage="Skriva",a.appleShelf="Äpplehyllan",a.summerBooks="Sommarboken";var u=e.i(43476);e.i(48549);var c=e.i(3168),d=e.i(5206),f=e.i(41259),f=f,p=((s={})[s.Bok=1]="Bok",s[s.Ljudbok=2]="Ljudbok",s[s.eBok=3]="eBok",s[s.Pocket=4]="Pocket",s[s.App=5]="App",s[s.Takk=6]="Takk",s);e.s(["GetMediaTypeIcon",0,e=>{switch(e){case 1:return(0,u.jsx)(c.BookIcon,{"aria-label":"Bok"});case 2:return(0,u.jsx)(d.BookSoundIcon,{"aria-label":"Ljudbok"});case 3:return(0,u.jsx)(f.default,{"aria-label":"E-bok"});default:return(0,u.jsx)(u.Fragment,{})}},"GetMediaTypeName",0,e=>{switch(e){case 1:return"Bok";case 2:return"Ljudbok";case 3:return"eBok";case 4:return"Pocket";case 5:return"App";case 6:return"Takk";default:return"Typ saknas"}},"MediaTypes",()=>p],2015),e.s([],13042)},70032,e=>{"use strict";e.i(47167);var t=e.i(43476),l=e.i(89285),r=e.i(59318);e.i(48549);var n=e.i(23705),a=e.i(71669),s=e.i(22016),i=e.i(71645);e.i(13042);var o=e.i(2015);let u=i.default.memo(({className:e="min-w-6 min-h-6 w-6 h-6"})=>(0,t.jsxs)("svg",{"aria-label":"",className:e,width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M2.22266 46.6665H35.556V55.5554H2.22266V46.6665Z",fill:"#FEFEFD"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.77821 2.22217C5.60539 2.22217 2.22266 6.02883 2.22266 10.7246V51.1111C2.22266 47.5892 4.75971 44.7342 7.88932 44.7342H38.1115C39.1548 44.7342 40.0004 43.7826 40.0004 42.6086V4.34777C40.0004 3.17383 39.1548 2.22217 38.1115 2.22217H9.77821Z",fill:"#7EE4FC"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.8887 17.778H14.8887C11.575 17.778 8.88867 20.7628 8.88867 24.4447C8.88867 28.1266 11.575 31.1113 14.8887 31.1113H18.8887L28.8887 37.778V11.1113L18.8887 17.778Z",fill:"#FF8686"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.1243 10.8057C30.1243 9.98611 29.7384 9.22989 29.114 8.82609C28.4895 8.42228 27.7232 8.43332 27.1079 8.85499L18.2449 14.9289H15.0622C10.8685 14.9289 7.46885 18.8119 7.46885 23.6019C7.46885 28.3919 10.8685 32.2749 15.0622 32.2749H18.2449L27.1079 38.3488C27.7232 38.7705 28.4895 38.7815 29.114 38.3777C29.7384 37.9739 30.1243 37.2177 30.1243 36.3981V10.8057ZM19.8213 19.1545L26.141 14.8236V32.3802L19.8213 28.0493C19.5118 27.8372 19.1576 27.7251 18.7966 27.7251H15.0622C13.0685 27.7251 11.4522 25.8791 11.4522 23.6019C11.4522 21.3247 13.0685 19.4787 15.0622 19.4787H18.7966C19.1576 19.4787 19.5118 19.3666 19.8213 19.1545Z",fill:"#161616"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.46054 0C4.23563 0 0 4.83787 0 10.8057V51.327C0 56.117 3.39965 60 7.59333 60H39.3359C40.4359 60 41.3276 58.9815 41.3276 57.7251C41.3276 56.4687 40.4359 55.4502 39.3359 55.4502H37.5932V47.2015C39.6668 47.1265 41.3276 45.1829 41.3276 42.7962V4.40758C41.3276 1.97334 39.5999 0 37.4687 0H9.46054ZM7.59333 47.2038H33.6098V55.4502H7.59333C5.59961 55.4502 3.98339 53.6042 3.98339 51.327C3.98339 49.0498 5.59961 47.2038 7.59333 47.2038ZM37.3442 42.654H7.59333C6.28665 42.654 5.05707 43.031 3.98339 43.6949V10.8057C3.98339 7.35064 6.43559 4.54976 9.46054 4.54976H37.3442V42.654Z",fill:"#161616"}),(0,t.jsx)("path",{d:"M51.6778 11.3298C52.4556 10.4414 53.7167 10.4414 54.4945 11.3298
1C58.0196 15.3561 60 20.8169 60 26.5109C60 32.2049 58.0196 37.6657 54.4945 41.692C53.7167 42.5804 52.4556 42.5804 51.6778 41.692C50.9 40.8036 50.9001 39.3632 51.6779 38.4748C54.4559 35.3018 56.0166 30.9982 56.0166 26.5109C56.0166 22.0236 54.4559 17.72 51.6779 14.547C50.9001 13.6586 50.9 12.2182 51.6778 11.3298Z",fill:"#161616"}),(0,t.jsx)("path",{d:"M49.2154 17.3629C48.4385 16.4735 47.1775 16.4718 46.3988 17.3592C45.6201 18.2466 45.6186 19.687 46.3955 20.5764C49.2576 23.853 49.2576 29.1574 46.3955 32.434C45.6186 33.3234 45.6201 34.7638 46.3988 35.6512C47.1775 36.5386 48.4385 36.5369 49.2154 35.6475C53.6288 30.5949 53.6288 22.4155 49.2154 17.3629Z",fill:"#161616"})]}));u.displayName="AudioBookIcon";let c=i.default.memo(({className:e="min-w-6 min-h-6 w-6 h-6"})=>(0,t.jsxs)("svg",{"aria-label":"",className:e,width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36 39.4286V50.819C36 52.6137 35.1841 54.7507 33.7318 56.0195C32.2795 57.2882 30.3333 58 28.0667 58H9.36667C7.1 58 5.72046 57.2882 4.26819 56.0195C2.81592 54.7507 2 52.6137 2 50.819V12.1905C2 8.45293 5.09005 6 9.36667 6H14.75",fill:"#E0CEFF"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 3.5C24 2.67157 24.7611 2 25.7 2H56.3C57.2389 2 58 2.67157 58 3.5V30.5C58 31.3284 57.2389 32 56.3 32H25.7C24.7611 32 24 31.3284 24 30.5V3.5Z",fill:"#DCF8FF"}),(0,t.jsx)("path",{d:"M32.1327 7.46888C30.8763 7.46888 29.8578 8.36059 29.8578 9.46058C29.8578 10.5606 30.8763 11.4523 32.1327 11.4523H49.1943C50.4507 11.4523 51.4692 10.5606 51.4692 9.46058C51.4692 8.36059 50.4507 7.46888 49.1943 7.46888H32.1327Z",fill:"#161616"}),(0,t.jsx)("path",{d:"M29.8578 16.9295C29.8578 15.8295 30.8763 14.9378 32.1327 14.9378H49.1943C50.4507 14.9378 51.4692 15.8295 51.4692 16.9295C51.4692 18.0294 50.4507 18.9212 49.1943 18.9212H32.1327C30.8763 18.9212 29.8578 18.0294 29.8578 16.9295Z",fill:"#161616"}),(0,t.jsx)("path",{d:"M29.8578 24.3983C29.8578 23.2984 30.8763 22.4066 32.1327 22.4066H38.5308C39.7872 22.4066 40.8057 23.2984 40.8057 24.3983C40.8057 25.4983 39.7872 26.39 38.5308 26.39H32.1327C30.8763 26.39 29.8578 25.4983 29.8578 24.3983Z",fill:"#161616"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.327 3.48548C21.327 1.5605 23.1094 0 25.3081 0H56.019C58.2176 0 60 1.5605 60 3.48548V30.3734C60 32.2984 58.2176 33.8589 56.019 33.8589H25.3081C23.1094 33.8589 21.327 32.2984 21.327 30.3734V3.48548ZM25.8768 3.9834V29.8755H55.4502V3.9834H25.8768Z",fill:"#161616"}),(0,t.jsx)("path",{d:"M19.3365 54.7718C20.5929 54.7718 21.6114 53.8801 21.6114 52.7801C21.6114 51.6801 20.5929 50.7884 19.3365 50.7884C18.0801 50.7884 17.0616 51.6801 17.0616 52.7801C17.0616 53.8801 18.0801 54.7718 19.3365 54.7718Z",fill:"#161616"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.9252 8.876C5.10417 9.55587 4.54976 10.5732 4.54976 11.9502V44.8133H34.1232V39.3361C34.1232 38.2361 35.1417 37.3444 36.3981 37.3444C37.6545 37.3444 38.673 38.2361 38.673 39.3361V50.7884C38.673 52.9982 37.7043 55.6977 35.73 57.4256C33.8274 59.0907 31.2875 60 28.436 60H9.66825C8.23968 60 6.98388 59.7717 5.82628 59.2897C4.69089 58.817 3.77015 58.1495 2.943 57.4256C0.968722 55.6977 0 52.9982 0 50.7884V11.9502C0 9.5694 0.996222 7.47468 2.79884 5.98198C4.58862 4.49991 7.022 3.73444 9.66825 3.73444H15.0711C16.3275 3.73444 17.346 4.62615 17.346 5.72614C17.346 6.82613 16.3275 7.71784 15.0711 7.71784H9.66825C8.02237 7.71784 6.75907 8.18549 5.9252 8.876ZM4.54976 50.7884V48.7967H34.1232V50.7884C34.1232 52.1872 33.4542 53.785 32.5134 54.6084C31.5009 55.4945 30.1343 56.0166 28.436 56.0166H9.66825C8.82194 56.0166 8.24802 55.8871 7.78025 55.6923C7.29026 55.4883 6.78997 55.1601 6.15958 54.6084C5.2188 53.785 4.54976 52.1872 4.54976 50.7884Z",fill:"#161616"})]}));c.displayName="EBookIcon";var d=e.i(91572);e.s(["default",0,({id:e,title:f,urlSlug:p,image:m,author:g,mediaTypeID:h})=>{let v=(0,i.useId)(),C=(e=>{switch(e){case o.MediaTypes.Ljudbok:return u;case o.MediaTypes.eBok:return c}})(h);return(0,t.jsxs)("div",{className:"relative flex  pb-[1.374rem]",children:[(0,t.jsxs)(s.default,{prefetch:!1,href:`/bocker/${p}`,className:"group relative block w-full overflow-hidden rounded-4 bg-greenblue-bg-50 outline-none ring-2 ring-greenblue-primary hover:bg-greenblue-1.45 focus:ring-4 md:p-4 md:pb-8 md:pt-3",children:[!!C&&(0,t.jsx)("div",{className:"absolute -right-2 -top-2 z-10 rounded-full border-2 border-greenblue-primary bg-white p-3",children:(0,t.jsx)(C,{className:"h-6 w-6"})}),(0,t.jsxs)("div",{className:"mr-6 grid grid-cols-10 md:mr-0 md:flex md:flex-col",children:[(0,t.jsx)("div",{className:"relative col-span-4 flex min-h-43 w-full min-w-full md:col-span-full md:w-full",children:(0,t.jsx)(r.default,{fill:!0,loading:"lazy",src:m,alt:"",sizes:(0,d.imageSizes)({sm:"40vw",md:"50vw",lg:"33vw",xl:"25vw"},"20vw"),className:"object-cover md:object-contain"})}),(0,t.jsxs)("div",{className:"h-half col-span-6 flex flex-col justify-center px-4 py-8 md:col-span-full md:p-0",children:[(0,t.jsx)("span",{className:"md:label md:text-sm md:label mb-1 overflow-hidden align-middle font-livvic font-bold group-hover:underline md:mt-2 md:text-center md:align-top",children:f}),(0,t.jsx)("p",{className:"align-middle text-3.5 md:text-center md:align-top md:text-4",children:g})]})]})]},`bookcard-${e}-${v}-link`),(0,t.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2",children:(0,t.jsx)(l.default,{bookid:e,add:(0,t.jsx)("button",{"aria-label":"Lägg till bok som favorit",className:"flex h-11 w-11 items-center justify-center rounded-full bg-white outline-none ring-2 ring-greenblue-primary    hover:bg-white hover:ring-4 focus:bg-culturered-bg-50",children:(0,t.jsx)(a.HeartIcon,{decorative:!0})}),remove:(0,t.jsx)("button",{"aria-label":"Ta bort bok som favorit",className:"flex h-11 w-11 items-center justify-center rounded-full bg-white outline-none ring-2   ring-greenblue-primary hover:ring-4 focus:bg-culturered-bg-50",children:(0,t.jsx)(n.HeartFillIcon,{decorative:!0,className:"h-6 w-6"})})})})]})}],70032)}
1,23903,e=>{"use strict";var t=e.i(43476),l=e.i(41033);e.s(["default",0,({children:e,className:r})=>(0,t.jsx)("div",{className:(0,l.cn)("grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 md:gap-y-6 lg:grid-cols-4 xl:grid-cols-5",r),children:e})])},38406,e=>{"use strict";var t=e.i(43476),l=e.i(41033);e.s(["default",0,({title:e,button:r,className:n})=>(0,t.jsxs)("div",{className:(0,l.cn)("mb-8 flex flex-col items-center justify-between gap-5 md:flex-row",n),children:[(0,t.jsx)("h2",{className:"font-livvic text-[1.75rem] font-bold md:text-9",children:e}),r]})])},14189,80758,35696,41444,e=>{"use strict";var t=e.i(71645),l=Object.defineProperty,r=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?l(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r};let n=new class{constructor(){r(this,"current",this.detect()),r(this,"handoffState","pending"),r(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};e.s(["env",0,n],80758);let a=(e,l)=>{n.isServer?(0,t.useEffect)(e,l):(0,t.useLayoutEffect)(e,l)};function s(e){let l=(0,t.useRef)(e);return a(()=>{l.current=e},[e]),l}e.s(["useIsoMorphicEffect",0,a],35696),e.s(["useLatestValue",0,s],41444),e.s(["useEvent",0,function(e){let l=s(e);return t.default.useCallback((...e)=>l.current(...e),[l])}],14189)},78677,e=>{"use strict";var t=e.i(71645),l=e.i(80758);e.s(["useServerHandoffComplete",0,function(){let e,r=(e="u"<typeof document,"useSyncExternalStore"in t&&(0,t.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[n,a]=t.useState(l.env.isHandoffComplete);return n&&!1===l.env.isHandoffComplete&&a(!1),t.useEffect(()=>{!0!==n&&a(!0)},[n]),t.useEffect(()=>l.env.handoff(),[]),!r&&n}])},87296,e=>{"use strict";var t,l=e.i(71645),r=e.i(80758),n=e.i(35696),a=e.i(78677);let s=null!=(t=l.default.useId)?t:function(){let e=(0,a.useServerHandoffComplete)(),[t,s]=l.default.useState(e?()=>r.env.nextId():null);return(0,n.useIsoMorphicEffect)(()=>{null===t&&s(r.env.nextId())},[t]),null!=t?""+t:void 0};e.s(["useId",0,s])},94316,e=>{"use strict";var t=e.i(71645),l=e.i(14189);let r=Symbol();e.s(["optionalRef",0,function(e,t=!0){return Object.assign(e,{[r]:t})},"useSyncRefs",0,function(...e){let n=(0,t.useRef)(e);(0,t.useEffect)(()=>{n.current=e},[e]);let a=(0,l.useEvent)(e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return e.every(e=>null==e||(null==e?void 0:e[r]))?void 0:a}])},33137,33538,e=>{"use strict";let t;var l=e.i(71645);let r=(0,l.createContext)(null);r.displayName="OpenClosedContext";var n=((t=n||{})[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t);e.s(["OpenClosedProvider",0,function({value:e,children:t}){return l.default.createElement(r.Provider,{value:e},t)},"State",0,n,"useOpenClosed",0,function(){return(0,l.useContext)(r)}],33137),e.s(["isDisabledReactIssue7711",0,function(e){let t=e.parentElement,l=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(l=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(l))&&r}],33538)},97701,e=>{"use strict";e.s(["match",0,function e(t,l,...r){if(t in l){let e=l[t];return"function"==typeof e?e(...r):e}let n=Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(l).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}])},2155,e=>{"use strict";var t=e.i(80758);e.s(["getOwnerDocument",0,function(e){return t.env.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}])},32607,e=>{"use strict";e.s(["classNames",0,function(...e){return Array.from(new Set(e.flatMap(e=>
1"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}])},20,e=>{"use strict";let t,l;var r=e.i(71645),n=e.i(32607),a=e.i(97701),s=((t=s||{})[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t),i=((l=i||{})[l.Unmount=0]="Unmount",l[l.Hidden=1]="Hidden",l);function o(e,t={},l,a,s){let{as:i=l,children:u,refName:p="ref",...m}=f(e,["unmount","static"]),g=void 0!==e.ref?{[p]:e.ref}:{},h="function"==typeof u?u(t):u;"className"in m&&m.className&&"function"==typeof m.className&&(m.className=m.className(t));let v={};if(t){let e=!1,l=[];for(let[r,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&l.push(r);e&&(v["data-headlessui-state"]=l.join(" "))}if(i===r.Fragment&&Object.keys(d(m)).length>0){if(!(0,r.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(m).map(e=>`  - ${e}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
3`)].join(`
4`));let e=h.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,n.classNames)(null==e?void 0:e.className(...t),m.className):(0,n.classNames)(null==e?void 0:e.className,m.className);return(0,r.cloneElement)(h,Object.assign({},c(h.props,d(f(m,["ref"]))),v,g,{ref:s(h.ref,g.ref)},t?{className:t}:{}))}return(0,r.createElement)(i,Object.assign({},f(m,["ref"]),i!==r.Fragment&&g,i!==r.Fragment&&v),h)}function u(...e){return e.every(e=>null==e)?void 0:t=>{for(let l of e)null!=l&&("function"==typeof l?l(t):l.current=t)}}function c(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},l={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=l[e]||(l[e]=[]),l[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(l).map(e=>[e,void 0])));for(let e in l)Object.assign(t,{[e](t,...r){for(let n of l[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...r)}}});return t}function d(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function f(e,t=[]){let l=Object.assign({},e);for(let e of t)e in l&&delete l[e];return l}e.s(["Features",0,s,"RenderStrategy",0,i,"forwardRefWithAs",0,function(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})},"render",0,function({ourProps:e,theirProps:t,slot:l,defaultTag:r,features:n,visible:s=!0,name:i,mergeRefs:d}){d=null!=d?d:u;let f=c(t,e);if(s)return o(f,l,r,i,d);let p=null!=n?n:0;if(2&p){let{static:e=!1,...t}=f;if(e)return o(t,l,r,i,d)}if(1&p){let{unmount:e=!0,...t}=f;return(0,a.match)(+!e,{0:()=>null,1:()=>o({...t,hidden:!0,style:{display:"none"}},l,r,i,d)})}return o(f,l,r,i,d)},"useMergeRefsFn",0,function(){let e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>{for(let l of e.current)null!=l&&("function"==typeof l?l(t):l.current=t)},[]);return(...l)=>{if(!l.every(e=>null==e))return e.current=l,t}}])},98348,e=>{"use strict";let t;var l=((t=l||{}).Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t);e.s(["Keys",0,l])},86148,e=>{"use strict";let t,l;var r,n=e.i(71645),a=e.i(14189),s=e.i(87296),i=e.i(35696);function o(e){var t;if(e.type)return e.type;let l=null!=(t=e.as)?t:"button";if("string"==typeof l&&"button"===l.toLowerCase())return"button"}var u=e.i(94316),c=e.i(33137),d=e.i(33538),f=e.i(97701),p=e.i(2155),m=e.i(20);let g=null!=(r=n.default.startTransition)?r:function(e){e()};var h=e.i(98348),v=((t=v||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),C=((l=C||{})[l.ToggleDisclosure=0]="ToggleDisclosure",l[l.CloseDisclosure=1]="CloseDisclosure",l[l.SetButtonId=2]="SetButtonId",l[l.SetPanelId=3]="SetPanelId",l[l.LinkPanel=4]="LinkPanel",l[l.UnlinkPanel=5]="UnlinkPanel",l);let b={0:e=>({...e,disclosureState:(0,f.match)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>
4e.panelId===t.panelId?e:{...e,panelId:t.panelId}},k=(0,n.createContext)(null);function x(e){let t=(0,n.useContext)(k);if(null===t){let t=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,x),t}return t}k.displayName="DisclosureContext";let y=(0,n.createContext)(null);y.displayName="DisclosureAPIContext";let w=(0,n.createContext)(null);function P(e,t){return(0,f.match)(t.type,b,e,t)}w.displayName="DisclosurePanelContext";let j=n.Fragment,S=m.Features.RenderStrategy|m.Features.Static,B=Object.assign((0,m.forwardRefWithAs)(function(e,t){let{defaultOpen:l=!1,...r}=e,s=(0,n.useRef)(null),i=(0,u.useSyncRefs)(t,(0,u.optionalRef)(e=>{s.current=e},void 0===e.as||e.as===n.Fragment)),o=(0,n.useRef)(null),d=(0,n.useRef)(null),g=(0,n.useReducer)(P,{disclosureState:+!l,linkedPanel:!1,buttonRef:d,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:h,buttonId:v},C]=g,b=(0,a.useEvent)(e=>{C({type:1});let t=(0,p.getOwnerDocument)(s);if(!t||!v)return;let l=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(v):t.getElementById(v);null==l||l.focus()}),x=(0,n.useMemo)(()=>({close:b}),[b]),w=(0,n.useMemo)(()=>({open:0===h,close:b}),[h,b]);return n.default.createElement(k.Provider,{value:g},n.default.createElement(y.Provider,{value:x},n.default.createElement(c.OpenClosedProvider,{value:(0,f.match)(h,{0:c.State.Open,1:c.State.Closed})},(0,m.render)({ourProps:{ref:i},theirProps:r,slot:w,defaultTag:j,name:"Disclosure"}))))}),{Button:(0,m.forwardRefWithAs)(function(e,t){let l=(0,s.useId)(),{id:r=`headlessui-disclosure-button-${l}`,...c}=e,[f,p]=x("Disclosure.Button"),g=(0,n.useContext)(w),v=null!==g&&g===f.panelId,C=(0,n.useRef)(null),b=(0,u.useSyncRefs)(C,t,v?null:f.buttonRef),k=(0,m.useMergeRefsFn)();(0,n.useEffect)(()=>{if(!v)return p({type:2,buttonId:r}),()=>{p({type:2,buttonId:null})}},[r,p,v]);let y=(0,a.useEvent)(e=>{var t;if(v){if(1===f.disclosureState)return;switch(e.key){case h.Keys.Space:case h.Keys.Enter:e.preventDefault(),e.stopPropagation(),p({type:0}),null==(t=f.buttonRef.current)||t.focus()}}else switch(e.key){case h.Keys.Space:case h.Keys.Enter:e.preventDefault(),e.stopPropagation(),p({type:0})}}),P=(0,a.useEvent)(e=>{e.key===h.Keys.Space&&e.preventDefault()}),j=(0,a.useEvent)(t=>{var l;(0,d.isDisabledReactIssue7711)(t.currentTarget)||e.disabled||(v?(p({type:0}),null==(l=f.buttonRef.current)||l.focus()):p({type:0}))}),S=(0,n.useMemo)(()=>({open:0===f.disclosureState}),[f]),B=function(e,t){let[l,r]=(0,n.useState)(()=>o(e));return(0,i.useIsoMorphicEffect)(()=>{r(o(e))},[e.type,e.as]),(0,i.useIsoMorphicEffect)(()=>{l||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[l,t]),l}(e,C),E=v?{ref:b,type:B,onKeyDown:y,onClick:j}:{ref:b,id:r,type:B,"aria-expanded":0===f.disclosureState,"aria-controls":f.linkedPanel?f.panelId:void 0,onKeyDown:y,onKeyUp:P,onClick:j};return(0,m.render)({mergeRefs:k,ourProps:E,theirProps:c,slot:S,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,m.forwardRefWithAs)(function(e,t){let l=(0,s.useId)(),{id:r=`headlessui-disclosure-panel-${l}`,...a}=e,[i,o]=x("Disclosure.Panel"),{close:d}=function e(t){let l=(0,n.useContext)(y);if(null===l){let l=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,e),l}return l}("Disclosure.Panel"),f=(0,m.useMergeRefsFn)(),p=(0,u.useSyncRefs)(t,i.panelRef,e=>{g(()=>o({type:e?4:5}))});(0,n.useEffect)(()=>(o({type:3,panelId:r}),()=>{o({type:3,panelId:null})}),[r,o]);let h=(0,c.useOpenClosed)(),v=null!==h?(h&c.State.Open)===c.State.Open:0===i.disclosureState,C=(0,n.useMemo)(()=>({open:0===i.disclosureState,close:d}),[i,d]);return n.default.createElement(w.Provider,{value:i.panelId},(0,m.render)({mergeRefs:f,ourProps:{ref:p,id:r},theirProps:a,slot:C,defaultTag:"div",features:S,visible:v,name:"Disclosure.Panel"}))})});e.s(["Disclosure",0,B],86148)},36344,e=>{"use strict";var t=e.i(21890);e.s(["ChevronIcon",()=>t.default])},9271,e=>{"use strict";var t=e.i(43476);e.i(44879);var l=e.i(88102),r=e.i(3604),n=e.i(22095),a=e.i(41033),s=e.i(22016),i=e.i(71645);let o=i.default.memo(({bulletColor:e,tags:l=[],links:n=[],bulletColorShade:s=r.ColorShades.Shade_3_1,className:i=""})=>l?.length?(0,t.jsx)(c,{bulletColor:e,tags:l,links:n,bulletColorShade:s,className:(0,a.cn)("tag-list-author-card",i)}):(0,t.jsx)(t.Fragment,{}
4)),u=i.default.memo(({bulletColor:e,links:l=[],tags:n=[],bulletColorShade:s=r.ColorShades.Shade_3_1,className:i=""})=>n?.length?(0,t.jsx)(c,{bulletColor:e,links:l,tags:n,bulletColorShade:s,className:(0,a.cn)("tag-list text-4 font-normal md:text-5",i)}):(0,t.jsx)(t.Fragment,{})),c=({bulletColor:e,tags:a=[],links:o=[],bulletColorShade:u=r.ColorShades.Shade_3_1,className:c=""})=>{let d=(0,i.useId)();if(!a?.length)return(0,t.jsx)(t.Fragment,{});let f=!!o?.length,p=(0,l.ColorClass)(e,u,n.ColorType.Text);return(0,t.jsx)("ul",{className:c,children:a.map((e,l)=>{let r=f?o?.[l]:"",n=!!r;return(0,t.jsxs)("li",{className:p,children:[!n&&(0,t.jsx)("span",{className:"text-black",children:e}),n&&(0,t.jsx)(s.default,{prefetch:!1,href:r,className:"text-black hover:underline hover:underline-offset-2",children:e})]},`tags-${d}-tag-${l}`)})})};u.displayName="Tags",o.displayName="AuthorTags",e.s(["AuthorTags",0,o,"Tags",0,u])},40961,e=>{"use strict";var t=e.i(43476),l=e.i(41033),r=e.i(71645);e.i(44879);var n=e.i(88102),a=e.i(3604),s=e.i(22095);let i=r.default.memo(({title:e,subtitle:i,layout:o="left",className:u="",headerClassName:c="",color:d,colorShade:f=a.ColorShades.Shade_BG50,heading:p="h1",fullWidth:m=!0,id:g})=>{let h=d?(0,n.ColorClass)(d,f,s.ColorType.Background):"";return(0,t.jsxs)("header",{className:(0,l.cn)("block w-full",u),children:[r.default.createElement(p,{className:(0,l.cn)(`header-${o} text-black w-full`,h,{"w-fit":!m},c),id:g},(0,t.jsx)(t.Fragment,{children:e})),!!i&&i]})});i.displayName="Heading",e.s(["default",0,i])},99523,e=>{"use strict";e.s(["ParseTags",0,(...e)=>e?.join(" och ")?.split(/(och|•)/gi)?.map(e=>e?.trim())?.filter(e=>!!e&&"•"!==e&&"och"!==e.toLowerCase())??[]])},95007,e=>{"use strict";var t=e.i(43476),l=e.i(22016);e.i(44879);var r=e.i(88102),n=e.i(3604),a=e.i(22095),s=e.i(86019),i=e.i(41033),o=e.i(9271),u=e.i(99523),c=e.i(59318);e.s(["default",0,({link:e,image:d,name:f,title:p,variant:m,className:g,headingClassName:h})=>{m=m||s.ColorVariant.GreenBlue;let v=(0,i.cn)((0,r.ColorClass)(m,n.ColorShades.Shade_1_22,a.ColorType.Background),(0,r.ColorClass)(m,n.ColorShades.Shade_3_1,a.ColorType.Ring),(0,r.ColorClass)(m,n.ColorShades.Shade_1_45,a.ColorType.Background,a.ColorType.HoverState)),C=!!d?.url,b=C?`${d.url.startsWith("http")?"":"https://umb.barnensbibliotek.se"}${d.url}`:"",k=(0,u.ParseTags)(p);return(0,t.jsxs)("div",{className:(0,i.cn)("cursor-pointer","rounded-bl-50 rounded-br-3xl rounded-tl-50 rounded-tr-3xl outline-none ring-2","md:rounded-bl-3xl md:rounded-tl-50 md:rounded-tr-50","relative md:flex md:flex-row","relative grid grid-cols-2","gap-4 pr-4","items-stretch justify-stretch md:flex-col md:gap-0 md:pb-8 md:pr-0",`[:focus-within&_.author-image]:ring-${m}-primary`,"[:focus-within&_.author-image]:ring-2","focus-within:ring-4",`focus-within:ring-${m}-primary`,v,g),children:[C&&(0,t.jsx)("div",{className:(0,i.cn)("author-image shadow-custom relative","aspect-square h-auto overflow-hidden","rounded-full ring-2","md:mb-4 md:w-full",v),children:(0,t.jsx)(c.default,{src:b,alt:"",className:"min-w-full overflow-hidden border-none object-cover outline-none ring-0 md:min-h-full",width:222,height:222,loading:"lazy",priority:!1})}),(0,t.jsx)("div",{className:(0,i.cn)("flex flex-1 items-center md:justify-center md:px-4 ",{"md:w-full":C}),children:(0,t.jsxs)("div",{className:"flex h-full w-full flex-col items-start justify-center gap-2 py-2 md:flex md:flex-col md:flex-wrap md:content-center md:items-center md:justify-between md:gap-2 md:py-0",children:[(0,t.jsx)("div",{className:"w-full justify-end text-left md:flex md:flex-1 md:items-center md:justify-center md:text-center",children:(0,t.jsx)("h3",{children:(0,t.jsx)(l.default,{prefetch:!1,href:e||"#",passHref:!0,className:"border-none underline-offset-2 outline-none ring-0 hover:underline",children:(0,t.jsx)("span",{className:(0,i.cn)("after:absolute after:inset-0","limited-text-2 w-full","md:unlimited-text md:max-h-fit",h),children:f})})})}),(0,t.jsx)(o.AuthorTags,{tags:k,bulletColor:m})]})})]})}])},76453,53228,e=>{"use strict";e.i(47167);var t,l=e.i(43476),r=e.i(22016),n=e.i(71645),a=e.i(41033);e.i(44879);var s=e.i(88102),i=e.i(3604),o=e.i(22095),u=e.i(86019),c=e.i(59318),d=e.i(9271);e.s(["default",0,function({link:e,image:t,title:f,alternativeTitle:p,className:m,tags:g=[],variant:h=u.ColorVariant.GreenBlue}){let v=t?.[0],C=v?.url||"",b=v?.properties,k=b?.alt??"",x={alt:k,url:C,useFallback:!C,src:C?`https://umb.barnensbibliotek.se${C}`:`/images/fallback/${h}.svg`,ariaHidden:k?"false":"true",width:v?.width??720,height:v?.height??405},y=n.default.useId(),w=`h3-link-${y}`,P=`ring-${h}-3.1 hover:bg-${h}-1.45 focus-whitin:bg-${h}-1.22 focus-within:ring-${h}-primary bg-${h}-1.22`;return(0,l.jsxs)("article",{"aria-labelledby":w,className:(0,a.cn)("link-card grid grid-cols-1 rounded-2xl border-none ring-2 focus-within:ring-4",P,m),children:[(0,l.jsx)("h3",{id:w,className:(0,a.cn)("order-3 p-6",{"mt-2 pt-0":!!g?.length}),children:(0,l.jsx)(r.default,{prefetch:!1,passHref:!0,href:e||"#",className:"order-3 hover:underline hover:underline-offset-2 focus:border-none focus:outline-none focus:ring-0",children:p??f})}),(0,l.jsx)(d.Tags,{tags:g,bulletColor:h,className:"order-2 p-6 pb-0"}),(0,l.jsx)("figure",{className:(0,a.cn)("order-1 m-0 flex aspect-[16/9] h-auto w-full max-w-none items-center justify-center rounded-2xl p-0","shadow-custom"),"aria-hidden":x.ariaHidden,children:(0,l.jsx)(c.default,{loading:"lazy",src:x.src,alt:"","aria-hidden":"true",className:(0,a.cn)("z-20 m-0 aspect-[16/9] h-full w-full min-w-full max-w-full p-0 shadow-none filter-none",(0,s.ColorClass)(h,i.ColorShades.Shade_3_1,o.ColorType.Ring,o.ColorType.Outline),(0,s.ColorClass)(h,i.ColorShades.Shade_1_22,o.ColorType.Backgroun
4d),"outline-solid outline-2","rounded-2xl",{"object-fit h-auto w-auto object-center p-4":x.useFallback,"min-h-full min-w-full object-cover object-top":!x.useFallback}),width:x.width,height:x.height})})]})}],76453);var f=((t={}).defaultPage="defaultPage",t.adultPage="adultPage",t.adultContentPage="adultContentPage",t.articlesListPage="articlesListPage",t.articlePage="articlePage",t.authorListPage="authorListPage",t.authorPage="authorPage",t.craftListPage="craftListPage",t.craftPage="craftPage",t.mediaListPage="mediaListPage",t.mediaPage="mediaPage",t.quizListPage="quizListPage",t.quizPage="quizPage",t.writeListPage="writeListPage",t.writePage="writePage",t.booktipListPage="booktipListPage",t.themeListPage="themeListPage",t.themePage="themePage",t.posterPage="posterPage",t.bookPostersListPage="bookPostersListPage",t),p=e.i(99523);let m={[f.defaultPage]:"Övrigt",[f.adultPage]:"Vuxen",[f.adultContentPage]:"Vuxen",[f.articlesListPage]:"Artikel",[f.articlePage]:"Artikel",[f.authorListPage]:"Författare",[f.authorPage]:"Författare",[f.craftListPage]:"Pyssel",[f.craftPage]:"Pyssel",[f.mediaListPage]:"Media",[f.mediaPage]:"Media",[f.quizListPage]:"Quiz",[f.quizPage]:"Quiz",[f.writeListPage]:"Skriva",[f.writePage]:"Skriva",[f.booktipListPage]:"Boktips",[f.themeListPage]:"Tema",[f.themePage]:"Tema",[f.posterPage]:"Utskrift",[f.bookPostersListPage]:"Utskrift"},g=(e,t=null)=>{let l=[];try{if(e?.properties?.is_child_page===!1&&l.push(m.adultPage),(e?.properties?.hasPrintableContent===!0||e?.properties?.has_printable_content===!0)&&l.push(m.posterPage),e?.properties?.forfattareIllustrator){let t=(0,p.ParseTags)(e.properties.forfattareIllustrator);l=l.concat(t)}e?.properties?.pageFilterType&&l.push(e.properties.pageFilterType),e?.properties?.page_filter_type&&l.push(e.properties.page_filter_type);let r=m[e.contentType];if(r&&l.push(r),0===l.length)if(null==t)l.push(m.defaultPage);else{let e=g(t);e&&(l=e)}(l=[...new Set(l)]).length>1&&l.includes(m.defaultPage)&&(l=l.filter(e=>e!==m.defaultPage))}catch(r){console.error("Error while computing tags",{ex:r,page:e,parentPage:t,result:l})}return l};e.s(["getPageTag",0,g],53228)}]);

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.