PageSourceSearch

https://www3.mindoktor.se/component---src-page-templates-journalen…ge-number-index-tsx-8c348c2c401cec00ba93.js

js mindoktor.se collected 2026-09-24 21:59:33 UTC 5,955 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmindoktor_se=self.webpackChunkmindoktor_se||[]).push([[957],{6780:function(e,a,t){t.d(a,{s:function(){return i}});var n=t(5785),r=t(7294),l=t(582),o="PaginationBar-module--pagination-bar__container__deliminator--5d43f";const i=e=>{const a=["PaginationBar-module--pagination-bar--63198"];void 0!==e.classNames&&a.push.apply(a,(0,n.Z)(e.classNames));const t=[];function i(a){if(void 0!==a){for(const e of t)if(e.pageNumber===a.pageNumber)return;t.push({pageNumber:a.pageNumber,label:a.pageNumber.toString(),href:a.href,selected:a.pageNumber===e.currentPage,aloneLeft:!1,aloneRight:!1})}}if(e.pages.length<=5)for(const n of e.pages)i(n);else{i(e.pages[0]),i(e.pages[1]),i(e.pages[e.pages.length-1]),i(e.pages[e.pages.length-2]),i(e.pages[e.currentPage-1]),i(e.pages[e.currentPage-2]),i(e.pages[e.currentPage]),t.sort(((e,a)=>e.pageNumber-a.pageNumber));for(let e=0;e<t.length;e++){const a=t[e],n=t[e-1],r=t[e+1];void 0!==n&&n.pageNumber!==a.pageNumber-1&&(a.aloneLeft=!0),void 0!==r&&r.pageNumber!==a.pageNumber+1&&(a.aloneRight=!0)}}return r.createElement("div",{className:a.join(" ")},r.createElement("div",{className:"PaginationBar-module--pagination-bar__container--749a5"},t.map(((a,n)=>{const i=["PaginationBar-module--pagination-bar__container__link--839f4"];return a.pageNumber===e.currentPage&&i.push("PaginationBar-module--pagination-bar__container__link--selected--d7194"),r.createElement(r.Fragment,{key:n},a.aloneLeft&&r.createElement("div",{className:o}),r.createElement(l.r,{alt:`Gå till sida ${a.pageNumber.toString()}`,href:a.href,classNames:i},a.label),n<t.length-1&&r.createElement("div",{className:o}),a.aloneRight&&r.createElement("div",{className:o}))}))))}},9494:function(e,a,t){t.d(a,{P:function(){return o}});var n=t(7294),r=t(6728),l=t(3335);function o(e){const a=[{label:"Alla kategorier",alt:"Hitta nyheter, tips och insikter från Min Doktor",href:"/journalen/",selected:void 0===e.selectedTag}];
1for(const t of e.tags)a.push({label:(0,l.kP)(t.label),alt:`Hitta fler artiklar om ${(0,l.kP)(t.slug).toLowerCase()}`,href:`/journalen/${(0,l.kP)(t.slug)}/`,selected:e.selectedTag===t.slug});return n.createElement(r.Y,{tags:a,horizontalAlign:"center"})}},9724:function(e,a,t){t.r(a),t.d(a,{Head:function(){return P},default:function(){return k}});var n=t(7294),r=t(7746),l=t(2887),o=t(5401),i=t(3649),g=t(1498),s=t(6780),u=t(1421),d=t(7882),c=t(6965),p=t(3335),m=t(1965),b=t(3558),h=t(9494);function f(e,a){const t=[{label:"Tips & hälsoråd",path:"/journalen/"}];return e>1&&t.push({label:`Sida ${e}`,path:a}),(0,c.q)(t)}const P=e=>{var a,t;let r=(0,p.kP)(null===(a=e.data.pageData)||void 0===a?void 0:a.seoTitle),l=(0,p.kP)(null===(t=e.data.pageData)||void 0===t?void 0:t.seoDescription);return e.pageContext.pageNumber>1&&(r=`${r} - Sida ${e.pageContext.pageNumber}`,l=`Sida - ${e.pageContext.pageNumber}. ${l}`),n.createElement(b.U,{pagePath:e.location.pathname,pageTitle:r,pageDescription:l,pageBreadcrumbs:f(e.pageContext.pageNumber,e.location.pathname)})};var k=e=>{var a,t;let c=(0,p.kP)(null===(a=e.data.pageData)||void 0===a?void 0:a.header);e.pageContext.pageNumber>1&&(c=`${c} - Sida ${e.pageContext.pageNumber}`);const b=[];for(const n of e.data.allDatoCmsDataJournalTag.nodes)b.push({label:(0,p.kP)(n.label),slug:(0,p.kP)(n.slug)});let P;for(const n of e.data.allDatoCmsPageJournalArticle.nodes){var k,v,N;if(!0===n.featured){P={imageURL:(0,p.kP)(null===(k=n.image)||void 0===k||null===(v=k.fixed)||void 0===v?void 0:v.src),header:(0,p.kP)(n.title),published:(0,m.wG)((0,p.kP)(n.firstPublished)),tagLabel:(0,p.kP)(null===(N=n.tag)||void 0===N?void 0:N.label),text:(0,p.kP)(n.introV2),href:`/journalen/${(0,p.kP)(n.slug)}/`};break}}const x=[],E=(e.pageContext.pageNumber-1)*e.pageContext.maxArticlesPerPage;for(let n=E;n<E+e.pageContext.maxArticlesPerPage;n++){var _,C,T;const a=e.data.allDatoCmsPageJournalArticle.nodes[n];if(void 0===a)break;x.push({imageURL:(0,p.kP)(null===(_=a.image)||void 0===_||null===(C=_.fixed)||void 0===C?void 0:C.src),header:(0,p.kP)(a.title),published:(0,m.wG)((0,p.kP)(a.firstPublished)),tagLabel:(0,p.kP)(null===(T=a.tag)||void 0===T?void 0:T.label),text:(0,p.kP)(a.introV2),href:`/journalen/${(0,p.kP)(a.slug)}/`})}const w=[];for(let n=1;n<e.pageContext.nbrOfPages+1;n++)w.push({pageNumber:n,href:1===n?"/journalen/":`/journalen/sida/${n}/`});return n.createElement(u.p,{pagePath:e.location.pathname,backgroundBubbles:!0,classNames:["index-module--journal-page--5fad9"]},n.createElement(d.T,{width:"narrow",background:"transparent"},n.createElement(l.O,{breadcrumbs:f(e.pageContext.pageNumber,e.location.pathname)}),n.createElement(o.R,null,c),n.createElement(n.Fragment,null,1===e.pageContext.pageNumber&&n.createElement(i.U,null,(0,p.kP)(null===(t=e.data.pageData)||void 0===t?void 0:t.introText)))),n.createElement(n.Fragment,null,void 0!==P&&n.createElement(d.T,{width:"default",background:"transparent",paddingTop:"none"},n.createElement(r.T,{imageURL:P.imageURL,header:P.header,published:P.published,tags:[{id:"0",label:P.tagLabel}],text:P.text,href:P.href}))),n.createElement(d.T,{width:"narrow",background:"light-red",paddingTop:"compact",paddingBottom:"compact"},n.createElement(h.P,{tags:b})),n.createElement(d.T,{width:"default",background:"transparent"},n.createElement("div",{className:"index-module--journal-page__all-articles-list--b35a0"},x.map(((e,a)=>n.createElement(r.T,{key:a,imageURL:e.imageURL,header:e.header,published:e.published,tags:[{id:"0",label:e.tagLabel}],text:e.text,href:e.href,forceMobileLayout:!0,classNames:["index-module--journal-page__all-articles-list__article--fb573"]}))))),n.createElement(d.T,{width:"narrow",background:"transparent"},n.createElement(s.s,{pages:w,currentPage:e.pageContext.pageNumber})),n.createElement(d.T,{width:"narrow",background:"light-red"},n.createElement(g.S,null)))}}}]);
2//# sourceMappingURL=component---src-page-templates-journalen-sida-page-number-index-tsx-8c348c2c401cec00ba93.js.map

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.