PageSourceSearch

https://www.lerumstidning.se/_next/static/chunks/pages/mina-sidor/foljer/home-f38660c7dc6436b2.js

js lerumstidning.se collected 2026-10-02 12:51:01 UTC 11,199 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7844],{1871:(e,t,i)=>{"use strict";i.d(t,{A:()=>w});var n=i(94513),r=i(94285),o=i(10485),a=i(40188),s=i(54020),d=i(60930),l=i(11730),c=i(14716),m=i(57591),h=i(82983);let x=(0,l.Ay)(m.VU).withConfig({componentId:"sc-5e84d134-0"})(["background-color:white;"]),g=l.Ay.div.withConfig({componentId:"sc-5e84d134-1"})(["display:flex;align-items:center;"]),p=l.Ay.h4.withConfig({componentId:"sc-5e84d134-2"})(["",";height:22px;"],(0,d.I)({fontFamily:"var(--font-family-sans-serif)",fontWeight:500})),u=l.Ay.span.withConfig({componentId:"sc-5e84d134-3"})([""]),f=l.Ay.div.withConfig({componentId:"sc-5e84d134-4"})(["overflow:hidden;"," ","{","}","{"," ","{","}}",""],(0,s.xe)({px:3}),o.r,(0,s.xe)({mt:"0px"}),c.rH,(0,s.xe)({px:0}),c.UW,(0,s.xe)({mx:1}),({isOpen:e=!1})=>!e&&(0,l.AH)(["","{display:none;}"],o.r)),j=(0,l.Ay)(a.t).attrs((0,h.$)("icon")).withConfig({componentId:"sc-5e84d134-5"})(["",""],(0,s.xe)({mr:2,mb:"2px"})),y=(0,l.Ay)(a.t).withConfig({componentId:"sc-5e84d134-6"})(["svg{fill:var(--corp-color-darken);}"]),w=({filters:e,loading:t})=>{let[i,a]=(0,r.useState)(!1);return(0,n.jsxs)(x,{children:[(0,n.jsxs)(m.L9,{"data-testid":"follow-filter-toggle",onClick:()=>a(e=>!e),children:[(0,n.jsxs)(g,{children:[(0,n.jsx)(j,{href:"icon-filter",className:"c-icon c-icon--24"}),(0,n.jsx)(p,{children:"Filter"})]}),(0,n.jsx)(u,{children:(0,n.jsx)(y,{href:i?"icon-chevron-up":"icon-chevron-down",className:"c-icon c-icon--24",viewBox:"0 0 24 24"})})]}),(0,n.jsx)(m.uC,{isOpen:i,children:(0,n.jsx)(f,{isOpen:i,children:t?(0,n.jsx)(o.r,{children:(0,n.jsx)(o.y,{"data-testid":"spinner",role:"alert","aria-busy":"true"})}):(0,n.jsx)(n.Fragment,{children:e.map((e,t)=>e.items.length>0?(0,n.jsx)(c.Ay,{...e},t):null)})})})]})}},2795:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mina-sidor/foljer/home",function(){return i(10471)}])},10471:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>Q});var n=i(94513),r=i(38255),o=i(14531),a=i(54020),s=i(57005),d=i(91544),l=i(67898),c=i(11730),m=i(41528),h=i(59003),x=i(90564),g=i(13953),p=i(10485),u=i(21675),f=i(18212),j=i(14716),y=i(85828),w=i(72880);let v=c.Ay.div.withConfig({componentId:"sc-de7eb95d-0"})(["background-color:var(--white);border-radius:8px;",";@media ","{",";}"],(0,a.xe)({p:"var(--container-padding-base)",pt:4,mx:"var(--negative-padding-base)"}),o.j.md,(0,a.xe)({p:"48px",my:"40px",mx:0})),b=c.Ay.div.withConfig({componentId:"sc-de7eb95d-1"})(["",";display:flex;flex-direction:column;gap:",";transition:gap 0.5s ease-in-out 0.5s;@media ","{flex-direction:row;gap:",";}@media ","{gap:",";}"],(0,a.xe)({p:0,m:0,pt:"22px"}),({cardCount:e=0})=>e>1?"16px":"0px",o.j.md,({cardCount:e=0})=>e>1?"32px":"0px",o.j.xl,({cardCount:e=0})=>e>1?"48px":"0px"),A=c.Ay.div.withConfig({componentId:"sc-de7eb95d-2"})(["overflow:hidden;height:",";transition:height 0.5s ease-in-out 0.5s;border-radius:4px;background-color:var(--bg-color-gray);@media ","{height:unset;width:",";transition:width 0.5s ease-in-out 0.5s;}"],({itemCount:e=0})=>0==e?"0px":e<=3?"8.1875rem":"auto",o.j.md,({cardCount:e=0,itemCount:t=0})=>0==t?"0%":e>1?"50%":"100%"),I=c.Ay.div.withConfig({componentId:"sc-de7eb95d-3"})(["@media ","{margin:0 auto;}"],o.j.md);var C=i(94285),k=i(43492),E=i(10288),N=i(89381),P=i(60930),F=i(13245),T=i(75011),S=i(84848),H=i(1871),O=i(96703),_=i(56999);let $=(0,c.Ay)(r.m).withConfig({componentId:"sc-8150504f-0"})([""," @media ","{","}"],(0,a.xe)({my:"24px"}),o.j.md,(0,a.xe)({my:"40px"})),D=c.Ay.div.withConfig({componentId:"sc-8150504f-1"})(["width:100%;display:flex;"," color:var(--gray-800,#1e2d37);> button{"," color:var(--gray-800,#1e2d37);}"],(0,P.I)({fontSize:"1.125rem",fontWeight:500}),(0,P.I)({fontSize:"1.125rem",fontWeight:500})),L=(0,c.Ay)(D).withConfig({componentId:"sc-8150504f-2"})(["justify-content:center;min-height:100px;> button{"," color:var(--gray-800,#1e2d37);}"],(0,P.I)({fontSize:"1.125rem",fontWeight:500})),M=(0,c.Ay)(D).withConfig({componentId:"sc-8150504f-3"})(["justify-content:left;",""],(0,a.xe)({my:4})),B=c.Ay.div.withConfig({componentId:"sc-8150504f-4"})(["background-color:var(--white);border-radius:8px;",";@media ","{",";}"],(0,a.xe)({p:"var(--container-padding-base)",pt:4,mx:"var(--negative-padding-base)"}),o.j.md,(0,a.xe)({p:"48px",my:"40px",mx:0})),R=c.Ay.div.withConfig({componentId:"sc-8150504f-5"})(["@media ","{margin:0 auto;}"],o.j.md),W=c.Ay.div.withConfig({componentId:"sc-8150504f-6"})(["position:relative;"," min-height:100px;"],(0,a.xe)({my:4}));var G=i(98122),U=i(60994);let V="/mina-sidor/foljer",z={flode:{name:"F\xf6ljer",href:`${V}/flode`,content:(0,n.jsx)(()=>{let{filterItems:e,setFilterItems:t,infiniteNewsFeed:i,shouldRevalidate:r,setShouldRevalidate:o}=(0,g.o)(),{follows:a,loading:s}=(0,u.k)(),{filters:d}=(0,F.A)({follows:a,filterItems:e,setFilterItems:t}),{articlesWithFollowItems:l,loadMore:c,hasMore:m,status:h,mutate:x}=i;return((0,C.useEffect)(()=>{r&&(o(!1),x())},[x,o,r]),(0,C.useEffect)(()=>{let e=a.map(e=>e.tagId).sort();t(t=>{let i=t.filter(t=>e.includes(t));return i.length===t.length?t:i})},[a,t]),s||d.some(e=>e.items.length))?(0,n.jsxs)($,{withMinHeight:!0,px:0,children:[d.some(e=>e.items.length)&&(0,n.jsx)(H.A,{filters:d,loading:s}),{RESOLVED:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(E.h,{value:N.B.Spacing16}),(0,n.jsx)(O.jH,{children:l.map(({article:e,followsItems:t})=>(0,n.jsx)(T.Z,{cardLabel:{text:t.length>1?t.length.toString():t[0].tagName,iconHref:"#icon-star-rounded"},children:(0,n.jsx)(S.A,{article:e})},e.uuid))}),(0,n.jsx)(E.h,{value:N.B.Spacing16}),m&&(0,n.jsx)(L,{children:(0,n.jsx)(k.$n,{variant:"text",isLoading:"PENDING"===h,onClick:()=>c(),children:"Visa fler"})})]}
1),PENDING:(0,n.jsx)(W,{children:(0,n.jsx)(p.r,{children:(0,n.jsx)(p.y,{role:"alert","aria-busy":"true"})})}),EMPTY:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(M,{children:"Just nu finns det inga artiklar som inneh\xe5ller de \xe4mnen du f\xf6ljer"}),(0,n.jsx)(B,{children:(0,n.jsx)(R,{children:(0,n.jsx)(y.A,{})})})]})}[s||"PENDING"===h&&0===l.length?"PENDING":l.length>0?"RESOLVED":"EMPTY"]]}):(0,n.jsx)(_.m,{})},{})},hantera:{name:"Hantera f\xf6ljer",href:`${V}/hantera`,content:(0,n.jsx)(()=>{let{follows:e,loading:t}=(0,u.k)(),{setShouldRevalidate:i}=(0,g.o)(),r=e=>(0,n.jsx)(f.A,{callback:()=>i(!0),tag:e,buttonType:"ICON_BUTTON"},e.id),o=(e,t)=>e.filter(({tagType:e})=>e===t).map(e=>({id:e.tagId,name:e.tagName,type:e.tagType,isActive:!0})),a=[{title:"\xc4mnen",items:(0,w.k)(o(e,"topic")),button:r},{title:"Skribenter",items:(0,w.k)(o(e,"author")),button:r}];return(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)(p.r,{children:(0,n.jsx)(p.y,{"data-testid":"spinner",role:"alert","aria-busy":"true"})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(n.Fragment,{children:a.some(e=>e.items.length)?(0,n.jsx)(v,{children:(0,n.jsxs)(I,{children:[(0,n.jsx)(y.K,{children:"Du f\xf6ljer"}),(0,n.jsx)(b,{cardCount:a.filter(e=>e.items.length).length,children:a.map((e,t)=>(0,n.jsx)(A,{cardCount:a.filter(e=>e.items.length).length,itemCount:e.items.length,children:(0,n.jsx)(j.Ay,{...e})},t))})]})}):(0,n.jsx)(n.Fragment,{})}),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(v,{children:(0,n.jsx)(I,{children:(0,n.jsx)(y.A,{})})})})]})})},{})}},Z=({currentTab:e})=>(0,s.Hr)()?(0,n.jsx)(l.default,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(K,{children:(0,n.jsx)(X,{children:Object.keys(z).map((t,i)=>{let r=z[t];return(0,n.jsx)(Y,{isActive:e===t,children:(0,n.jsx)(x.s,{href:r.href,children:r.name})},`${t}-${i}`)})})}),(0,n.jsxs)(J,{withMinHeight:!0,tab:e,children:[(0,n.jsx)(g.W,{children:e in z&&z[e].content})," "]})]}),K=c.Ay.div.withConfig({componentId:"sc-8a99013-0"})(["@media ","{","}@media ","{"," max-width:var(--container-max-width);","}"],o.j.md,(0,a.xe)({mb:"40px"}),o.j.lg,(0,a.xe)({mx:"auto"}),(0,a.xe)({px:"var(--container-padding-base)"})),X=c.Ay.ul.withConfig({componentId:"sc-8a99013-1"})([""," display:flex;flex-direction:row;background-color:var(--corp-color-darken);list-style:none;"],(0,a.xe)({px:3,m:0})),Y=c.Ay.li.withConfig({componentId:"sc-8a99013-2"})([""," a{color:var(--white);position:relative;display:inline-block;"," ","}a:hover{text-decoration:none;opacity:0.5;}"],(0,a.xe)({mr:3}),(0,a.xe)({py:2}),({isActive:e=!1})=>e&&(0,c.AH)(["font-weight:bold;::after{content:'';height:2px;width:100%;bottom:0;left:0;position:absolute;background:var(--white);}"])),J=(0,c.Ay)(r.m).withConfig({componentId:"sc-8a99013-3"})(["",""],({tab:e=""})=>"hantera"===e?(0,c.AH)(["background-color:white;@media ","{background-color:unset;}"],o.j.md):(0,c.AH)([""," @media ","{","}"],(0,a.xe)({my:3}),o.j.md,(0,a.xe)({mb:"24px"}))),Q=(0,U.K)({Component:(0,G.OZ)({Component:()=>{let e=(0,d.useRouter)().asPath.split("/").pop()??"",t=(0,s.Hr)();e in z||(e="flode");let i=((e,t)=>{let i=(0,s.Pj)();return{title:`${i.getFullTitleName()} | ${e}`,description:`Mina sidor - ${e} - ${i.getSiteBaseUrl()}`,type:t,image:i.getLogoUrl()}})(`${z[e].name}`,"website");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{openGraphData:i,titleMetaData:i,showTakeoverAd:!1}),(0,n.jsx)(h.P,{fluid:!0,disableFooter:t,children:(0,n.jsx)(Z,{currentTab:e})})]})},shouldRedirect:G.Rm}),loggedOutText:"Du m\xe5ste logga in f\xf6r att kunna se de \xe4mnena du f\xf6ljer",loggedOutTitle:"Mina Sidor - F\xf6ljer"})},13245:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(94513),r=i(95089),o=i(72880);let a=({follows:e,filterItems:t,setFilterItems:i})=>{let a=(e,i)=>e.filter(({tagType:e})=>e===i).map(e=>({id:e.tagId,name:e.tagName,type:e.tagType,isActive:t.includes(e.tagId)})),s=e=>(0,n.jsx)(r.a,{onClick:()=>(e=>{e.isActive?i(t.filter(t=>t!==e.id)):i([...t,e.id])})(e),text:e.name,variant:"filter",isActive:e.isActive},e.id);return{filters:[{title:"\xc4mnen",items:(0,o.k)(a(e,"topic")),button:s},{title:"Skribenter",items:(0,o.k)(a(e,"author")),button:s}],filterItems:t,setFilterItems:i}}},56999:(e,t,i)=>{"use strict";i.d(t,{m:()=>c});var n=i(94513),r=i(14531),o=i(54020),a=i(57005),s=i(11730),d=i(78005),l=i(76663);let c=()=>{let{brandShortName:e}=(0,a.Pj)(),t=(0,a.rH)()?.mypages?.followPage,i=`/images/${e.toLowerCase()}/follow/product-image.svg`,r={pageText:t.landingPageText,image:{show:t.showProductImage,render:()=>(0,n.jsx)(m,{children:(0,n.jsx)(d.E,{src:i,alt:"Bild p\xe5 produkt"})})}};return(0,n.jsx)(l.n,{...r})},m=s.Ay.div.withConfig({componentId:"sc-c4ae7a9b-0"})([""," @media ","{","}
1width:200px;height:162.5px;"],(0,o.xe)({mt:"-12px",mx:"auto",mb:"16px"}),r.j.md,(0,o.xe)({mb:4}))},98122:(e,t,i)=>{"use strict";i.d(t,{By:()=>m,OZ:()=>d,Q2:()=>l,Rm:()=>c});var n=i(94513),r=i(94285),o=i(14493),a=i(57005),s=i(91544);let d=({Component:e,shouldRedirect:t,redirectTo:i="/"})=>function(d){let l=(0,a.Pj)(),c=(0,s.useRouter)(),[m,h]=(0,r.useState)(!1),{cmsSettings:x,isLoading:g}=(0,o.m)(l.settingsEtag,l.cmsSettings);(0,r.useEffect)(()=>{g||h(!0)},[g]);let p=t(x);return(0,r.useEffect)(()=>{m&&p&&c.replace(i)},[p,c,m]),m&&!p?(0,n.jsx)(e,{...d}):null},l=e=>!e.admin.webmaster.purchaseflow.purchaseEnabled,c=e=>!e.admin.webmaster.mypages.showMyPages,m=e=>!e.admin.webmaster.mypages.readLater.isActive}},e=>{e.O(0,[1985,5599,1960,1633,2665,4973,640,285,7318,1482,3864,4314,2463,4440,2347,7898,636,6593,8792],()=>e(e.s=2795)),_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.