1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2347],{19903:(e,t,r)=>{r.d(t,{d:()=>F});var i=r(94513),a=r(94285),n=r(43492),s=r(2589),o=r(45537),l=r(9876),d=r(57005),c=r(53334),h=r(38919),x=r(12551);r(94481);var p=r(35456),m=r(40188),u=r(10288),f=r(41066),g=r(89381),j=r(54020),v=r(60930),y=r(11730);let w={autoClose:5e3,closeButton:!1,hideProgressBar:!0,icon:!1,position:"bottom-center"},b=async({onToastDismiss:e,article:t})=>{let{uuid:r}=t;p.oR.info((0,i.jsx)(A,{article:t,onToastDismiss:e}),{...w,toastId:r,onClose:()=>{e({undoTriggered:!1})}})},A=({article:e,onToastDismiss:t})=>{let{uuid:r,teaserTitle:a}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(f.BJ,{spacing:g.B.Spacing24,direction:"row",children:[(0,i.jsx)(k,{children:"Artikeln \xe4r inte l\xe4ngre sparad"}),(0,i.jsx)(I,{onClick:()=>{p.oR.update(r,{onClose:()=>{t({undoTriggered:!0})}}),p.oR.dismiss(r)},variant:"text",children:"\xc5ngra"}),(0,i.jsx)(I,{onClick:()=>{p.oR.dismiss(r)},variant:"text",children:(0,i.jsx)(m.t,{href:"icon-close",className:"c-icon--24"})})]}),(0,i.jsx)(u.h,{value:g.B.Spacing8}),(0,i.jsx)(S,{children:a})]})},C=(0,y.AH)(["color:var(--gray-800);",";",""],(0,v.I)({fontFamily:"var(--font-family-sans-serif)",fontSize:"1rem"}),(0,j.xe)({mb:0})),k=y.Ay.h2.withConfig({componentId:"sc-76870e44-0"})(["flex:1;",""],C),S=y.Ay.p.withConfig({componentId:"sc-76870e44-1"})(["",""],C),I=(0,y.Ay)(n.$n).withConfig({componentId:"sc-76870e44-2"})([""," ",";background:none;border:none;color:var(--corp-color-primary);&:hover{cursor:pointer;}"],(0,j.xe)({p:0}),(0,v.I)({fontFamily:"var(--font-family-sans-serif)",fontSize:"1rem",fontWeight:500}));var E=r(60839),N=r(31157),z=r(6459);let F=({withLabel:e=!1,className:t,article:r,withUndoSnackBar:p=!1})=>{let m=(0,d.Hr)(),{isFeatureEnabled:u}=(0,d.jQ)(),{loading:f,readLaterItems:g,addReadLaterItem:j,deleteReadLaterItem:v}=(0,o.e)(),{session:y}=(0,l.wV)(),w=(0,d.Pj)(),[A,{status:C}]=(0,l.DB)(),[k,S]=(0,a.useState)(!1),[I,F]=(0,a.useState)(!1),[T,O]=(0,a.useState)(!1),R=r.uuid,H=g?.some(e=>e.articleId===R),$=(0,a.useCallback)(()=>{F(!0),(0,E.KA)("articleReadLater",{event:"article_save_limit_reached"})},[]),L=(0,a.useCallback)(async({undoTriggered:e=!1})=>{if(e){j({articleId:R}),(0,E.KA)("articleReadLater",{event:"article_save"});return}(0,E.KA)("articleReadLater",{event:"article_unsave"})},[j,R]),P=(0,a.useCallback)(async()=>{try{if(!A){S(!0),O(!0);return}if(!g)return;let e=!((0,z.lV)(y)&&y.accesses?.[w.brandShortName]?.NEWSSITE)&&g.length>=3;if(H){if(await v({articleId:R}),(0,E.KA)("articleReadLater",{event:"article_unsave"}),p)return void b({article:r,onToastDismiss:L});return}if(e)return void $();await j({articleId:R,handleReachedSaveLimit:$}),(0,E.KA)("articleReadLater",{event:"article_save"})}catch(e){N.vF.error({articleId:R},"Update for read later article failed")}},[j,r,R,v,$,H,A,L,g,y,w.brandShortName,p]);return((0,a.useEffect)(()=>{(async()=>{(0,z.lV)(y)&&T&&(O(!1),await P())})()},[P,y,T]),u)?(0,i.jsxs)(i.Fragment,{children:[k&&(0,i.jsx)(x.A,{onClose:()=>S(!1),open:k,type:"save"}),I&&(0,i.jsx)(h.A,{onClose:()=>F(!1),isOpen:I,ariaLabel:"subscription-modal",text:"F\xf6r att kunna spara obegr\xe4nsat antal artiklar beh\xf6ver du ha en prenumeration.",title:"S\xe5 sparar du fler artiklar",primaryButton:m?void 0:{text:"Prenumerera h\xe4r",href:"/prenumerera",type:"link",variant:"promo"},hideSecondaryButton:!0}),(0,i.jsx)(c.iu,{className:f||"pending"===C?"hidden":"",children:(0,i.jsx)(n.$n,{variant:"text",onClick:P,className:t,children:(0,i.jsx)(s.s,{text:`${e?H?"Sparad":"Spara":""}`,iconType:H?"icon-bookmark-active":"icon-bookmark",labelFontsize:"0.875rem"})})})]}):null}},35982:(e,t,r)=>{r.d(t,{P:()=>i.P});var i=r(59003)},36446:(e,t,r)=>{r.d(t,{B0:()=>s,Xk:()=>a,Yj:()=>n});var i=r(97028);let a=()=>{let e=window.location.hostname;if(/^\d+\.\d+\.\d+\.\d+$/.test(e))return;if((0,i.C)(e)){let t=e.split(".");return t.length>=3?t.slice(-3).join("."):void 0}let t=e.split(".");if(t.length>=2)return t.slice(-2).join(".")},n=e=>{if("undefined"==typeof document)return;let t=a(),r=t?`; domain=${t}`:"";document.cookie=`${e}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT${r}`};var s=function(e){return e[e.OneHour=3600]="OneHour",e[e.ONEDAY=86400]="ONEDAY",e[e.ONEWEEK=604800]="ONEWEEK",e[e.ONEMONTH=2592e3]="ONEMONTH",e}({})},38919:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(94513);r(94285);var a=r(30122),n=r(43492),s=r(423),o=r(91544),l=r(95629),d=r(36446),c=r(20748);let h=({onClose:e,isOpen:t,ariaLabel:r,title:h,text:x,primaryButton:p,secondaryButton:m={text:"Avbryt",action:e},hideSecondaryButton:u=!1})=>{let[,f]=(0,s.B)(),g=(0,o.useRouter)(),j="auth0-redirect-url",[,v]=(0,a.A)([j]),y={variant:p?.variant??"primary","aria-label":p?.text??"",...p?.type==="login"&&{onClick:()=>{e(),f(!0)}},...p?.type==="auth0-login"&&{onClick:()=>{v(j,g.asPath,{path:"/",maxAge:d.B0.OneHour,domain:(0,d.Xk)()})}},...!p?.type&&!p?.href&&{onClick:()=>{e(),localStorage.removeItem("checkout_session")}}};return(0,i.jsxs)(c.A,{isOpen:t,ariaLabel:r,onClose:e,title:h,children:[(0,i.jsx)(l.EY,{children:x}),(p||!u)&&(0,i.jsxs)(l.tG,{children:[!u&&(0,i.jsx)(n.$n,{"aria-label":m.text,onClick:m.action,variant:"tertiary",size:"large",children:m.text}),p&&(p.href?(0,i.jsx)(n.Aj,{href:p.href,size:"large",...y,children:p.text}):(0,i.jsx)(n.$n,{size:"large",...y,children:p.text}))]})]})}},45537:(e,t,r)=>{r.d(t,{e:()=>l});var i=r(57005),a=r(3197),n=r(31157),s=r(6459),o=r(9876);function l(){let{session:e,status:t}=(0,o.wV)(),{isFeatureEnabled:r}=(0,i.jQ)(),l="/api/resource/read_later",d=(0,s.lV)(e),c=r&&d&&"resolved"===t,{data:h,error:x,mutate:p}=(0,a.Ay)(c?`readLaterItems-${e.email}`:null,()=>fetch(l).then(e=>e.json())),m=e=>async({articleId:t,handleReachedSaveLimit:r})=>{if(!d)throw Error("Updating read later articles while not signed in is not allowed");try{let i=await fetch(l,{method:e,headers:{"Content-Type":"application/json"},body:JSON.stringify({articleId:t})});if(423===i.status)return r?.(),h??[];if(!i.ok)throw Error("Failed to update read later articles");await p()}catch(r){throw n.vF.error({error:r},`Error ${"POST"===e?"saving":"deleting"} article with id ${t}`),r}};return{readLaterItems:h,loading:!h&&!x&&c,addReadLaterItem:m("POST"),deleteReadLaterItem:m("DELETE")}}},59003:(e,t,r)=>{r.d(t,{P:()=>i.A});var i=r(56691)},60010:(e,t,r)=>{r.d(t,{c:()=>x});var i=r(94513),a=r(43492),n=r(57005),s=r(91544),o=r(11730),l=r(75769),d=r
1(39154),c=r(15923),h=r(37009);let x=({title:e,text:t})=>{let r=(0,n.Hr)(),o=(0,s.useRouter)().asPath;return(0,i.jsx)(l.wn,{children:(0,i.jsxs)(p,{isMobileApp:r,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(l.hE,{children:e}),(0,i.jsx)("p",{children:t})]}),(0,i.jsx)(m,{children:r?(0,i.jsx)(a.$n,{variant:"primary",size:"large",onClick:()=>{(0,h.eT)()},children:(0,c.u)("link","login")}):(0,i.jsx)(a.Aj,{variant:"primary",size:"large",href:(0,d.aM)(d.Y0.LOGIN,o),children:(0,c.u)("link","login")})})]})})},p=(0,o.Ay)(l.UC).withConfig({componentId:"sc-672be926-0"})(["",""],({isMobileApp:e})=>{if(e)return(0,o.AH)(["height:calc(100vh - 2rem);display:flex;flex-direction:column;justify-content:space-between;"])}),m=(0,o.Ay)(l.eM).withConfig({componentId:"sc-672be926-1"})(["align-self:center;"])},60994:(e,t,r)=>{r.d(t,{K:()=>u});var i=r(94513);r(94285);var a=r(10485),n=r(38255),s=r(54020),o=r(9876),l=r(57005),d=r(11730),c=r(35982),h=r(41528),x=r(73478),p=r(60010);let m=(0,d.Ay)(n.m).withConfig({componentId:"sc-26f2c522-0"})([""," min-height:40vh;"],(0,s.xe)({my:3,px:3})),u=({Component:e,loggedOutText:t="Du m\xe5ste vara inloggad f\xf6r att kunna se denna sidan.",loggedOutTitle:r})=>{let n=n=>{let[s,d]=(0,o.DB)(),u=(0,l.Hr)(),{isApp:f}=(0,l.nO)(),g=(0,l.Pj)(),j=`${g.getFullTitleName()} | ${r} | Utloggad`,v=f?(0,i.jsx)(x.a,{isApp:!0}):(0,i.jsx)(p.c,{title:"Logga in",text:t});return s?(0,i.jsx)(e,{...n}):(0,i.jsxs)(i.Fragment,{children:["pending"!==d.status?(0,i.jsx)(h.A,{showTakeoverAd:!1,titleMetaData:{title:j}}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(c.P,{fluid:!0,disableFooter:u,children:(0,i.jsx)(m,{children:"pending"===d.status?(0,i.jsx)(a.r,{children:(0,i.jsx)(a.y,{})}):v})})]})};return n.displayName=`withProtectedRoute(${e.displayName||e.name||"Component"})`,n}},75011:(e,t,r)=>{r.d(t,{Z:()=>l,e:()=>d});var i=r(94513);r(94285);var a=r(54020),n=r(60930),s=r(11730),o=r(4252);let l=({cardLabel:e,children:t,style:r,...a})=>(0,i.jsxs)(d,{style:r,...a,children:[t,e?(0,i.jsxs)(c,{children:[e?.iconHref?(0,i.jsx)(o.A,{href:e.iconHref}):null,e?.text?(0,i.jsx)("span",{children:e?.text}):null]}):null]}),d=s.Ay.article.withConfig({componentId:"sc-e0c644a4-0"})([""," border-radius:4px;overflow:hidden;position:relative;background:var(--white);display:flex;flex-direction:column;"],a.xe),c=s.Ay.span.withConfig({componentId:"sc-e0c644a4-1"})(["background:var(--gray-300);"," "," color:var(--corp-color-primary);position:absolute;top:0;left:0;border-bottom-right-radius:4px;display:flex;align-items:center;height:26px;svg{height:18px;width:18px;+ span{","}}span{white-space:nowrap;text-overflow:ellipsis;max-width:280px;display:inline-block;overflow:hidden;}"],(0,n.I)({fontSize:"0.875rem",fontWeight:700}),(0,a.xe)({px:2}),(0,a.xe)({ml:1}))},76663:(e,t,r)=>{r.d(t,{n:()=>h});var i=r(94513),a=r(14531),n=r(54020),s=r(60930),o=r(57005),l=r(11730),d=r(75011),c=r(1133);let h=({pageText:e,image:t})=>{let r=(0,o.Hr)();return(0,i.jsxs)(x,{isMobileApp:r,children:[(0,i.jsx)(p,{isMobileApp:r,children:(0,i.jsx)(c.d,{html:e})}),t.show&&t.render()]})},x=(0,l.Ay)(d.Z).withConfig({componentId:"sc-27a9f864-0"})(["border-radius:8px;"," ",""],(0,n.xe)({pb:[4,5]}),({isMobileApp:e})=>{if(e)return(0,l.AH)(["height:calc(100vh - 2rem);",""],(0,n.xe)({m:3}))}),p=l.Ay.div.withConfig({componentId:"sc-27a9f864-1"})([""," @media ","{","}max-width:530px;color:var(--gray-800,#1e2d37);"," "," h3{"," @media ","{","}","}h3,h2{@media ","{text-align:center;}}ul,ol{padding-inline-start:28px;}li,p{","}"],(0,n.xe)({p:3,m:"auto"}),a.j.md,(0,n.xe)({py:4,px:0}),(0,s.I)({fontFamily:"var(--font-family-sans-serif)"}),({isMobileApp:e})=>{if(e)return(0,l.AH)([""," align-self:center;"],(0,n.xe)({m:0}))},(0,s.I)({fontFamily:"var(--font-family-sans-serif)",fontSize:"1.5rem"}),a.j.md,(0,n.xe)({mb:"35px"}),(0,n.xe)({mb:3}),a.j.md,(0,s.I)({fontSize:"1.125em"}))},84848:(e,t,r)=>{r.d(t,{A:()=>A});var i=r(94513),a=r(94285),n=r(54020),s=r(60930),o=r(5305),l=r(11730),d=r(19903);let c=({article:e,withUndoSnackBar:t=!1,...r})=>(0,i.jsx)(h,{...r,children:(0,i.jsx)(d.d,{article:e,withUndoSnackBar:t})}),h=l.Ay.div.withConfig({componentId:"sc-cddf6e91-0"})([""," "," display:flex;border-top:1px solid var(--border-color);div:last-child{","}"],n.xe,(0,n.xe)({mt:"auto"}),(0,n.xe)({ml:"auto",pr:1}));var x=r(93856),p=r(45873),m=r(89835),u=r(90564),f=r(1133),g=r(87411),j=r(57924),v=r(12437),y=r(74174),w=r(20262),b=r(90028);let A=({article:e,withUndoSnackBar:t=!1})=>{let{teaserTitle:r,teaserLead:n,teaserLabel:s,type:l,bylines:d,uuid:h,teaserImage:A,teaserImageInfo:N,publishDate:z,canonical:F}=e,T=(0,j.Je)(h,A),O=T?.regular,[R,H]=(0,a.useState)(O),[$,L]=(0,a.useState)(!1),{cnpTeaserImageId:P,altText:B}=(0,j.wj)(N),_=P&&!$?P:void 0,M=l===v.Fr,{isMobile:D}=(0,o.al)(),K=M?(0,j._4)({teaserTitle:r,bylines:d}):r;return(0,a.useEffect)(()=>{H(O),L(!1)},[P,O,h]),(0,i.jsxs)(k,{children:[(0,i.jsxs)(u.s,{href:F??"#",className:`article-card-inner-${h}`,children:[_?(0,i.jsx)(S,{children:(0,i.jsx)(x.A,{id:_,width:400,height:250,aspectRatio:1.6,fit:"crop",tight:!0,sizes:y.rQ,alt:B,onError:()=>L(!0),style:{maxWidth:"100%",width:"100%",height:"auto"}})}):R?(0,i.jsx)(S,{children:(0,i.jsx)(p.A,{src:R,ariaHidden:!0,onErrorCb:()=>!D&&H(void 0),sizes:y.rQ,alt:""})}):D?null:(0,i.jsx)(S,{children:(0,i.jsx)(m.A,{useRegular:!0})}),(0,i.jsxs)(I,{isChronicle:M,children:[(0,i.jsx)(b.E,{dateTime:z??"",children:(0,w.cf)({dateString:z})}),(0,i.jsx)(f.d,{as:C,html:K,type:l}),(0,i.jsxs)(E,{mb:0,isChronicle:M,children:[s?(0,i.jsx)(f.d,{as:g.f1,html:s}):null,(0,i.jsx)(f.d,{as:"span",html:n,shouldStripContent:!0,className:"teaser-lead"})]})]})]}),(0,i.jsx)(c,{mx:3,article:e,withUndoSnackBar:t})]})},C=(0,l.Ay)(g.JA).withConfig({componentId:"sc-f5b94235-0"})([""," ",""],(0,s.I)({fontSize:"var(--article-card-heading)"}),(0,n.xe)({my:2})),k=l.Ay.div.withConfig({componentId:"sc-f5b94235-1"})(["display:flex;flex-direction:column;flex-grow:1;a{zoom:1;color:var(--gray-800);text-decoration:none;&:hover{","{opacity:0.8;}}time{display:flex;justify-content:flex-end;color:var(--gray-800);","}}"],C,(0,s.I)({fontSize:"0.875rem"})),S=l.Ay.div.withConfig({componentId:"sc-f5b94235-2"})(["filter:drop-shadow(5px -10px 20px rgba(0,0,0,0.1));transform:translateZ(0);aspect-ratio:1.6;overflow:hidden;"]),I=(0,l.Ay)(g.it).withConfig({componentId:"sc-f5b94235-3"})(["",";"],(0,n.xe)({p:3,pt:1})),E=(0,l.Ay)(g.v4).withConfig({componentId:"sc-f5b94235-4"})(["",";"],(0,s.I)({fontSize:"1.125rem"}))},90028:(e,t,r)=>{r.d(t,{E:()=>a});var i=r(94513);let a=({dateTime:e,children:t})=>(0,i.jsx)("time",{dateTime:e,suppressHydrationWarning:!0,children:t})},93856:(e,t,r)=>{r.d(t,{A:()=>x,h:()=>h});var i=r(94513),a=r(64891),n=r.n(a),s=r(49490),o=r.n(s),l=r(78005),d=r(74174),c=r(66889);let h={height:"100%",inset:0,objectFit:"contain",position:"absolute",width:"100%"},x=({id:e,width:t,height:r,quality:a,tight:s,fit:h,withSearchParams:x,alt:p="",aspectRatio:m,preload:u=!1,withPicture:f=!1,sourceWidths:g,sizes:j,style:v,className:y,onError:w,onLoad:b,priority:A,loading:C,decoding:k="async","data-testid":S,"data-testId":I,...E})=>{let N=S??I,z=m??t/r,F=g?.length?g.filter(e=>d.sU.includes(e)):[],T=(0,c.T0)({id:e,width:t,height:r,quality:a,tight:s,fit:h,withSearchParams:x,aspectRatio:z}),O=F.length?(0,c.Vu)({id:e,widths:F,height:r,quality:a,tight:s,fit:h,withSearchParams:x,aspectRatio:z}):void 0,R=u?(0,i.jsx)(n(),{children:(0,i.jsx)("link",{rel:"preload",href:T,as:"image",imageSrcSet:O,imageSizes:j,fetchPriority:"high"})}):null;if(f){let e=(0,i.jsx)(l.E,{src:T,srcSet:O,sizes:j,alt:p,width:t,height:r,...A?{loading:"eager",fetchPriority:"high"}:{loading:C??"lazy"},decoding:k,style:v,className:y,onError:w,onLoad:b,"data-testid":N});return O?(0,i.jsxs)(i.Fragment,{children:[R,(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{srcSet:O,sizes:j}),e]})]}):(0,i.jsxs)(i.Fragment,{children:[R,e]})}return(0,i.jsxs)(i.Fragment,{children:[R,(0,i.jsx)(o(),{...E,src:T,alt:p,width:t,height:r,priority:A,loading:C,sizes:j,style:v,className:y,onError:w,onLoad:b,decoding:k,"data-testid":N})]})}}}]);
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.