PageSourceSearch

https://torghatten.no/_next/static/chunks/pages/about-a68116679619a61b.js

js torghatten.no collected 2026-09-25 04:07:55 UTC 8,236 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2521],{31115:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return l(72627)}])},44952:function(e,n,l){"use strict";l.d(n,{Z:function(){return d}});var r=l(24246),t=l(67676),s=l(20714),i=l(79894),a=l.n(i);function d(e){let{news:n}=e;return(0,r.jsxs)("div",{className:"grid w-full",children:[n&&(0,r.jsx)("div",{className:"col-span-6",children:(0,r.jsx)(a(),{className:"group",href:`/about/news/${n[0]._id}/${n[0].slug.current}`,children:(0,r.jsxs)("div",{className:"mb-6 flex w-full flex-col justify-between overflow-hidden rounded-xl shadow-[0_16px_60px_0_rgba(0,0,0,0.06)] transition-shadow duration-[600ms] ease-[cubic-bezier(0.32,0.58,0.2,1)] hover:shadow-[0_6px_30px_0_rgba(0,0,0,0.1)] md:flex-row",children:[(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-2 p-6 sm:p-12",children:[n[0].category&&(0,r.jsx)("span",{className:"text-allcaps-xs text-red-700",children:n[0].category}),n[0].title&&(0,r.jsx)("h2",{children:(0,t.K)(n[0].title,Math.floor(n[0].title.split(" ").length/2))})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(o,{image:n[0].previewImage,height:500,width:600,isBigArticle:!0,styles:"rounded-b-xl group-hover:scale-105 transition-scale duration-[1200ms] ease-[cubic-bezier(0.32,0.58,0.2,1)] md:rounded-tr-xl sm:rounded-br-xl md:rounded-bl-none"})})]})})}),n&&n.length>1&&(0,r.jsx)("div",{className:"col-span-6 grid w-full grid-cols-6 gap-x-6 gap-y-4",children:n.slice(1).map((e,n)=>(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3 md:col-span-2",children:(0,r.jsx)("div",{className:"article-shadow overflow-hidden rounded-xl transition-shadow duration-[600ms] ease-[cubic-bezier(0.32,0.58,0.2,1)] hover:shadow-[0_6px_30px_0_rgba(0,0,0,0.1)]",children:(0,r.jsx)(a(),{"data-test-id":"news-banner-link",className:"group",href:`/about/news/${e._id}/${e.slug.current}`,children:(0,r.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsx)(o,{image:e.previewImage,height:500,width:600,isBigArticle:!1,styles:"md:rounded-tl-xl md:rounded-tr-xl md:rounded-bl-none sm:rounded-tl-xl sm:rounded-bl-none rounded-t-xl sm:rounded-b-none rounded-b-none group-hover:scale-105 transition-scale duration-[1200ms] ease-[cubic-bezier(0.32,0.58,0.2,1)]"})}),(0,r.jsxs)("div",{className:"min-h-[120px] p-3",children:[e.category&&(0,r.jsx)("span",{className:"text-allcaps-xs text-bluegrey-600",children:e.category}),e.title&&(0,r.jsx)("h2",{className:"text-medium-lg",children:e.title})]})]})})})},n))})]})}function o(e){let{image:n,height:l,width:t,isBigArticle:i,styles:a}=e;if(!n||!n.asset)return null;let d=null;try{d=(0,s.Z)(n).width(t).height(l).url()}catch(e){console.error("Error getting banner image",e)}return d?(0,r.jsx)("div",{className:`max-h-[${l}px] min-w-[100px] ${i?"min-h-[320px]":"min-h-[250px]"} ${a}`,style:{backgroundImage:`url(${d})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}):null}},64649:function(e,n,l){"use strict";l.d(n,{i:function(){return d}});var r=l(24246),t=l(67676),s=l(20714),i=l(79894),a=l.n(i);function d(e){let n,{banner:l,index:s,width:i}=e,d="bg-transparent shadow-[0_16px_60px_0_rgba(0,0,0,0.06)] rounded-xl",c="bg-blue-500 group-hover:bg-blue-600 text-white",u="text-blue-700";return 0===s&&(d="bg-bluegrey-100 rounded-xl shadow-[0_16px_60px_0_rgba(0,0,0,0.06)]",c="bg-green-400 group-hover:bg-green-500 group-hover:text-bluegrey-900 text-blue-900"),l&&l.bannerTheme&&("Historie"===l.bannerTheme||"History"===l.bannerTheme)&&(d="bg-yellow-100 rounded-xl shadow-[0_16px_60px_0_rgba(0,0,0,0.06)]",c="bg-yellow-400 group-hover:bg-yellow-500 text-yellow-900",n="text-yellow-900",u="text-yellow-900"),(0,r.jsx)(a(),{className:"group",href:l.bannerButton.relativeLinkUrl,children:(0,r.jsxs)("div",{className:`grid grid-cols-1 gap-2 md:grid-cols-2 ${d}`,children:[l.bannerImage&&(0,r.jsx)(o,{image:l.bannerImage}),(0,r.jsxs)("div",{className:"p-6 sm:p-12",children:[l.bannerTheme&&(0,r.jsx)("p",{className:`text-allcaps-xs ${n}`,children:l.bannerTheme}),l.bannerTitle&&(0,r.jsx)("h2",{className:`sm:text-semibold-5xl text-semibold-3xl mb-6 ${n}`,children:(0,t.K)(l.bannerTitle,3,2)}),l.bannerInfo&&(0,r.jsx)("p",{className:`text-light-2xl mb-6 ${n} ${u}`,children:l.bannerInfo}),l.bannerButton&&(0,r.jsx)("button",{className:`${c} text-button-lg w-full rounded-lg px-6 py-3 sm:w-fit`,children:l.bannerButton.linkText})]})]})})}function o(e){let{image:n}=e;if(!n)return null;let l=(0,s.Z)(n).width(600).height(500).url();return l?(0,r.jsx)("div",{className:"max-h-[550px] min-h-[300px] rounded-t-xl rounded-b-none sm:rounded-tl-xl sm:rounded-b-none sm:rounded-bl-none md:rounded-tl-xl md:rounded-tr-none md:rounded-bl-xl",style:{backgroundImage:`url(${l})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}):null}},2545:function(e,n,l){"use strict";l.d(n,{Dv:function(){return i},j$:function(){return s}});var r=l(27378);function t(){let[e,n]=(0,r.useState)({width:void 0});return(0,r.useEffect)(()=>{function e(){n({width:window.innerWidth})}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}let s={small:640,desktop:960};function i(){let{width:e}=t();return!!e&&e<s.small}n.ZP=t},72627:function(e,n,l){"use strict";l.r(n),l.d(n,{__N_SSG:function(){return b},default:function(){return g}});
1var r=l(24246),t=l(80495),s=l(44952),i=l(64649),a=l(67676),d=l(2545),o=l(12398),c=l(51383),u=l(79894),x=l.n(u);function m(e){let{data:n,news:l}=e,{t}=(0,c.useTranslation)("about"),{width:u}=(0,d.ZP)(),m=n&&n.publishedTitle?n.publishedTitle:t("news.title"),h=n&&n.ingress?n.ingress:t("news.description");return(0,r.jsx)("div",{className:"content-container mx-auto flex flex-1 justify-center px-4 lg:px-0",children:(0,r.jsxs)("div",{className:"content-container flex flex-1 flex-col items-center py-2",children:[(0,r.jsxs)("div",{className:"mb-9 sm:mb-12",children:[(0,r.jsx)("div",{children:(0,a.K)(m,4,3)}),(0,r.jsx)("p",{className:"text-light-2xl mt-6 sm:mt-12",children:h})]}),n&&n.infoBanner&&n.infoBanner.length>0&&n.infoBanner.map((e,n)=>(0,r.jsx)("div",{className:"mb-10 sm:mb-24",children:(0,r.jsx)(i.i,{banner:e,index:n,width:u})},n)),l[0]?.articles&&l[0].articles.length>0&&u&&(0,r.jsxs)("div",{className:"mb-12 flex flex-col gap-12",children:[(0,r.jsx)(s.Z,{news:l[0].articles}),(0,r.jsx)("button",{className:"text-button-xl bg-bluegrey-100 flex w-full items-center justify-around gap-4 self-center rounded-xl px-6 py-3 text-sm font-medium text-blue-500 uppercase hover:border-blue-700 hover:bg-blue-200 hover:text-blue-700 sm:w-fit",children:(0,r.jsx)(x(),{href:"/about/news",children:t("readMore")})})]}),(0,r.jsx)("div",{className:"mt-12 flex w-full flex-col gap-6 sm:flex-row",children:n&&n.aboutInfo&&n.aboutInfo.map((e,n)=>(0,r.jsx)("div",{className:"mb-6 ml-0 w-full sm:mb-0",children:(0,r.jsxs)("div",{children:[e.title&&(0,r.jsxs)("h3",{className:"text-medium-2xl mb-4",children:[e.title," "]}),e.info.length>0&&e.info.map((e,n)=>(0,r.jsx)("div",{className:"text-lg-regular",children:e.children&&e.children.length>0&&e.children.map((n,l)=>(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"mb-3",children:n.text}),e&&e.children&&l!==e.children.length-1&&(0,r.jsx)("br",{})]},l))},n)),e.link&&e.link.map((e,n)=>(0,r.jsx)("div",{className:"flex",children:(0,r.jsxs)("div",{className:"group hover:bg-bluegrey-100 flex shrink items-center rounded-lg py-2 pr-3 pl-1",children:[(0,r.jsx)(o.ol,{className:"fill-blue-900 transition-transform duration-[300ms] ease-in group-hover:translate-x-1 group-hover:fill-red-500"}),e.relativeLinkUrl&&(0,r.jsx)(x(),{href:e.relativeLinkUrl,className:"text-semibold-lg ml-2 text-blue-900 underline decoration-red-500 underline-offset-8 group-hover:decoration-transparent",children:e.linkText})]})},n))]})},n))})]})})}function h(e){let{data:n,news:l}=e;return(0,r.jsx)(m,{data:n,news:l})}var b=!0,g=function(e){let{data:n,news:l,metadataModel:s}=e;return(0,r.jsx)(t.Z,{showBottomBorder:!0,metaModel:s,children:(0,r.jsx)(h,{data:n,news:l})})}}},function(e){e.O(0,[4190,36,495,2888,9774,179],function(){return e(e.s=31115)}),_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.