1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{87469:function(e,t,n){Promise.resolve().then(n.bind(n,14888)),Promise.resolve().then(n.bind(n,98087)),Promise.resolve().then(n.bind(n,47239)),Promise.resolve().then(n.t.bind(n,65878,23)),Promise.resolve().then(n.t.bind(n,72972,23)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.t.bind(n,87455,23)),Promise.resolve().then(n.t.bind(n,36539,23)),Promise.resolve().then(n.t.bind(n,2778,23)),Promise.resolve().then(n.bind(n,10116)),Promise.resolve().then(n.bind(n,29750)),Promise.resolve().then(n.bind(n,18249)),Promise.resolve().then(n.bind(n,90483)),Promise.resolve().then(n.bind(n,37982)),Promise.resolve().then(n.bind(n,51842)),Promise.resolve().then(n.bind(n,78750)),Promise.resolve().then(n.bind(n,76159)),Promise.resolve().then(n.bind(n,58672)),Promise.resolve().then(n.bind(n,52686)),Promise.resolve().then(n.bind(n,60950)),Promise.resolve().then(n.bind(n,14400)),Promise.resolve().then(n.bind(n,91181)),Promise.resolve().then(n.bind(n,42719)),Promise.resolve().then(n.bind(n,7825)),Promise.resolve().then(n.bind(n,25059))},10116:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var s=n(57437),l=n(14400),i=n(13786),r=n(2265);let a="hockeynewsse-bidder",o="hockeynewsse-bidder-preconnect";function d(){return(0,r.useEffect)(()=>{let e=window.matchMedia&&window.matchMedia("(max-width: 768px)").matches,t=t=>{var n,s;let l=null==t?void 0:t.detail;if(!(null==l?void 0:l.isEmpty))return;let i=document.getElementById(l.id),r=null==i?void 0:i.parentElement;if(!r)return;let d="data-fallback-for";if(r.querySelector("[".concat(d,'="').concat(l.id,'"]')))return;let c=(null!==(n=i.getAttribute("data-placement"))&&void 0!==n?n:"").toString(),u="true"===r.getAttribute("data-app"),f=(s=e||u,"mobile0"===c||"desktop0"===c?null:s?"hockeynews-320x320":c.includes("desktop3")||c.includes("desktop4")?"hockeynews-300x600":"hockeynews-980x240");if(!f)return;let m=document.createElement("div");m.setAttribute(d,l.id),m.setAttribute("class","ad fallback");let h=document.createElement("div");h.setAttribute("data-zone",f),m.appendChild(h),r.appendChild(m),function(){if("undefined"!=typeof document){if(!document.getElementById(o)){let e=document.createElement("link");e.id=o,e.rel="preconnect",e.href="https://bidder-cdn.fra1.cdn.digitaloceanspaces.com",e.crossOrigin="",document.head.appendChild(e)}if(!document.getElementById(a)){let e=document.createElement("script");e.id=a,e.async=!0,e.src="https://bidder-cdn.fra1.cdn.digitaloceanspaces.com/tags/hockeynewsse.js",document.head.appendChild(e)}}}()};return window.addEventListener("placementLoaded",t,!1),()=>window.removeEventListener("placementLoaded",t,!1)},[]),null}var c=e=>{let t=(0,r.useRef)(null),[n,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=t.current;if(!e)return;if("undefined"==typeof IntersectionObserver){l(!0);return}let n=new IntersectionObserver(e=>{for(let t of e)if(t.isIntersecting){l(!0),n.disconnect();break}},{rootMargin:"250px 0px"});return n.observe(e),()=>n.disconnect()},[]),(0,r.useEffect)(()=>{n&&(0,i.sendGTMEvent)({event:"ad_view",ad_type:"maxetise",context:e.context||e.id||""})},[n]),(0,s.jsx)("div",{ref:t,suppressHydrationWarning:!0,"data-team":e.team,"data-league":e.league,"data-category":e.category,"data-app":e.isApp?"true":void 0,children:n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"maxetise","data-placement":e.id,...e.keywords?{"data-keywords":JSON.stringify(e.keywords)}:{}}),(0,s.jsx)(d,{})]})})};let u=e=>["desktop3","desktop4"].includes(e)?{width:300,height:610}:["mobile1","mobile2","mobile3"].includes(e)?{width:320,height:320}:["desktop1","desktop2"].includes(e)?{width:980,height:250}:void 0;var f=n(84404),m=e=>{let t=u(e.id);return(0,s.jsxs)("div",{className:"z-10 relative",children:[!!t&&(0,s.jsx)("div",{className:"text-[8px] text-gray text-center",children:"ANNONS"}),(0,s.jsx)(f.Z,{className:"flex justify-center",minHeight:null==t?void 0:t.height,children:e.children})]})};let h=e=>(0,s.jsx)(m,{id:e.id,children:(0,s.jsx)(c,{...e,team:e.team,league:e.league,category:e.category,isApp:e.isApp})});var p=e=>{let{device:t,isApp:n}=(0,l.F)(),i=n?"app":t;return e.desktop&&"desktop"===i?(0,s.jsx)(h,{id:e.desktop,keywords:e.keywords,team:e.team,league:e.league,category:e.category,isApp:n}):e.mobile&&("mobile"===i||"app"===i)?(0,s.jsx)(h,{id:e.mobile,keywords:e.keywords,team:e.team,league:e.league,category:e.category,isApp:n}):void 0}},84404:function(e,t,n){"use strict";var s=n(57437),l=n(2265);t.Z=e=>{let{minHeight:t,className:n,children:i}=e,r=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e;let t=r.current;if(!t||"undefined"==typeof IntersectionObserver)return;let n=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){let e=t.offsetHeight;e>0&&(t.style.height="".concat(e,"px"),t.style.overflowY="clip")}else t.style.height="",t.style.overflowY=""},{rootMargin:"100px 0px"});if(n.observe(t),"undefined"!=typeof ResizeObserver)for(let n of(e=new ResizeObserver(()=>{let e=parseFloat(t.style.height);!Number.isNaN(e)&&t.scrollHeight>e&&(t.style.height="".concat(t.scrollHeight,"px"))}),Array.from(t.children)))e.observe(n);return()=>{n.disconnect(),null==e||e.disconnect(),t.style.height="",t.style.overflowY=""}},[]),(0,s.jsx)("div",{ref:r,className:n,style:t?{minHeight:t}:void 0,children:i})}},29750:function(e,t,n){"use strict";var s=n(57437),l=n(57099),i=n(33145),r=n(27648),a=n(2265),o=n(25415),d=n(54641);t.default=()=>{let[e,t]=(0,o.Z)(l.lT,!1),[n,c]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let e=navigator.userAgent.toLowerCase();/android/.test(e)?c("Android"):/iphone|ipad|ipod/.test(e)&&c("iOS")},[]),!n||e)?null:(0,s.jsxs)("div",{className:"bg-blue-light py-2 px-4 flex items-center space-x-2 fixed bottom-0 z-20 w-full shadow-lg",children:[(0,s.jsx)("button",{className:"btn-secondary p-0 rounded-full w-[25px] h-[25px] flex items-center justify-center",onClick:()=>{t(!0)},children:(0,s.jsx)(d.Z.Close,{className:"w-[10px] h-[10px]"})}),(0,s.jsxs)("div",{className:"flex space-x-2 flex-1 mr-auto items-center",children:[(0,s.jsx)("div",{className:"w-[45px] h-[45px] bg-blue flex items-center justify-center rounded-xl",children:(0,s.jsx)(i.default,{src:"/images/logo.svg",alt:"Hockeynews.se",unoptimized:!0,width:32,height:32})}),(0,s.jsxs)("div",{className:"text-white leading-none",children:[(0,s.jsx)("div",{className:"font-bold",children:"Hockeynews"}),(0,s.jsxs)("div",{className:"text-sm",children:["iOS"===n&&"App store","Android"===n&&"Google Play"]})]})]}),(0,s.jsx)(r.default,{href:"iOS"===n?"https://apps.apple.com/se/app/hockeynews-se/id6751881571?itscg=30200&itsct=apps_box_link&mttnsubad=675188
11571":"Android"===n?"https://play.google.com/store/apps/details?id=se.hockey_news.app":"/app",className:"btn-primary btn-small",children:"Ladda hem"})]})}},18249:function(e,t,n){"use strict";n.d(t,{default:function(){return c}});var s=n(57437),l=n(84505),i=n(57099),r=n(20005),a=n(27648),o=n(2265);function d(e){let{expireDate:t}=e,n=()=>{let e=new Date(t).getTime()-Date.now();if(e<=0)return{hours:"00",minutes:"00",seconds:"00"};let n=Math.floor(e/1e3);return{hours:String(Math.floor(n/3600)).padStart(2,"0"),minutes:String(Math.floor(n%3600/60)).padStart(2,"0"),seconds:String(n%60).padStart(2,"0")}},[l,i]=(0,o.useState)(n());(0,o.useEffect)(()=>{let e=setInterval(()=>{i(n())},1e3);return()=>clearInterval(e)},[t]);let r=e=>{let{value:t}=e;return(0,s.jsx)("div",{className:"flex gap-2",children:t.split("").map((e,t)=>(0,s.jsx)("span",{className:"grid h-16 w-10 md:h-14 md:w-10 place-items-center rounded-xl bg-black/10 text-2xl md:text-2xl font-extrabold leading-none text-blue-800",children:e},t))})};return(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-4 md:mb-0",children:[(0,s.jsx)(r,{value:l.hours}),(0,s.jsx)("span",{className:"-mt-1 text-xl font-black text-blue-800",children:":"}),(0,s.jsx)(r,{value:l.minutes}),(0,s.jsx)("span",{className:"-mt-1 text-xl font-black text-blue-800",children:":"}),(0,s.jsx)(r,{value:l.seconds})]})}function c(){var e;let[t,n]=(0,o.useState)(null),[c,u]=(0,o.useState)(!1),[f,m]=(0,o.useState)(!1),[h,p]=(0,o.useState)(!1);if((0,o.useEffect)(()=>{(async()=>{var e;let t=await (0,r.B)();if(await t.entitlements.hasAccess("",[i.xe]))return;let s=await (0,l.Cg)("campaign",{limit:1}),a=null==s?void 0:s.items[0];a&&!function(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(^| )"+e+"=([^;]+)"));return t?t[2]:null}("campaign_shown_".concat(a.sys.id,"_").concat(null!==(e=a.fields.version)&&void 0!==e?e:"1"))&&(n(a),m(!0),setTimeout(()=>u(!0),15e3))})()},[]),!f||!t||h)return null;let v=t.fields.expireDateTime;return(0,s.jsx)("div",{className:"fixed bottom-0 left-0 w-full z-50 transition-transform duration-700 ease-out ".concat(c?"translate-y-0":"translate-y-full"),children:(0,s.jsxs)("div",{className:"relative w-full bg-yellow p-4 shadow-2xl",children:[(0,s.jsx)("button",{onClick:()=>{var e,n;u(!1);let s=(null==t?void 0:null===(e=t.fields)||void 0===e?void 0:e.expireDateTime)?new Date(t.fields.expireDateTime).getTime():Date.now()+6048e5;!function(e,t,n){let s=new Date(n);document.cookie="".concat(e,"=").concat(t,"; expires=").concat(s.toUTCString(),"; path=/; SameSite=Lax")}("campaign_shown_".concat(t.sys.id,"_").concat(null!==(n=t.fields.version)&&void 0!==n?n:"1"),"true",s),window.setTimeout(()=>{p(!0)},700)},className:"absolute top-0 right-0 m-4 text-sm hover:opacity-70 transition-opacity",children:"St\xe4ng"}),(0,s.jsxs)("div",{className:"container px-4 pt-8 pb-2 md:py-2 flex flex-col md:flex-row gap-4 items-center mx-auto max-w-[980px] justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-4 md:gap-8",children:[v&&(0,s.jsx)(d,{expireDate:v}),(0,s.jsxs)("div",{className:"text-center md:text-left",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-blue-800 leading-tight",children:t.fields.name}),(0,s.jsx)("p",{className:"text-xl leading-tight",children:t.fields.text})]})]}),(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)(a.default,{href:null!==(e=t.fields.url)&&void 0!==e?e:"#",className:"btn-secondary whitespace-nowrap text-xl hover:bg-blue-700",children:t.fields.ctaText||"L\xe4s mer"})})]})]})})}},90483:function(e,t,n){"use strict";n.d(t,{default:function(){return p}});var s=n(57437),l=n(99376),i=n(57099);let r=e=>e.sort((e,t)=>e.fields.name<t.fields.name?-1:e.fields.name>t.fields.name?1:0);var a=n(33145),o=n(27648),d=n(2265),c=e=>{let[t,n]=(0,d.useState)("");return(0,d.useEffect)(()=>{n(e.email)},[e.email]),t},u=e=>(0,s.jsxs)("footer",{className:"bg-blue-light text-white",children:[(0,s.jsxs)("div",{className:"container grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-8 p-4 lg:p-8 tws:px-0",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(o.default,{href:"/",children:(0,s.jsx)(a.default,{src:"/images/logo.svg",alt:"HockeyNews",width:56,height:44})}),(0,s.jsx)("p",{children:"P\xe5 HockeyNews.se ser vi till s\xe5 att du har koll p\xe5 senaste nytt fr\xe5n hockeyv\xe4rlden, och vi g\xf6r det fr\xe5n att du vaknar p\xe5 morgonen till det att du g\xe5r och l\xe4gger dig p\xe5 kv\xe4llen."}),(0,s.jsxs)("p",{children:[(0,s.jsx)("b",{children:"Ansvarig utgivare:"})," Carl Juborg",(0,s.jsx)("br",{}),(0,s.jsx)("b",{children:"Mejl:"})," ",(0,s.jsx)(c,{email:"[email protected]"})]}),(0,s.jsx)("p",{children:"\xa9 HockeyNews.se"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-bold text-xl",children:"Svenska Hockeyligan"}),(0,s.jsx)(o.default,{className:"block underline",href:"/ligor/shl",children:"Nyheter inom SHL"}),r(e.teams.shl).map(e=>(0,s.jsx)(o.default,{className:"block underline",href:"/lag/".concat(e.fields.slug),children:e.fields.name},e.sys.id)),(0,s.jsx)("h3",{className:"font-bold text-xl mt-4 lg:mt-8",children:"SDHL"}),(0,s.jsx)(o.default,{className:"block underline",href:"/ligor/sdhl",children:"Nyheter inom SDHL"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-bold text-xl",children:"HockeyAllsvenskan"}),(0,s.jsx)(o.default,{className:"block underline",href:"/ligor/hockeyallsvenskan",children:"Nyheter inom HockeyAllsvenskan"}),r(e.teams.ha).map(e=>(0,s.jsx)(o.default,{className:"block underline",href:"/lag/".concat(e.fields.slug),children:e.fields.name},e.sys.id)),(0,s.jsx)("h3",{className:"font-bold text-xl mt-4 lg:mt-8",children:"NHL"}),(0,s.jsx)(o.default,{className:"block underline",href:"/ligor/nhl",children:"Nyheter inom NHL"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-bold text-xl",children:"L\xe4nkar"}),i.V$.map((e,t)=>(0,s.jsx)(o.default,{className:"block underline",href:e.url,children:e.label},t)),(0,s.jsx)("button",{className:"cky-banner-element block underline",children:"\xc4ndra datainst\xe4llningar"})]})]}),(0,s.jsxs)("div",{className:"py-8",children:[(0,s.jsx)("p",{className:"text-center",children:"Vill du ha koll p\xe5 ditt spelande?"}),(0,s.jsxs)("div",{className:"flex justify-center items-center flex-wrap",children:[(0,s.jsx)("div",{className:"hover:opacity-60 m-4",children:(0,s.jsx)(a.default,{src:"/images/spela-ansvarsfullt.png",alt:"Spela ansvarsfullt",unoptimized:!0,width:141,height:35})}),(0,s.jsx)(o.default,{href:"https://stodlinjen.se/",className:"hover:opacity-60 m-4",target:"_blank",children:(0,s.jsx)(a.default,{src:"/images/stodlinjen.png",alt:"St\xf6dlinjen",unoptimized:!0,width:175,height:35})}),(0,s.jsx)(o.default,{href:"https://www.spelpaus.se/",className:"hover:opacity-60 m-4",target:"_blank",children:(0,s.jsx)(a.default,{src:"/images/spelpaus.png",alt:"Spelpaus",unoptimized:!0,width:175,height:35})}),(0,s.jsx)(o.default,{href:"https://www.spelinspektionen.se/",className:"hover:opacity-60 m-4",target:"_blank",children:(0,s.jsx)(a.default,{src:"/images/spelinspektionen.png",alt:"Spelinspektionen",unoptimized:!0,width:49,height:35})})]})]})]});let f=[{src:"/images/sveacasino.png",href:"https://www.sveacasino.se/",alt:"SveaCasino"},{src:"/images/paf.png",href:"https://www.paf.se/",alt:"Paf"},{src:"/images/hajper.png",href:"https://www.hajper.com/sv",alt:"Hajper"},{src:"/images/speedybet.png",href:"https://www.speedybet.com/",alt:"SpeedyBet"},{src:"/images/1x2.png",href:"https://www.1x2.se/",alt:"1x2"}];var m=()=>(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsxs)("div",{className:"container px-4 lg:px-8 tws:px-0 py-6",children:[(0,s.jsx)("h3",{className:"font-bold text-center mb-3",children:"Samarbetspartners"}),(0,s.jsx)("div",{className:"flex justify-center items-center flex-wrap gap-6",children:f.map(e=>(0,s.jsx)(o.default,{href:e.href,className:"hover:opacity-60",target:"_blank",rel:"sponsored nofollow",children:(0,s.jsx)(a.default,{src:e.src,alt:e.alt,unoptimized:!0,width:60,height:20,className:"h-5 w-auto object-contain"})},e.href))})]})});let h=["/fraga"];function p(e){let{teams:t}=e,n=(0,l.usePathname)();return h.includes(n)?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m,{}),(0,s.jsx)(u,{teams:t})]})}},37982:function(e,t,n){"use strict";var s=n(57437),l=n(36760),i=n.n(l),r=n(27648),a=n(99376);t.default=e=>{let{children:t,className:n,href:l,onClick:o,...d}=e,c=(0,a.usePathname)();return l?(0,s.jsx)(r.default,{...d,onClick:()=>null==o?void 0:o(),href:l,className:i()(n,{"text-yellow":c.includes(l.toString())}),children:t}):(0,s.jsx)("button",{onClick:()=>null==o?void 0:o(),className:n,children:t})}},51842:function(e,t,n){"use strict";var s=n(57437),l=n(7825),i=n(36760),r=n.n(i),a=n(30166),o=n(54641);let d=(0,a.default)(()=>n.e(299).then(n.bind(n,30299)),{loadableGenerated:{webpack:()=>[30299]},ssr:!1});t.default=e=>{let{isOpen:t,open:n,close:i}=(0,l.A)();return(0,s.jsx)("button",{className:r()("shadow-outer lg:hidden fixed z-50 right-6 bottom-[5.5rem] w-[60px] h-[60px] flex items-center justify-center text-white rounded-2xl",t?"bg-blue-800":"bg-blue-600"),onClick:()=>t?i():n((0,s.jsx)(d,{menuItems:e.menuItems,teamLogosBySlug:e.team
1LogosBySlug,authorImagesBySlug:e.authorImagesBySlug,leagueLogosBySlug:e.leagueLogosBySlug})),children:t?(0,s.jsx)(o.Z.Close,{}):(0,s.jsx)(o.Z.Menu,{})})}},78750:function(e,t,n){"use strict";var s=n(57437),l=n(91181),i=n(36760),r=n.n(i),a=n(2265);t.default=()=>{let{isOpen:e,Component:t}=(0,l.d)();return(0,a.useEffect)(()=>{if(e){let e=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight="".concat(e,"px")}else document.documentElement.style.overflow="",document.documentElement.style.paddingRight=""},[e]),(0,s.jsxs)("div",{className:r()("fixed inset-0 z-50",{"pointer-events-none":!e}),children:[(0,s.jsx)("div",{className:r()("transition-opacity bg-blue/75 absolute inset-0",e?"opacity-100":"opacity-0")}),(0,s.jsx)("div",{className:r()("transition-transform p-4 lg:p-10 flex items-center justify-center w-full h-full",e?"scale-100":"scale-0"),children:t})]})}},76159:function(e,t,n){"use strict";var s=n(62979),l=n(99376),i=n(2265);let r=e=>/^\/(nyheter|blogg|kronikor|nhl-resan)\//.test(e),a=e=>{r(e)||(0,s.d)({page_title:document.title,page_location:window.location.href,page_path:e,author:void 0,isPremium:void 0})};t.default=()=>{let e=(0,l.usePathname)(),t=(0,i.useRef)(!1);return t.current||(t.current=!0,a(window.location.pathname)),(0,i.useEffect)(()=>{var e;(null===(e=window.history.state)||void 0===e?void 0:e.idx)===0&&window.history.pushState(null,"",window.location.href)},[]),(0,i.useEffect)(()=>{a(window.location.pathname)},[e]),null}},58672:function(e,t,n){"use strict";var s=n(57437),l=n(42719),i=n(36760),r=n.n(i);t.default=()=>{let{notification:e}=(0,l.l)();return(0,s.jsx)("div",{className:r()("border-l-[10px] bg-white flex items-center space-x-2 transition-transform transition-opacity fixed z-30 top-[65px] inset-x-4 max-w-max shadow-lg mx-auto pointer-events-none p-4 rounded overflow-hidden text-center",e?"opacity-100 translate-y-0":"opacity-0 -translate-y-full",{"border-[#0cb530]":(null==e?void 0:e.level)==="success","border-[#b50c0c]":(null==e?void 0:e.level)==="error"}),children:null==e?void 0:e.message})}},52686:function(e,t,n){"use strict";var s=n(57437),l=n(7825),i=n(36760),r=n.n(i),a=n(2265);t.default=()=>{let{isOpen:e,Component:t}=(0,l.A)();return(0,a.useEffect)(()=>{e?document.documentElement.classList.add("overflow-hidden"):document.documentElement.classList.remove("overflow-hidden")},[e]),(0,s.jsx)("aside",{className:r()("transition-transform fixed bg-blue-light z-40 w-full h-full inset-0 overflow-auto pb-20",e?"translate-x-0":"translate-x-full"),children:t})}},60950:function(e,t,n){"use strict";var s=n(57437),l=n(57099),i=n(20005),r=n(27648),a=n(2265);t.default=()=>{let[e,t]=(0,a.useState)(!1),[n,o]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(0,i.B)().then(async e=>{let n=await e.auth.isAuthenticated(),s=await e.entitlements.hasAccess("",[l.xe]);t(n),o(!s)})},[]),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[e&&(0,s.jsx)("button",{className:"btn-secondary btn-small h-[40px] whitespace-nowrap",onClick:()=>{(0,i.B)().then(e=>e.profile.openHostedAccountPage())},children:"Konto"}),(0,s.jsx)("button",{className:"btn-secondary btn-small h-[40px] whitespace-nowrap",onClick:()=>{(0,i.B)().then(t=>{e?t.auth.logout():t.auth.loginWithRedirect()})},children:e?"Logga ut":"Logga in"}),n&&(0,s.jsx)(r.default,{href:"/plus",className:"btn-primary btn-small h-[40px] flex items-center",children:"PLUS"})]})}},14400:function(e,t,n){"use strict";n.d(t,{DeviceContextProvider:function(){return r},F:function(){return a}});var s=n(57437),l=n(2265);let i=(0,l.createContext)({device:null,isApp:!1}),r=e=>{let{children:t,device:n,isApp:l}=e;return(0,s.jsx)(i.Provider,{value:{device:n,isApp:l},children:t})},a=()=>{let{device:e,isApp:t}=(0,l.useContext)(i);return{device:e,isApp:t}}},91181:function(e,t,n){"use strict";n.d(t,{ModalContextProvider:function(){return r},d:function(){return a}});var s=n(57437),l=n(2265);let i=(0,l.createContext)({isOpen:!1,open:()=>null,close:()=>null,Component:null}),r=e=>{let{children:t}=e,[n,r]=(0,l.useState)(null);return(0,s.jsx)(i.Provider,{value:{Component:n,isOpen:!!n,open:e=>r(e),close:()=>r(null)},children:t})},a=()=>{let{isOpen:e,open:t,close:n,Component:s}=(0,l.useContext)(i);return{isOpen:e,open:t,close:n,Component:s}}},42719:function(e,t,n){"use strict";n.d(t,{NotificationContextProvider:function(){return r},l:function(){return a}});var s=n(57437),l=n(2265);let i=(0,l.createContext)({notification:null,showNotification:()=>null}),r=e=>{let{children:t}=e,[n,r]=(0,l.useState)(null);return(0,s.jsx)(i.Provider,{value:{notification:n,showNotification:e=>{r(e),setTimeout(()=>r(null),3e3)}},children:t})},a=()=>(0,l.useContext)(i)},7825:function(e,t,n){"use strict";n.d(t,{A:function(){return a},SidebarContextProvider:function(){return r}});var s=n(57437),l=n(2265);let i=(0,l.createContext)({isOpen:!1,open:()=>null,close:()=>null,Component:null}),r=e=>{let{children:t}=e,[n,r]=(0,l.useState)(null);return(0,s.jsx)(i.Provider,{value:{Component:n,isOpen:!!n,open:e=>r(e),close:()=>r(null)},children:t})},a=()=>{let{isOpen:e,open:t,close:n,Component:s}=(0,l.useContext)(i);return{isOpen:e,open:t,close:n,Component:s}}},25059:function(e,t,n){"use strict";n.d(t,{UserContextProvider:function(){return h},a:function(){return p}});var s=n(57437),l=n(33984),i=n(57099);let r=()=>JSON.parse(localStorage.getItem(i.Mi)||'{ "leagues": [], "teams": [] }'),a=(e,t)=>{let n=r();"team"===e&&(n.teams.includes(t)?localStorage.setItem(i.Mi,JSON.stringify({...n,teams:n.teams.filter(e=>e!==t)})):localStorage.setItem(i.Mi,JSON.stringify({...n,teams:[...n.teams,t]}))),"league"===e&&(n.leagues.includes(t)?localStorage.setItem(i.Mi,JSON.stringify({...n,leagues:n.leagues.filter(e=>e!==t)})):localStorage.setItem(i.Mi,JSON.stringify({...n,leagues:[...n.leagues,t]})))},o=e=>{localStorage.setItem(i.Mi,JSON.stringify(e))},d=()=>localStorage.getItem(i.Fw)||"",c=e=>{localStorage.setItem(i.Fw,e)};var u=n(20005),f=n(2265);let m=(0,f.createContext)({toggleFavorite:()=>null,updateFavorites:()=>null,updateFilter:()=>null,filter:"",favorites:{leagues:[],teams:[]},user:null,refreshUser:()=>Promise.resolve()}),h=e=>{let{children:t}=e,[n,i]=(0,f.useState)(null),[h,p]=(0,f.useState)(""),[v,x]=(0,f.useState)({leagues:[],teams:[]});return(0,f.useEffect)(()=>{x(r()),p(d())},[]),(0,f.useEffect)(()=>{(0,u.B)().then(async e=>
1{if(await e.auth.isAuthenticated()){if(await (0,l.jc)())i(await (0,l._j)());else{let t=await e.auth.getTokenSilently();if(t){let e=await (0,l.sE)(t);i(e.user),(0,l.LK)(e.token,e.expires_in)}}}else i(null),(0,l.hV)()})},[]),(0,s.jsx)(m.Provider,{value:{toggleFavorite:(e,t)=>{a(e,t),x(r())},updateFavorites:e=>{o(e),x(r())},updateFilter:e=>{c(e),p(d())},filter:h,favorites:v,user:n,refreshUser:()=>(0,l._j)().then(e=>i(e))},children:t})},p=()=>(0,f.useContext)(m)},33984:function(e,t,n){"use strict";n.d(t,{$3:function(){return h},$f:function(){return p},JH:function(){return c},LK:function(){return i},Oh:function(){return l},WK:function(){return u},ZY:function(){return f},_X:function(){return d},_j:function(){return v},fz:function(){return m},hV:function(){return a},jc:function(){return r},sE:function(){return o}}),n(83079);var s=n(12119),l=(0,s.$)("27e383c38eb1c117ed008f545786804e7e82d423"),i=(0,s.$)("e9b54a2f74804eb96763e821ceb0546b90af158b"),r=(0,s.$)("5a0d71f0c80f51c0156deb05281901a6870f4e24"),a=(0,s.$)("2764f21dbd4a8d804583a80c9bceabe6b8444b69"),o=(0,s.$)("69440005183b7574b654bd8a17a979f0448831da"),d=(0,s.$)("54b61897dff2538c43a5d06d3e72cb7ad7fcd60f"),c=(0,s.$)("92ee5547d7d550abfc3881e3b71bea7a8fce64e1"),u=(0,s.$)("b6c58bad9653e89ecea1f4e14e329b2ddb842c27"),f=(0,s.$)("383392cf2126584fe957f1fe918847f40e6237d6"),m=(0,s.$)("2e8ba047d8a2afb4eedafd9e21d041d928fb5188"),h=(0,s.$)("596f48b58f4bda15b8b5fbe12c30245e618b4f1f"),p=(0,s.$)("b395484bd1eb97d8539802bb3292d806c9a1cea4"),v=(0,s.$)("8bf19492c73ef642d5337fe16c6ff4ab30f00fda")},84505:function(e,t,n){"use strict";n.d(t,{wD:function(){return o},Nh:function(){return p},Cg:function(){return f},e9:function(){return m}});var s=n(2265),l=n(78062);function i(e){var t;let n=new Map,s=t=>{var l;if(Array.isArray(t))return t.map(e=>s(e)).filter(Boolean);if((null==t?void 0:null===(l=t.sys)||void 0===l?void 0:l.type)=="Link"){if(n.has(t.sys.id))return n.get(t.sys.id);let l=e.includes[t.sys.linkType].find(e=>e.sys.id==t.sys.id);if(!l)return null;for(let e of(n.set(t.sys.id,l),Object.keys((null==l?void 0:l.fields)||{})))l.fields[e]=s((null==l?void 0:l.fields)[e]);return l}return t},l=null===(t=e.items)||void 0===t?void 0:t.reduce((e,t)=>{let n={...t};for(let e of Object.keys(null==n?void 0:n.fields))n.fields[e]=s((null==n?void 0:n.fields)[e]);return e.push(n),e},[]);return{...e,items:l}}var r=n(40257);let a=e=>{let t="bettingTip"===e,n=t?r.env.BETTING_TIPS_HOST:"https://delivery.objectic.io";return{host:n,spaceId:t?r.env.BETTING_TIPS_SPACE:"HNbtnbmfMkQx",environmentId:t?r.env.BETTING_TIPS_ENVIRONMENT:"master",accessToken:t?r.env.BETTING_TIPS_TOKEN:"1298|37QKbZJaBNyFa01ycrMv3P2id01TXT28qEv9TRdM"}},o={COLUMN:"Column",ARTICLE:"Article",BLOG:"Blog",TIP:"Tip",NHL_JOURNEY:"NHL Journey",MATCH:"Match"},d=Number(r.env.CONTENT_SLOW_REQUEST_MS)||2e3;function c(e){let{url:t,accessToken:n,error:s,...l}=e;console.warn("[content]",JSON.stringify({...l,url:n?t.replace(encodeURIComponent(n),"[redacted]").replace(n,"[redacted]"):t,...s?{error:String(s)}:{}}))}let u=(0,s.cache)(async(e,t,n)=>{let s=Date.now();try{let u=await fetch(e,{signal:AbortSignal.timeout(8e3),next:{revalidate:Number("30")||30}});if(!u.ok){c({outcome:"http_error",contentType:t,url:e,accessToken:n,ms:Date.now()-s,status:u.status});return}let f=await u.json(),m=Date.now()-s;if(m>d){var l,r,a,o;c({outcome:"slow",contentType:t,url:e,accessToken:n,ms:m,status:u.status,total:null==f?void 0:f.total,included:((null==f?void 0:null===(r=f.includes)||void 0===r?void 0:null===(l=r.Entry)||void 0===l?void 0:l.length)||0)+((null==f?void 0:null===(o=f.includes)||void 0===o?void 0:null===(a=o.Asset)||void 0===a?void 0:a.length)||0)})}return i(f)}catch(l){c({outcome:l instanceof Error&&"TimeoutError"===l.name?"timeout":"error",contentType:t,url:e,accessToken:n,ms:Date.now()-s,error:l});return}});async function f(e,t){var n,s,i,r,o,d,c,f;let{accessToken:m,host:h,spaceId:p,environmentId:v}=a(e),x=l.Z.stringify({locale:"sv-SE",include:t.include||5,access_token:m,content_type:e,"fields.title[in]":t.title,"fields.id[in]":t.id||(null===(n=t.ids)||void 0===n?void 0:n.join(",")),"fields.slug[in]":t.slug||(null===(s=t.slugs)||void 0===s?void 0:s.join(",")),"fields.position[in]":t.position,"fields.leagues.sys.id[in]":null===(i=t.leagueIds)||void 0===i?void 0:i.join(","),"fields.league.sys.id[in]":t.leagueId,"fields.homeTeam.sys.id[in]":t.homeTeamId,"fields.awayTeam.sys.id[in]":t.awayTeamId,"fields.categories.sys.id[in]":null===(r=t.categoryIds)||void 0===r?void 0:r.join(","),"fields.teams.sys.id[in]":null===(o=t.teamIds)||void 0===o?void 0:o.join(","),"fields.team.sys.id[in]":t.teamId,"fields.players.sys.id[in]":null===(d=t.playerIds)||void 0===d?void 0:d.join(","),"fields.authors.sys.id[in]":null===(c=t.authorIds)||void 0===c?void 0:c.join(","),"fields.status[in]":t.liveGameStatus,"fields.type[in]":t.type,"fields.source[in]":t.source,"fields.isPremium[match]":t.premium,"fields.domain[in]":null===(f=t.domains)||void 0===f?void 0:f.join(","),"fields.publishers[match]":"bettingTip"===e?"HOCKEYNEWS":void 0,limit:t.limit,skip:t.skip,order:t.order||"-sys.createdAt"});return u("".concat(h,"/spaces/").concat(p,"/environments/").concat(v,"/e
1ntries?").concat(x),e,m)}async function m(e,t){var n;let s=await f(e,{...t,limit:1}),l=null==s?void 0:null===(n=s.items)||void 0===n?void 0:n.find(e=>{if(t.slug&&e.fields.slug===t.slug||t.type&&e.fields.type===t.type||t.id&&e.fields.id===t.id||t.sysId&&e.sys.id===t.sysId||t.title&&e.fields.title===t.title||t.source&&e.fields.source===t.source)return!0});return l?{...l,fields:{...l.fields}}:void 0}async function h(e){let{accessToken:t,host:n,spaceId:s,environmentId:o}=a(),u=l.Z.stringify({locale:"sv-SE",include:5,access_token:t,limit:e.limit,"sys.id[in]":e.sysId}),f="".concat(n,"/spaces/").concat(s,"/environments/").concat(o,"/assets?").concat(u),m=Date.now();try{let e=await fetch(f,{signal:AbortSignal.timeout(8e3),next:{revalidate:Number(r.env.CONTENT_REVALIDATE)||0}});if(!e.ok){c({outcome:"http_error",contentType:"asset",url:f,accessToken:t,ms:Date.now()-m,status:e.status});return}let n=await e.json(),s=Date.now()-m;return s>d&&c({outcome:"slow",contentType:"asset",url:f,accessToken:t,ms:s,status:e.status,total:null==n?void 0:n.total}),i(n)}catch(e){c({outcome:e instanceof Error&&"TimeoutError"===e.name?"timeout":"error",contentType:"asset",url:f,accessToken:t,ms:Date.now()-m,error:e});return}}async function p(e){var t;let n=await h({...e,limit:1});return null==n?void 0:null===(t=n.items)||void 0===t?void 0:t.find(t=>{if(e.sysId&&t.sys.id===e.sysId)return!0})}},57099:function(e,t,n){"use strict";n.d(t,{Fw:function(){return c},Mi:function(){return d},Q8:function(){return l},V$:function(){return h},Xw:function(){return o},Yu:function(){return r},j$:function(){return a},lT:function(){return u},nY:function(){return m},o5:function(){return s},u3:function(){return i},xe:function(){return f}});let s=10,l="euconsent",i="https://www.tv4play.se/kampanj/hockeynewstotal",r="40a6134d7c314fe8",a={sm:640,md:768,lg:1024,xl:1280,tws:1348,xl2:1536},o={TWITTER:"https://twitter.com/intent/tweet?text=",FACEBOOK:"https://www.facebook.com/sharer/sharer.php?u=",WHATSAPP:"https://api.whatsapp.com/send?text=",LINKED_IN:"https://www.linkedin.com/shareArticle?mini=true&url="},d="hockeynews.favorites",c="hockeynews.filter",u="hockeynews.app-bar",f="https://hockeynews.se/plus",m="https://api.sesamy.com/paywall/paywalls/hockeynews/JO276SEsHjcvFoprxQgD8.json",h=[{url:"/om-hockeynews",label:"Om HockeyNews"},{url:"/partners",label:"Partners"},{url:"/annonsera",label:"Annonsera"},{url:"/feedback",label:"L\xe4mna feedback"},{url:"/cookies",label:"Cookies"},{url:"/careers",label:"Careers"},{url:"/tipsa",label:"Tipsa"},{url:"/kontakt",label:"Kontakt"},{url:"/folj",label:"F\xf6lj"},{url:"/prenumerationsvillkor",label:"Prenumerationsvillkor"},{url:"/kundtjanst",label:"Kundtj\xe4nst"},{url:"/personuppgiftspolicy",label:"Personuppgiftspolicy"},{url:"/rss",label:"RSS"},{url:"/nyhetsbrev",label:"Nyhetsbrev"},{url:"/ai-policy",label:"AI-policy"},{url:"/prenumerera",label:"Prenumerera h\xe4r"},{url:"/redaktionell-policy",label:"Redaktionell policy"},{url:"/spelbolag",label:"Spelbolag"},{url:"/speltips",label:"Speltips"},{url:"/app",label:"Ladda hem appen gratis!"},{url:"/sponsrat-innehall ",label:"Sponsrat inneh\xe5ll"}]},20005:function(e,t,n){"use strict";async function s(){var e;return(null===(e=window.sesamy)||void 0===e?void 0:e.isReady())?window.sesamy:new Promise((e,t)=>{let n=setTimeout(()=>{window.sesamy?e(window.sesamy):t(Error("sesamyReady event did not occur within the expected time."))},5e3);window.addEventListener("sesamyJsReady",function s(){window.sesamy?(clearTimeout(n),window.removeEventListener("sesamyJsReady",s),e(window.sesamy)):t(Error("Sesamy API is not available"))})})}n.d(t,{B:function(){return s}})},26381:function(e,t,n){"use strict";n.r(t),t.default=e=>{let{src:t,width:n,quality:s}=e;if(/^https?:\/\//.test(t)){let e=new URL(t);return e.searchParams.set("fm","auto"),e.searchParams.set("width",n.toString()),e.searchParams.set("quality",(s||90).toString()),e.href}return"".concat(t,"?fm=auto&w=").concat(n,"&q=").concat(s||90)}},62979:function(e,t,n){"use strict";n.d(t,{d:function(){return l}});var s=n(13786);let l=e=>{let t=e.page_path;return window.__lastTrackedVirtualPageView!==t&&(window.__lastTrackedVirtualPageView=t,(0,s.sendGTMEvent)({event:"virtual_page_view",...e}),!0)}},2778:function(){}},function(e){e.O(0,[2612,2972,5878,3786,6112,4641,2971,2117,1744],function(){return e(e.s=87469)}),_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.