1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:travronden":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fba3415e-1f61-4ca3-a9d0-f2d04fdd915d",e._sentryDebugIdIdentifier="sentry-dbid-fba3415e-1f61-4ca3-a9d0-f2d04fdd915d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9004],{16761:(e,t,r)=>{r.d(t,{j$:()=>s,m_:()=>a,v7:()=>l});class s extends Error{constructor(e,t){super(t),this.status=e}}class a extends s{constructor(e="Not found"){super(404,e)}}class l extends s{constructor(e="Bad request"){super(400,e)}}},37351:(e,t,r)=>{r.d(t,{n9:()=>B,a$:()=>q,JU:()=>J,aO:()=>H});var s=r(37876),a=r(54348),l=r(23520),i=r.n(l),n=r(14232),o=r(58481),c=r(1283),d=r(93293),h=r(75630),u=r(92237),p=r(30195),x=r(32881),m=r(16761),f=r(54230),g=r(89099),y=r(47664),w=r(55867);let j=({article:e,previewMode:t=!1,leavePreviewMode:r})=>(0,s.jsx)(a.aQ,{bottom:"0",left:"0",width:"100%",zIndex:"lowest",children:(0,s.jsx)(a.kD,{bg:"white",p:"2,5",borderTop:"1",boxShadow:"0 -2px 7px 0px rgba(201, 201, 201, 0.25)",children:(0,s.jsxs)(a.pT,{alignItems:"center",children:[(0,s.jsxs)(a.EY,{flex:"1",fontSize:{_:0,md:1},lineHeight:"medium",pr:"1",children:[t&&(0,s.jsx)(a.az,{children:(0,s.jsx)(a.Xl,{color:"primary",children:"F\xf6rhandsgranskar"})}),(0,s.jsx)(y.A,{lines:2,children:(0,s.jsxs)(a.az,{children:[(0,s.jsx)(a.iE,{children:e.headline})," (",e.id,")"]})})]}),t&&(0,s.jsx)(a.$n,{bc:"secondary",ml:"auto",mr:"2",size:{_:"tiny",lg:"small",xl:"medium"},onClick:()=>r?.(),children:"L\xe4mna f\xf6rhandsgranskning"}),(0,s.jsxs)(a.$n,{bc:"primary",ml:"auto",size:{_:"tiny",lg:"small",xl:"medium"},target:"_blank",rel:"noopener",href:`https://content.trmedia.se/travronden/content/${e.id}`,children:["Redigera i TR Content",(0,s.jsx)(w.A,{pointTo:"right",ml:"1",mt:"2px",size:"1.3em"})]})]})})}),b=()=>{window.location.href=window.location.href.replace("?preview=true","")},k=({article:e})=>{let{query:t}=(0,g.useRouter)();return(0,s.jsx)(j,{article:e,previewMode:"true"===t.preview,leavePreviewMode:b})};var _=r(7940);let v={chronicle:"kr\xf6nika",debate:"debattartikel",editorial:"ledare",feature:"reportage",native:"annons",news_article:"artikel",report:"referat",meet_summary:"referat",submitted:"ins\xe4ndare",page:"sida",tv:"klipp",auction:"auktion",latest_news:"senaste nytt"},A=({type:e})=>{let t=(0,n.useRef)(null),r=(0,n.useCallback)(()=>t.current&&t.current.scrollIntoView({behavior:"smooth",block:"start"}),[t]);return(0,s.jsxs)(a.pT,{alignItems:"center",my:"4",ref:t,children:[(0,s.jsx)(a.cG,{width:"100%",mr:"3"}),(0,s.jsx)(a.$n,{onClick:r,flexShrink:"0",children:(0,s.jsxs)(a.EY,{flexShrink:"0",color:"greys.2",fontWeight:"semiBold",children:[`N\xe4sta ${v[e]}`,(0,s.jsx)(_.cL,{direction:"down",size:"25px",color:"greys.2"})]})}),(0,s.jsx)(a.cG,{width:"100%",ml:"2"})]})};var $=r(83322),C=r(40625),I=r(92468),z=r(12934);let E=({article:e})=>{let[t,r]=(0,C.Wx)({threshold:.8}),l=(0,$.ZC)(r);return(0,n.useEffect)(()=>{if(e&&r&&!l){let t=(0,z.kX)(e);if(window.history.replaceState&&window.location.pathname!==t){window.history.replaceState({url:t,options:{shallow:!0}},e.headline,t);let r=I.A.titleTemplate.replace("%s",e.headline);document.title=r,window.history.scrollRestoration="manual"}}},[r,l,e]),(0,s.jsx)(a.CJ,{children:(0,s.jsx)(a.Xe,{width:"1px",height:"100vh",ref:t,opacity:"0"})})};var T=r(18334),M=r(62722),R=r(89802);let L=new Set(["ad","badges","bylineTop","bylineBottom","mediaEthicsDisclaimer","nativeDisclaimer","opinionDisclaimer","othersRead","paywall","subscriberAccessInfo","asideListContent"]),P=({key:e,type:t,componentDefinition:r,content:a,article:l,areas:i,stackIndex:n})=>{var o,c,d,h,u;let p,x,{validator:m}=r,{area:f,props:g}=r,y=r.Component;if(null==y)throw Error(`Missing 'Component' in ${JSON.stringify(r)}`);if(null==f)throw Error(`Missing 'area' in ${JSON.stringify(r)}`);"function"==typeof f&&(f=f(t,a,l)),"function"==typeof g&&(g=g(t,a,l));if([L.has(t)||null!=a&&""!==a&&!(Array.isArray(a)&&0===a.length),(o=l,c=t,d=f,p="access"in o&&1===o.access,x="show_paywall"in o&&null!=o.show_paywall,"subscriberAccessInfo"===c?p&&!x:x?"main"!==d?"preamble"!==c:["bylineTop","paywall","stackedArticleTrigger"].includes(c):!!x||"paywall"!==c),null==m||m(l),(h=t,u=n,"meta"!==h||!![void 0,null,-1].includes(u))].every(Boolean)){let r=(0,s.jsx)(M.A,{showError:"meta"!==t,children:(0,s.jsx)(y,{content:a,type:t,area:f,article:l,...g})},e),n={type:t,element:r},[o,c,d]=i;"top"===f?o.push(n):"aside"===f?d.push(n):c.push(n)}};var D=r(11971),S=r(88454),G=r(79578),N=r(40059),U=r(62446);let W=()=>{},q=e=>(0,d.G)(t=>(0,S.xA)(t,{slug:e})),B=({slug:e,components:t,placeholderType:r,PageLayout:a,stackIndex:l=-1,transformArticleData:i=p.D_})=>{let o=q(e)||{fetching:!1},u=(0,d.G)(h.Rn);return(0,s.jsx)(c.A,{state:o,render:e=>{let r=i(e),[o,c,d]=((e,t,r)=>{let[s,a,l]=t.reduce((t,s,a)=>{let{type:l}=s;if("paragraphs"===l)"paragraphs"in e&&null!=e.paragraphs&&e.paragraphs.forEach((r,l)=>{let i;switch(r.type){case"archive_images":i=r.images;break;case"embed":case"liveblog":case"expandable_content":case"quote":case"video":case"sponsor_box":i={...r};break;case"fact_box":i=r.text;break;case"offers":case"table":T.Cp(Error(`Got paragraph type '${r.type}' but Travronden does not support it.`));break;default:i=r.content}null!=i&&P({key:`${a}_${l}`,type:r.type,componentDefinition:s,content:i,article:e,areas:t})});else{let i=l in e?e[l]:null;if("headline"===l&&"show_paywall"in e&&e.show_paywall)i=(0,R.P)(e);else if("archive_images"===l){"show_paywall"in e&&e.show_paywall&&null!=e.teaser_image&&"news_article"===e.type&&(i=[e.teaser_image]);let t=null==i||Array.isArray(i)&&0===i.length,r=["editorial","chronicle"].includes(e.type);if(t&&r&&"authors"in e){let t=e.authors[0]?.image2;
1null!=t&&(i=[{cdn_id:t.image_id}])}}else"stackedArticleTrigger"===l&&(i=r??null);P({key:`c${a}`,type:l,componentDefinition:s,content:i,article:e,areas:t,stackIndex:r})}return t},[[],[],[]]);return[s,a,l]})(r,t,l);return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(a,{article:r,headerContent:o,mainContent:c,asideContent:d}),u&&-1===l&&(0,s.jsx)(k,{article:r})]})},placeholderType:r})},X=({ArticleComponent:e,type:t,index:r})=>{let l,i,c,h,u,p,x,m,f,g,y=(l=(0,d.j)(),c=r===(i=(0,d.G)(S.Wl))+1,h=i>=r,x=(u=(0,N.uo)(),p=(0,d.G)(e=>u(e,{stateKey:`articlepage/stacked-type:${t}`})),p.data?.results??[])[r],m=x?.slug,f=(0,d.G)(e=>(0,S.xA)(e,{slug:m})),g=!1,m&&c?g=!0:m&&h&&!f&&(g=!0),(0,n.useEffect)(()=>{if(g&&(l((0,D.qu)({asPath:"",pathname:"",slug:m,stacked:!0})),"chronicle"===x.type)){let e=x.authors[0]?.slug;e&&l((0,G.I)((0,U.NC)(e),(0,U.Tj)(e)))}},[g,m,r,x,l]),h?x:null);return y?(0,s.jsxs)(a.az,{pt:"4",children:[(0,s.jsx)(o.A,{placement:"Panorama 2"}),(0,s.jsx)(A,{type:y.type}),(0,s.jsx)(E,{article:y}),(0,s.jsx)(e,{slug:y.slug,stackIndex:r})]}):null},F=(e,t,r,s)=>{let{asPath:a,pathname:l,res:i,query:n}=t,o=(0,f.P)(n.preview),c=(0,f.P)(n.access),d=(0,f.P)(s||n.slug);if(null==d||null==a)return{error:new m.m_};let h=a.startsWith("/travsport")||a.startsWith("/reportage")||a.startsWith("/asikter")||a.startsWith("/referat");return e.dispatch((0,D.qu)({asPath:a,pathname:l,slug:d,preview:o,suppressRedirect:null!=s})),h&&e.dispatch((0,u.j)()),r(t,d),null!=i&&i.setHeader("Cache-Control","unknown"===c?"no-cache":"public, s-maxage=180, stale-while-revalidate=900"),{asPath:a,slug:d}},J=(e,{getAdditionalInitialProps:t=W,fixedSlug:r}={})=>{let a=({slug:t})=>(0,s.jsx)(e,{slug:r||t});return a.getInitialProps=(0,x.A)((e,s)=>F(e,s,t,r),S.xA),i()(a,e),a},V=({article:e,stackCount:t,PageComponent:r})=>{let{type:l,id:i,slug:o}=e;return(({excludeId:e,limit:t,type:r})=>{let s=(0,d.j)();return(0,n.useEffect)(()=>{s((0,S.nD)())},[s]),(0,n.useEffect)(()=>{r&&e&&setTimeout(()=>s((0,G.I)(`articlepage/stacked-type:${r}`,{type:r,limit:t,exclude:e})),1e3)},[s,t,r,e])})({excludeId:i,limit:t,type:l}),(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(E,{article:e}),(0,s.jsxs)(a.Vw,{between:"4",children:[(0,s.jsx)(r,{slug:o,stackIndex:-1}),Array.from({length:t}).map((e,t)=>(0,s.jsx)(X,{ArticleComponent:r,type:l,index:t},`stacked-article-${t}`))]})]})},H=(e,{getAdditionalInitialProps:t=W,stackCount:r=10}={})=>{let a=({slug:t})=>{let a=q(t);return a?.data==null?(0,s.jsx)(e,{slug:t,stackIndex:-1}):(0,s.jsx)(V,{article:a.data,stackCount:r,PageComponent:e})};return a.getInitialProps=(0,x.A)((e,r)=>F(e,r,t),S.xA),i()(a,e),a}},42479:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(37876),a=r(54348),l=r(83322),i=r(7940),n=r(48230),o=r.n(n),c=r(62722);let d=({onClick:e,showAll:t})=>(0,s.jsxs)(a.$n,{shape:"square",width:"100%",display:["flex",null,"none"],alignItems:"center",justifyContent:"center",palette:"outline",onClick:e,children:[(0,s.jsx)(a.Xq,{fontSize:"1",color:"petrol",display:"inline-block",children:t?"Visa f\xe4rre":"Visa fler"}),(0,s.jsx)(i.cL,{direction:t?"up":"down",size:"22px",color:"petrol"})]}),h=({href:e,hrefText:t})=>(0,s.jsxs)(a.Vw,{"data-no-between":"true",display:["none",null,"block"],mt:"2",between:"3",sx:{textAlign:"center"},children:[(0,s.jsx)(a.cG,{}),(0,s.jsx)(a.az,{children:(0,s.jsx)(a.Mz,{href:e,as:o(),fontWeight:"bold",children:t})})]}),u=({label:e,renderItem:t,href:r,hrefText:i,items:n=[],mobileItemCount:u=3,divided:p=!1})=>{let[x,m]=(0,l.eY)(!1),f=n.length>u;return(0,s.jsx)(c.A,{children:(0,s.jsx)(a.kD,{borderTop:"3px",borderColor:"primary",pt:"2",children:(0,s.jsxs)(a.Vw,{between:"4",children:[r?(0,s.jsx)(a.Mz,{href:r,as:o(),children:(0,s.jsx)(a.H4,{variant:"asideList",children:e})}):(0,s.jsx)(a.H4,{variant:"asideList",children:e}),(0,s.jsx)(a.B8,{divided:p,gap:"2,5",children:n.map((e,r)=>{let l=r===n.length-1,i=!f||x?l:r===u-1;return(0,s.jsx)(a.ck,{display:{_:x||r<u?"list-item":"none",md:"list-item"},children:t(e,r,i,l)},e.id)})}),r&&i&&(0,s.jsx)(h,{hrefText:i,href:r}),f&&(0,s.jsx)(d,{onClick:m,showAll:x})]})})})}},47664:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(37876),a=r(77232),l=r(54348);let i=({lines:e,children:t,...r})=>(0,s.jsx)(n,{...r,$_css:e,children:t});var n=(0,a.Ay)(l.EY).withConfig({componentId:"sc-ce5ed5a-0"})(["overflow:hidden;text-overflow:ellipsis;> *{display:none;&:first-child{display:block;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:",";}}"],e=>e.$_css)},54230:(e,t,r)=>{r.d(t,{P:()=>s});function s(e){if("string"==typeof e&&e.trim().length>0)return e.trim()}},59030:(e,t,r)=>{r.d(t,{U:()=>s});function s(e,t){if(Array.isArray(e)){let r=t[0]/t[1],s=e[0];for(let t=0;t<e.length;t++)if(Math.abs(e[t].aspect_ratio-r)<(t<e.length-1?Math.abs(e[t+1].aspect_ratio-r):1/0)){s=e[t];break}return s}return e}},62446:(e,t,r)=>{r.d(t,{Ay:()=>g,NC:()=>m,Tj:()=>f});var s=r(37876),a=r(54348),l=r(20817),i=r(67185),n=r(42479),o=r(62722),c=r(1283),d=r(13079),h=r(56738),u=r(89802);let p=({article:e})=>(0,s.jsx)(o.A,{children:(0,s.jsx)(i.A,{article:e,variant:"heading",children:(0,s.jsxs)(a.az,{my:"1",children:[(0,s.jsx)(a.H4,{variant:"asideListItem",width:"100%",children:(0,u.P)(e)}),(0,s.jsxs)(a.EY,{fontSize:"1",fontWeight:"medium",color:"greys.2",children:[(0,s.jsx)(l.sR,{date:e.publish_start}),e.topics&&e.topics.length>0?`, ${e.topics[0].name}`:null]})]})})}),x=({author:e,articles:t})=>(0,s.jsx)(n.A,{label:`Fler kr\xf6nikor av ${e.firstname} ${e.lastname}`,href:`/asikter/kronika/${e.slug}`,divided:!0,items:t,renderItem:e=>(0,s.jsx)(p,{article:e})}),m=e=>`moreByAuthor/${e}`,f=e=>({type:"chronicle",limit:5,author_slug:e}),g=({article:e})=>{let t=e?.authors[0]?.slug,r=(0,h.A)(m(t),f(t),{loadData:!1});return(0,s.jsx)(c.A,{state:r,render:e=>null==e.meta||null==e.meta.author?null:(0,s.jsx)(x,{author:e.meta.author,articles:e.results}),placeholderType:d.Lx.ASIDE})}},67185:(e,t,r)=>{r.d(t,{A:()=>
1o});var s=r(37876),a=r(54348),l=r(48230),i=r.n(l),n=r(12934);let o=({article:e,children:t,as:r,...l})=>{if(null!=r)throw Error("Unsupported prop 'as'. ArticleLink can only be rendered as an Anchor component");let o=(0,n.kX)(e);return(0,s.jsx)(a.Mz,{href:o,as:i(),...l,children:t})}},79632:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(37876),a=r(77232),l=r(54348),i=r(84688),n=r(59030),o=r(82502);let c=(e,t,r)=>[100,200,300,400,500,600,700,800,900,1e3,1100,1200,1400,1800].map(s=>`${i.LR.getUrl(t,s,e,r)} ${s}w`).join(","),d=({mediaQuery:e,desktopRatio:t,mobileRatio:r,children:a})=>(0,s.jsxs)(u,{as:"figure",width:"100%",$_css:r.join("/"),$_css2:e,$_css3:t.join("/"),children:[(0,s.jsx)(l.Xe,{width:"100%",height:"100%",bg:"greys.1"}),a]}),h=({media:e,desktopRatio:t=[16,9],desktopSizes:r=["100vw"],mobileRatio:a=[2,1],mobileSizes:h=["100vw"],placeholder:u=!1,loadStrategy:x="lazy"})=>{let m=(0,o.A)();if(!e||Array.isArray(e)&&0===e.length)return u?(0,s.jsx)(d,{mediaQuery:m,desktopRatio:t,mobileRatio:a}):null;let{id:f,focus:g,alt:y=""}=(0,n.U)(e,t),{id:w,focus:j}=(0,n.U)(e,a),b="lazy"===x,k={desktop:i.LR.getFocusGravity(g??null),mobile:i.LR.getFocusGravity(j??null)},_={desktop:c(t,f,k.desktop),mobile:c(a,w,k.mobile)},v=i.LR.getUrl(f,600,t,k.desktop),A=b?`${i.LR.getUrl(f,300,t,[...k.desktop,"q_25","e_blur:500"])} 300w`:void 0,$=b?`${i.LR.getUrl(w,300,a,[...k.mobile,"q_25","e_blur:500"])} 300w`:void 0;return(0,s.jsx)(p,{as:"figure",width:"100%",$_css4:a.join("/"),$_css5:m,$_css6:t.join("/"),children:(0,s.jsx)(l.Xe,{width:"100%",height:"100%",children:(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{media:m,"data-srcset":b?_.desktop:void 0,srcSet:b?A:_.desktop,sizes:r.join(",")}),(0,s.jsx)("source",{media:"","data-srcset":b?_.mobile:void 0,srcSet:b?$:_.mobile,sizes:h.join(",")}),(0,s.jsx)(l.az,{width:"100%",as:"img",alt:y,src:v,className:b?"lazyload":void 0})]})})})};var u=(0,a.Ay)(l.CJ).withConfig({componentId:"sc-9246d891-0"})(["padding-bottom:calc(100% / (","));@media ","{padding-bottom:calc(100% / (","));}"],e=>e.$_css,e=>e.$_css2,e=>e.$_css3),p=(0,a.Ay)(l.CJ).withConfig({componentId:"sc-9246d891-1"})(["aspect-ratio:",";@media ","{aspect-ratio:",";}"],e=>e.$_css4,e=>e.$_css5,e=>e.$_css6)},82502:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(77232);let a=()=>{let{breakpoints:e}=(0,s.DP)();return`only screen and (min-width: ${e.sm})`}}}]);
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.