PageSourceSearch

https://www.ark.no/_next/static/immutable/chunks/2s2vs9-1gwx4g.js

js ark.no collected 2026-09-24 08:49:21 UTC 9,741 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0c3e8-69c4-0000-8d22-bcc4b7a71003";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="f96a1900-9050-5700-b3a8-599eab6d442f")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,942730,e=>{"use strict";var t=e.i(997889);e.i(5992);var i=e.i(736004),r=e.i(409613),n=e.i(839438);e.i(5692);var a=e.i(186193),s=e.i(802300);e.i(299089);var o=e.i(782462);let c=n.default.memo(function({icon:e,title:c,href:l}){let d=n.default.useCallback(()=>{s.default.quickMenuClick(c,l,e)},[c,l,e]),u=(0,i.convertIconSymbol)(e),m=u?r.icons[u]:void 0;return(0,t.jsx)(o.Button,{as:a.SmartLink,href:l,onClick:d,tone:"neutral",mode:"outline",className:"_1xx7ogl0",icon:m,padding:4,prefetch:!1,children:c})});e.s(["QuickMenuItem",0,c],942730)},218502,e=>{"use strict";var t=e.i(997889),i=e.i(839438);e.i(5692);var r=e.i(236314),n=e.i(942730);let a=i.default.memo(function({items:e}){let a=i.default.useMemo(()=>e?.length?e.filter(e=>!!(e?.title&&e?.icon)).map(e=>{let t="internal"===e.type&&e.internalLink?(0,r.resolveInternalPath)(e.internalLink)??"":e.url??"";return{key:e._key,title:e.title,href:t,icon:e.icon}}):[],[e]);return(0,t.jsx)("nav",{"data-testid":"QuickMenu",className:"flex md:flex-wrap gap-1 md:gap-2 items-center pb-4 pt-1 md:pb-6 whitespace-nowrap overflow-x-auto md:overflow-visible","aria-label":"Hurtigmeny",children:a.map(e=>(0,t.jsx)(n.QuickMenuItem,{href:e.href,icon:e.icon,title:e.title},e.key))})});e.s(["QuickMenu",0,a])},219094,e=>{"use strict";var t=e.i(997889),i=e.i(251221);e.i(5692);var r=e.i(186193),n=e.i(476385);e.i(407647);var a=e.i(677625);e.i(299089);var s=e.i(782462),o=e.i(676572),c=e.i(2421),l=e.i(236314);e.i(690402);var d=e.i(186621),u=e.i(612181);e.i(961548);var m=e.i(815789),p=e.i(147230),h=e.i(271382),v=e.i(646139),k=e.i(122162),g=e.i(499960),f=e.i(557627),x=e.i(885222),b=e.i(559496);function w({hit:e,rankNumber:i,actionContext:r,sourceList:n,presentation:a="discovery"}){let s=(0,u.useOptionalProductActions)(),o=e.productId??e.sku,c=(0,d.useCartQuantity)(o),j=(0,b.resolvePrimaryAction)({hit:e,productActions:s,quantity:c,context:r,sourceList:n}),P=(0,l.productPath)(e.slug??e.sku),y=s?(0,t.jsx)(x.WishlistButton,{lookupId:o,sku:e.sku,productId:e.productId,actionContext:r,sourceList:n,productActions:s}):void 0;if("editorial"===a)return(0,t.jsx)(g.ProductTile,{hit:e,"data-testid":"RecommendationTile",href:P,presentation:a,wishlist:y,badges:e.sponsorship?(0,t.jsx)(v.ProductBadges,{hit:e}):void 0,action:"none"!==j.kind?(0,t.jsx)(p.CartAction,{...j}):void 0});let I=(0,t.jsx)(g.ProductTile,{hit:e,"data-testid":"RecommendationTile",href:P,className:i?"relative z-10 flex-1 min-w-0 bg-white":void 0,badges:(0,t.jsx)(v.ProductBadges,{hit:e}),wishlist:i?void 0:y,dice:(0,t.jsx)(h.DiceRoll,{value:e.socialProof?.bestDiceRoll??0}),rating:(0,t.jsx)(f.StarRating,{rating:e.socialProof?.rating,reviewCount:e.socialProof?.reviewCount}),price:e.viewerPrice?(0,t.jsx)(k.ProductPrice,{price:e.viewerPrice.price,listPrice:e.viewerPrice.listPrice,nonBook:!1===e.isBook}):void 0,availability:(0,t.jsx)(m.AvailabilityIndicator,{availability:e.availability}),action:"none"!==j.kind?(0,t.jsx)(p.CartAction,{...j}):void 0});if(!i)return I;let A=String(i).length>1;return(0,t.jsxs)("div",{className:"relative isolate flex h-full items-stretch overflow-visible",children:[(0,t.jsx)("span",{"aria-label":`Rangert som nummer ${i}`,className:`pointer-events-none absolute _1ul1f4s4 ${A?"_1ul1f4s1":"_1ul1f4s0"} z-0 flex select-none items-center font-ppnyc font-extrabold leading-none tracking-[-0.04em] text-primary ${A?"_1ul1f4s3":"_1ul1f4s2"}`,children:i}),I]})}let j=[2,3,4,5,5,6,7],P=[2,2,2,3,4,4,5];function y(e,t){let i=e.series?.find(e=>e.slug===t);return i?.sortOrder??Number.MAX_SAFE_INTEGER}e.s(["RecommendationsRow",0,function({data:e,title:l,"data-testid":d="RecommendationsList",subt
1itle:u,className:m,config:p,tracking:h,sortBySeriesSlug:v,cta:k}){let g=v?[...e.items].sort((e,t)=>y(e.hit,v)-y(t.hit,v)):e.items,f=g.map(({hit:t,strategyId:i})=>{let r=t.viewerPrice;return{hit:t,trackingAttributes:"recommendations"===e.tracking.kind?(0,a.getRecommendationItemTrackingAttributes)({itemId:t.sku,itemName:t.name,strategyId:i,price:r?.price,section:h?.section}):(0,a.getResultItemTrackingAttributes)({itemId:t.sku,itemName:t.name,price:r?.price})}}),x="recommendations"===e.tracking.kind?(0,a.getRecommendationsContainerTrackingAttributes)({recommendationSetId:e.tracking.recommendationSetId,recommendationRequestId:e.tracking.recommendationRequestId,numResults:e.items.length,contextProductIds:e.tracking.contextProductIds}):(0,a.getResultsContainerTrackingAttributes)({kind:"generic",numResults:e.items.length}),b=l??e.resolvedTitle,I=p?.layout??"carousel",A="carousel"===I&&(p?.showRanking??!1),C=h?.context??"recommendation",S="recommendations"===e.tracking.kind?{id:e.tracking.recommendationSetId,name:b}:void 0,R=g.map((e,t)=>S?{...S,position:t+1}:void 0),N=p?.columns??(A?P:j),T=i.vars.space[4],_=A?"ranking":"default",L=p?.ctaPlacement==="slide"&&!!k,B=L?void 0:k,D=!!(b||u||B?.label),z=L&&k?(0,t.jsx)("div",{className:"_145zoz40","data-testid":"RecommendationsList_cta",children:(0,t.jsx)(s.Button,{as:r.SmartLink,href:k.href,mode:"outline",children:k.label})}):null;return(0,t.jsx)(n.ListSection,{"data-testid":d,className:(0,c.cn)(m),title:D?b:void 0,subtitle:D?u??void 0:void 0,cta:B,config:{layout:I,titleSize:p?.titleSize,titleFont:p?.titleFont,columns:N,peek:!0,peekFraction:A?void 0:.2,gap:T,showArrows:p?.showArrows,showDots:p?.showDots,headerPlacement:p?.headerPlacement},...x,children:"carousel"===I?[...f.map(({hit:e,trackingAttributes:i},r)=>{let n=e.productId||e.sku;return(0,t.jsx)(o.CarouselSlide,{variant:_,...i,children:(0,t.jsx)(w,{hit:e,rankNumber:A?r+1:void 0,actionContext:C,sourceList:R[r],presentation:p?.presentation})},`rec-slide-${n}-${r}`)}),z?(0,t.jsx)(o.CarouselSlide,{variant:_,children:z},"rec-slide-cta"):null]:[...f.map(({hit:e,trackingAttributes:i},r)=>{let n=e.productId||e.sku;return(0,t.jsx)("li",{className:"h-full",...i,children:(0,t.jsx)(w,{hit:e,actionContext:C,sourceList:R[r],presentation:p?.presentation})},`rec-grid-${n}-${r}`)}),z?(0,t.jsx)("li",{children:z},"rec-grid-cta"):null]})}],219094)},559496,e=>{"use strict";var t=e.i(583512),i=e.i(398197);e.s(["resolvePrimaryAction",0,function({hit:e,productActions:r,quantity:n,context:a,sourceList:s}){var o;let c,l,d,u=e.productType??"default",m=e.availability?.preorderDate,p=(0,i.getCartActionLabel)({productType:u,marketPublicationDate:m}),h="audioBook"===u||"eBook"===u?`/kjop/${e.sku}`:void 0,v=!!h;if(!r)return v&&h?{kind:"purchase",productType:u,marketPublicationDate:m,actionLabel:p,href:h}:{kind:"none",productType:u,marketPublicationDate:m,actionLabel:p};if(v&&h)return{kind:"purchase",productType:u,marketPublicationDate:m,actionLabel:p,href:h,onNavigate:async e=>{r.isAuthenticated||(e.preventDefault(),await r.login(h))}};let k=(0,t.createCartActionDispatcher)(r,{context:a,sourceList:s,sku:e.sku,productId:e.productId,price:e.pricing?.customerPrice?.price,trackingProduct:(o=e,c=o.pricing?.customerPrice?.price,l=o.pricing?.customerPrice?.listPrice,d=o.categoryLevel0,{sku:o.sku,name:o.name,authors:(o.contributors??[]).filter(e=>"narrator"!==e.role).map(e=>({name:e.name})),brand:o.brands?.[0]?.name,language:o.languages?.[0],hierarchicalCategories:d?{level0:[d]}:void 0,pricesNokOre:"number"==typeof c?{customerPrice:{price:Math.round(100*c),..."number"==typeof l?{defaultPrice:Math.round(100*l)}:{}}}:void 0})});return{kind:"cart",quantity:n,productType:u,marketPublicationDate:m,actionLabel:p,disabled:e.availability?.isPurchasable===!1,onAdd:()=>{k.add(1)}}}])},476385,e=>{"use strict";var t=e.i(997889);e.i(5992);var i=e.i(213992);e.i(5692);var r=e.i(186193);e.i(299089);var n=e.i(389915),a=e.i(418142),s=e.i(151696),o=e.i(47506),c=e.i(645756);e.s(["ListSection",0,function({title:e,subtitle:l,cta:d,children:u,config:m,...p}){let h=!!(e||l||d),v=m?.layout==="grid",k=m?.headerPlacement??"top",g=v?(0,t.jsx)(a.Grid,{as:"ul",columns:m?.columns,gap:4,children:u}):(0,t.jsx)(n.Carousel,{options:{align:"start"},columns:m?.columns,peek:m?.peek,peekFraction:m?.peekFraction,gap:m?.gap,bleed:m?.bleed,showArrows:m?.showArrows,showDots:m?.showDots,children:u}),f=h?(0,t.jsxs)("div",{className:"_1fqwkcc1","data-testid":"ListSection_header",children:[(0,t.jsxs)(o.Stack,{gap:[2,2,4],className:"_1fqwkcc2",children:[e?(0,t.jsx)(c.Text,{as:"h2",size:m?.titleSize??[7,7,8],weight:"bold",font:m?.titleFont??"display",className:"_1fqwkcc3",children:e}):null,l?(0,t.jsx)(c.Text,{as:"p",size:[4,4,5],tone:"muted",children:l}):null]}),d?(0,t.jsx)("div",{className:"_1fqwkcc4",children:(0,t.jsx)(c.Text,{tone:"brand",as:r.SmartLink,href:d.href,weight:"semibold",children:(0,t.jsxs)(s.Inline,{children:[d.label,(0,t.jsx)(i.ChevronForwardIcon,{})]})})}):null]}):null;return(0,t.jsxs)(o.Stack,{as:"section","data-testid":"ListSection",className:"_1fqwkcc0",gap:[2,2,3],...p,children:["top"===k?f:null,g,"bottom"===k?f:null]})}],476385)},720096,e=>{"use strict";var t=e.i(839438);class i extends t.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("[page-sections] section render failed",{sectionType:this.props.sectionType,sectionKey:this.props.sectionKey,error:e,info:t})}render(){return this.state.hasError?null:this.props.children}}e.s(["PageSectionErrorBoundary",0,i])}]);
2
3//# chunkId=f96a1900-9050-5700-b3a8-599eab6d442f

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.