1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6595],{20146:(e,t,n)=>{"use strict";n.d(t,{h:()=>x});var r=n(94513),s=n(38255),i=n(10288),a=n(89381),l=n(57005),c=n(53334),o=n(8664),d=n(45106),u=n(20397),h=n(5930);let m=()=>(0,r.jsx)(u.v.Nav,{children:(0,r.jsx)(s.m,{children:(0,r.jsx)(u.v.HorizontalList,{children:d.JW.map(({path:e,name:t},n)=>(0,r.jsx)(h.q,{isHorizontal:!0,path:e,name:t},t+n))})})});var p=n(41528),g=n(56691);let x=({openGraphData:e,withMenu:t=!0,children:n})=>{let d=(0,l.Hr)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.A,{openGraphData:e,titleMetaData:e,showTakeoverAd:!1}),(0,r.jsx)(o.A,{isOn:!0}),(0,r.jsxs)(g.A,{disableFooter:d,fluid:!0,children:[t?(0,r.jsx)(c.qX,{children:(0,r.jsx)(m,{})}):null,(0,r.jsx)(i.h,{value:a.B.Spacing24}),(0,r.jsx)(s.m,{withMinHeight:!0,className:"c-mypages-wrapper",children:n}),(0,r.jsx)(i.h,{value:a.B.Spacing40})]})]})}},23365:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94285),s=n(91544),i=n(31157);class a{async getAccessToken(e){if(this.currentRoute!==e&&(this.currentRequest=null,this.currentRoute=e),this.currentRequest)return this.currentRequest;this.currentRequest=this.fetchToken();try{return await this.currentRequest}finally{setTimeout(()=>{this.currentRequest=null},200)}}async fetchToken(){try{let e=await fetch("/api/access-token");if(e.ok)return{accessToken:(await e.json()).accessToken,enabled:!0};return i.vF.error({status:e.status},"Failed to fetch access token"),{accessToken:null,enabled:!1}}catch(e){return i.vF.error({error:e},"Error fetching access token:"),{accessToken:null,enabled:!1}}}constructor(){this.currentRequest=null,this.currentRoute=null}}let l=new a,c=function(){let[e,t]=(0,r.useState)({accessToken:null,enabled:!1,loading:!1}),n=(0,s.useRouter)();return(0,r.useEffect)(()=>{(async()=>{t({accessToken:null,enabled:!0,loading:!0});try{let e=await l.getAccessToken(n.asPath);t({...e,loading:!1})}catch(e){i.vF.error({error:e},"Error in useAccess:"),t({accessToken:null,enabled:!1,loading:!1})}})()},[n.asPath]),{accessToken:e.accessToken,enabled:e.enabled,isLoading:e.loading}}},24802:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(94513),s=n(57005),i=n(91197),a=n(63279),l=n(20146),c=n(90564);let o=(0,n(60994).K)({Component:({title:e,src:t,loadingMessage:n,errorMessage:o="Det gick tyv\xe4rr inte att h\xe4mta informationen."})=>{let d=(0,s.Pj)(),u={title:`${d.getFullTitleName()} | ${e}`,description:`Mina sidor - ${e.toLowerCase()} - ${d.getSiteBaseUrl()}`,image:d.getLogoUrl()};return n?(0,r.jsx)(l.h,{openGraphData:u,children:(0,r.jsx)(a.m,{borderBottom:!0,p:3,pb:0,children:(0,r.jsx)("p",{children:n})})}):(e=>e&&(e.startsWith("http://")||e.startsWith("https://")))(t)?(0,r.jsx)(l.h,{openGraphData:u,children:(0,r.jsx)(i.v,{src:t,name:e,testId:"subscription-service_iframe",initialHeight:"4000px"})}):(0,r.jsx)(l.h,{openGraphData:u,children:(0,r.jsxs)(a.m,{borderBottom:!0,p:3,pb:0,children:[(0,r.jsx)("p",{children:o}),(0,r.jsxs)("p",{children:["G\xe5 tillbaka till"," ",(0,r.jsx)(c.s,{href:"/mina-sidor",children:"mina sidor"})]})]})})},loggedOutText:"Du m\xe5ste vara inloggad f\xf6r att ta del av Mina sidor",loggedOutTitle:"Mina Sidor - Prenumeration"})},35982:(e,t,n)=>{"use strict";n.d(t,{P:()=>r.P});var r=n(59003)},54744:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(94513),s=n(57435),i=n(24802),a=n(98122);let l=(0,a.OZ)({Component:()=>{let{activePage:e,status:t}=(0,s.u)();return"pending session"===t?null:"pending token"===t?(0,r.jsx)(i.A,{title:"Laddar",src:"",loadingMessage:"Laddar din prenumerationssida..."}):(0,r.jsx)(i.A,{title:e?.menuTitle??"",src:e?.iframeUrl??""})},shouldRedirect:a.Rm})},57435:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(23365),s=n(72676);let i=()=>{let e=(0,s.l)(),{accessToken:t,isLoading:n}=(0,r.A)();if("pending session"===e.status)return e;let i=e.pages.map(e=>t?{...e,iframeUrl:`${e.iframeUrl}?token=${t}`}:e);return{status:n?"pending token":"resolved",pages:i,activePage:i.find(({href:t})=>t===e.activePage?.href)}}},59003:(e,t,n)=>{"use strict";n.d(t,{P:()=>r.A});var r=n(56691)},60010:(e,t,n)=>{"use strict";n.d(t,{c:()=>h});
1var r=n(94513),s=n(43492),i=n(57005),a=n(91544),l=n(11730),c=n(75769),o=n(39154),d=n(15923),u=n(37009);let h=({title:e,text:t})=>{let n=(0,i.Hr)(),l=(0,a.useRouter)().asPath;return(0,r.jsx)(c.wn,{children:(0,r.jsxs)(m,{isMobileApp:n,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.hE,{children:e}),(0,r.jsx)("p",{children:t})]}),(0,r.jsx)(p,{children:n?(0,r.jsx)(s.$n,{variant:"primary",size:"large",onClick:()=>{(0,u.eT)()},children:(0,d.u)("link","login")}):(0,r.jsx)(s.Aj,{variant:"primary",size:"large",href:(0,o.aM)(o.Y0.LOGIN,l),children:(0,d.u)("link","login")})})]})})},m=(0,l.Ay)(c.UC).withConfig({componentId:"sc-672be926-0"})(["",""],({isMobileApp:e})=>{if(e)return(0,l.AH)(["height:calc(100vh - 2rem);display:flex;flex-direction:column;justify-content:space-between;"])}),p=(0,l.Ay)(c.eM).withConfig({componentId:"sc-672be926-1"})(["align-self:center;"])},60994:(e,t,n)=>{"use strict";n.d(t,{K:()=>g});var r=n(94513);n(94285);var s=n(10485),i=n(38255),a=n(54020),l=n(9876),c=n(57005),o=n(11730),d=n(35982),u=n(41528),h=n(73478),m=n(60010);let p=(0,o.Ay)(i.m).withConfig({componentId:"sc-26f2c522-0"})([""," min-height:40vh;"],(0,a.xe)({my:3,px:3})),g=({Component:e,loggedOutText:t="Du m\xe5ste vara inloggad f\xf6r att kunna se denna sidan.",loggedOutTitle:n})=>{let i=i=>{let[a,o]=(0,l.DB)(),g=(0,c.Hr)(),{isApp:x}=(0,c.nO)(),f=(0,c.Pj)(),j=`${f.getFullTitleName()} | ${n} | Utloggad`,v=x?(0,r.jsx)(h.a,{isApp:!0}):(0,r.jsx)(m.c,{title:"Logga in",text:t});return a?(0,r.jsx)(e,{...i}):(0,r.jsxs)(r.Fragment,{children:["pending"!==o.status?(0,r.jsx)(u.A,{showTakeoverAd:!1,titleMetaData:{title:j}}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(d.P,{fluid:!0,disableFooter:g,children:(0,r.jsx)(p,{children:"pending"===o.status?(0,r.jsx)(s.r,{children:(0,r.jsx)(s.y,{})}):v})})]})};return i.displayName=`withProtectedRoute(${e.displayName||e.name||"Component"})`,i}},63279:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(54020),s=n(60930);let i=n(11730).Ay.div.withConfig({componentId:"sc-5cad5c69-0"})([""," "," background-color:",";border-bottom:",";border-top:",";min-height:",";max-width:",";"],r.xe,s.I,({backgroundColor:e="var(--white)"})=>e,({borderBottom:e})=>e?"1px solid rgba(0, 0, 0, 0.075)":"none",({borderTop:e})=>e?"3px solid var(--bg-top-bar)":"none",({minHeight:e})=>e||"none",({maxWidth:e})=>e||"none")},84206:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mina-sidor/prenumeration",function(){return n(54744)}])},91197:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(94513),s=n(94285),i=n(79172);let a=({src:e,name:t,testId:n,titlePrefix:a="",shouldOverrideTitle:l=!1,initialHeight:c="0"})=>{let[o,d]=(0,s.useState)(c),[u,h]=(0,s.useState)(!1),[m,p]=(0,s.useState)(""),g=(0,s.useRef)(null),x=(0,s.useCallback)(()=>{if(g?.current?.contentDocument?.body?.clientHeight){h(!0),l&&!m&&p(g.current.contentDocument.title);let e=g.current.contentDocument.body.clientHeight;`${e}px`!==o&&d(`${e}px`)}},[l,m,o]);(0,s.useEffect)(function(){let e,t;return u&&!e&&(e=window.setInterval(()=>{x()},1e3),t=window.setTimeout(()=>clearInterval(e),3e3)),()=>{clearInterval(e),clearTimeout(t)}},[u,x]),(0,s.useEffect)(function(){let e,t=()=>{clearTimeout(e),e=window.setTimeout(()=>x(),500)};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[x]);let f={title:`${a}${m}`};return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(i.A,{titleMetaData:f}),(0,r.jsx)("iframe",{ref:g,title:t,width:"100%",src:e,name:t,id:t,style:{height:o,border:"none"},onLoad:()=>{x()},"data-testid":n})]})}},98122:(e,t,n)=>{"use strict";n.d(t,{By:()=>u,OZ:()=>c,Q2:()=>
1o,Rm:()=>d});var r=n(94513),s=n(94285),i=n(14493),a=n(57005),l=n(91544);let c=({Component:e,shouldRedirect:t,redirectTo:n="/"})=>function(c){let o=(0,a.Pj)(),d=(0,l.useRouter)(),[u,h]=(0,s.useState)(!1),{cmsSettings:m,isLoading:p}=(0,i.m)(o.settingsEtag,o.cmsSettings);(0,s.useEffect)(()=>{p||h(!0)},[p]);let g=t(m);return(0,s.useEffect)(()=>{u&&g&&d.replace(n)},[g,d,u]),u&&!g?(0,r.jsx)(e,{...c}):null},o=e=>!e.admin.webmaster.purchaseflow.purchaseEnabled,d=e=>!e.admin.webmaster.mypages.showMyPages,u=e=>!e.admin.webmaster.mypages.readLater.isActive}},e=>{e.O(0,[1985,5599,1960,1633,2665,4973,640,7318,1482,3864,4314,2463,4440,636,6593,8792],()=>e(e.s=84206)),_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.