1"use strict";(self.webpackChunkmkbservicedesk_gatsby=self.webpackChunkmkbservicedesk_gatsby||[]).push([[5939],{2609:function(e,t,a){a.d(t,{A:function(){return m}});var n=a(6540),l=a(8007),r=a(978),o=a(3742),i=a.n(o),s="article-card-module--footer--5db60",c=a(1612),d=a(5643);var m=n.memo((e=>{let{title:t,parentTitle:a,subtitle:o,image:m,link:u,description:p,publishDate:g,updateDate:y,readMoreButton:k,footerDivider:f,body:E}=e;const h=(0,d.mostRecentDate)(g,y),v=(0,d.readTimeFromRichText)(null==E?void 0:E.raw);return n.createElement(l.Link,{to:u,className:"article-card-module--wrapper--8c141"},n.createElement("article",null,n.createElement("header",{className:"article-card-module--outer--3a448 clearfix"},n.createElement("div",{className:"article-card-module--inner--aea33"},m&&n.createElement(r.G,{image:m,alt:m.title?m.title:"",loading:"lazy",placeholder:"blurred"}))),n.createElement("h3",null,t),o&&n.createElement("h4",null,o),n.createElement("p",null,p&&n.createElement(i(),{text:p,maxLine:"5",ellipsis:"...",basedOn:"words"})),n.createElement("div",{className:"gradient"}),n.createElement("footer",{className:f?`article-card-module--footer-divider--4911f ${s}`:s},k&&n.createElement("button",{className:"article-card-module--footer-button--a561c"},"Lees artikel"),h&&n.createElement("span",{className:"updateDate"},n.createElement(c.KP4,null)," ",h),v&&n.createElement("span",{className:"readTime"},n.createElement(c.w_X,null)," ",v," minuten"))))}))},5974:function(e,t,a){var n=a(6540),l=a(8154),r=a(8007);t.A=function(e){let{title:t,description:a,image:o,url:i,appendBrand:s}=e;const{site:c}=(0,r.useStaticQuery)("63159454"),d=c.siteMetadata.title,m=a||c.siteMetadata.description;!1!==s&&(t=t?`${t} - ${d}`:d);try{o&&o.startsWith("//")&&(o=`https:${o}`)}catch(u){console.error(u)}return n.createElement(l.m,null,n.createElement("meta",{property:"og:title",content:t}),n.createElement("meta",{property:"og:description",content:m}),o&&n.createElement("meta",{property:"og:image",content:o}),n.createElement("meta",{property:"og:url",content:i}),n.createElement("meta",{name:"twitter:title",content:t}),n.createElement("meta",{name:"twitter:description",content:m}),o&&n.createElement("meta",{name:"twitter:image",content:o}),o&&n.createElement("meta",{name:"twitter:card",content:"summary_large_image"}))}},5024:function(e,t,a){a.d(t,{A:function(){return s}});var n=a(6540),l=a(5500),r=a(7359),o=a(6258),i=a(3062);var s=e=>{let{sponsor:t}=e;return n.createElement("a",{id:"sponsor",href:t.url,rel:"sponsored noopener noreferrer",target:"_blank",className:"sponsor-module--sponsor--6a8c8",onClick:async()=>{(0,o.dataLayer)({event:"website-interaction",category:"sponsorbox",action:`external-link:${t.url}`,label:t.name}),(0,l.$K)(await(0,r.v)(),t.contentful_id,t.url)}},n.createElement("span",null,"Mogelijk gemaakt door:"),n.createElement("div",{className:"sponsor-module--sponsor-image-wrapper--36199"},t.image&&n.createElement(i.A,{image:t.image,alt:t.name})),n.createElement("p",{className:"sponsor-module--sponsor-txt--94e97"},t.description.childMarkdownRemark.rawMarkdownBody))}},923:function(e,t,a){var n=a(6540),l=a(5500),r=a(7359),o=a(832),i=a.n(o);t.A=e=>{let{contentfulId:t,contentTitle:a,contentType:o,displayPosition:s,displayPageContentfulId:c,displayPageTitle:d,displayPagePath:m,formFields:u,children:p}=e;const{0:g,1:y}=(0,n.useState)(!1);return n.createElement(i(),{active:!g,partialVisibility:!0,onChange:async e=>{if(y(e),e){const e=await(0,r.N)();(0,l.E0)(e.user.uid,t,a,o,{displayPosition:s,displayPageContentfulId:c,displayPageTitle:d,displayPagePath:m,formFields:u})}}},n.createElement(n.Fragment,null,p))}},7359:function(e,t,a){a.d(t,{N:function(){return l},v:function(){return r}});var n=a(6826);const l=async()=>await n.A.auth().signInAnonymously(),r=async()=>(await l()).user.uid},5500:function(e,t,a){a.d(t,{$K:function(){return s},E0:function(){return o},Tm:function(){return r},co:function(){return i},ln:function(){return c}});var n=a(6826);let l={};const r=e=>{l=e},o=async function(e,t,a,l,r){void 0===r&&(r={displayPosition:null,displayPageContentfulId:null,displayPageTitle:null,displayPagePath:null,formFields:null}),r=r||{};
1const o={contentfulId:t,contentfulTitle:a,contentType:l,displayedAt:n.A.firestore.FieldValue.serverTimestamp()};r.displayPosition&&(o.displayPosition=r.displayPosition),r.displayPageContentfulId&&(o.displayPageContentfulId=r.displayPageContentfulId),r.displayPageTitle&&(o.displayPageTitle=r.displayPageTitle),r.displayPagePath&&(o.displayPagePath=r.displayPagePath);try{r.formFields&&(o.requestedFormFields=r.formFields.length,o.requestedFormFieldNames=r.formFields)}catch(i){}try{await n.A.firestore().collection("users").doc(e).collection("displayTracking").add(o)}catch(s){console.log(s)}},i=async(e,t)=>{const a=await n.A.auth().currentUser;if(!a)return;const l={eventType:e,eventAt:n.A.firestore.FieldValue.serverTimestamp()};null!=t&&t.contentfulId&&(l.contentfulId=t.contentfulId),null!=t&&t.contentfulType&&(l.contentfulType=t.contentfulType),null!=t&&t.contentfulTitle&&(l.contentfulTitle=t.contentfulTitle),null!=t&&t.displayPageContentfulId&&(l.displayPageContentfulId=t.displayPageContentfulId),null!=t&&t.displayPageTitle&&(l.displayPageTitle=t.displayPageTitle),null!=t&&t.displayPagePath&&(l.displayPagePath=t.displayPagePath),null!=t&&t.displayPosition&&(l.displayPosition=t.displayPosition);try{if(await n.A.firestore().collection("users").doc(a.uid).collection("eventTracking").add(l),null!=t&&t.contentfulId){const o=(new Date).getFullYear(),i=(new Date).getMonth()+1,s=(new Date).getDate(),c=`${o}-${i.toString().padStart(2,"0")}`,d=`${o}-${i.toString().padStart(2,"0")}-${s.toString().padStart(2,"0")}`,m=n.A.firestore().collection("contentfulEntries").doc(t.contentfulId).collection("eventTracking").doc(e);try{await m.collection("monthly").doc(c).collection("users").doc(a.uid).set(l)}catch(r){console.log("error in monthly users",r)}try{await m.collection("monthly").doc(c).collection("total").add(l)}catch(r){console.log("error in monthly total",r)}try{await m.collection("daily").doc(d).collection("users").doc(a.uid).set(l)}catch(r){console.log("error in daily users",r)}try{await m.collection("daily").doc(d).collection("total").add(l)}catch(r){console.log("error in daily total",r)}try{await m.collection("users").doc(a.uid).set(l)}catch(r){console.log("error in users",r)}try{await m.collection("total").add(l)}catch(r){console.log("error in total",r)}}}catch(r){console.log(r)}},s=async(e,t,a)=>{const r=l;try{await n.A.firestore().collection("users").doc(e).collection("externalLink").doc(r.contentfulId).set({gaClientId:c(),displayPageContentfulId:r.contentfulId,displayPageTitle:r.title,displayPagePath:r.path,contentfulId:t,link:a,date:n.A.firestore.FieldValue.serverTimestamp()},{merge:!0})}catch(o){console.log(o)}},c=()=>{try{return document.cookie.match("(^|;)\\s*_ga\\s*=\\s*([^;]+)")[2].split(".").slice(2,4).toString().replace(",",".")}catch(e){return null}}},2181:function(e,t,a){a.r(t),a.d(t,{default:function(){return A}});var n=a(5540),l=a(6540),r=a(8154),o=a(8156),i=a.n(o),s=a(5689),c=a.n(s),d=a(3895),m=a(4214),u=a(5974),p=a(1854),g=a(9e3),y=a(5024),k=a(2609),f=a(8699),E=a(8007),h="paging-module--active--ae35c",v=a(1612);var P=e=>{let{pageContext:t,desk:a,deskCategory:n,tag:r}=e;const{currentPage:o,numPages:i,totalArticles:s,startArticle:d,endArticle:m}=t,u=1===o,p=o===i,g=o-1,y=o+1;return i<=1?l.createElement(l.Fragment,null):l.createElement("div",{className:"paging-module--pagination-wrapper--fb3b5"},l.createElement("p",{className:"paging-module--pagination-label--096cd"},"Getoond ",d," tot en met ",m," van ",s," ","totaal, er zijn meerdere pagina's"),l.createElement("div",{className:"paging-module--pagination--90452"},(()=>{const e=[];u||(a&&e.push(l.createElement(E.Link,{key:"page-prev",to:c().desk(a,g),rel:"prev"},l.createElement(v.AiM,null))),n&&e.push(l.createElement(E.Link,{key:"page-prev",to:c().deskCategory(n,g),rel:"prev"},l.createElement(v.AiM,null))),r&&e.push(l.createElement(E.Link,{key:"page-prev",to:c().tag(r,g),rel:"prev"},l.createElement(v.AiM,null))));for(let t=1;t<=i;t++){let s=1,d=10;i>10&&(s=o-5,d=o+4,s<1&&(s=1,d=10),d>i&&(d=i,s=i-10)),t>=s&&t<=d&&(a&&e.push(l.createElement(E.Link,{activeClassName:h,key:`page-${t}`,to:c().desk(a,t)},t)),n&&e.push(l.createElement(E.Link,{activeClassName:h,key:`page-${t}`,to:c().deskCategory(n,t)},t)),r&&e.push(l.createElement(E.Link,{activeClassName:h,key:`page-${t}`,to:c().tag(r,t)},t)))}return p||(a&&e.push(l.createElement(E.Link,{key:"page-next",to:c().desk(a,y),rel:"next"},l.createElement(v.ZPM,null))),n&&e.push(l.createElement(E.Link,{key:"page-next",to:c().deskCategory(n,y),rel:"next"},l.createElement(v.ZPM,null))),r&&e.push(l.createElement(E.Link,{key:"page-next",to:c().tag(r,y),rel:"next"},l.createElement(v.ZPM,null)))),e})()))},w=a(2587);let b=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.A)(t,e),t.prototype.render=function(){var e;const t=i()(this.props,"data.contentfulDeskCategory"),a=i()(t,"description.childMarkdownRemark.rawMarkdownBody"),n=i()(t,"desk.deskcategory"),o=i()(this.props,"data.allC
1ontentfulArticle"),s=i()(this.props,"pageContext.desks"),E=i()(this.props,"pageContext.currentPage",0),h=`https://www.mkbservicedesk.nl${c().deskCategory(t,E)}`;return l.createElement(d.A,{location:this.props.location},l.createElement(m.A,{title:(t.pageTitle||t.name)+""+(E>1?" (Pagina: "+E+")":""),description:t.metaDescription||a||`In deze rubriek vertelt MKB Servicedesk je alles over ${t.name} ${null!==(e=t.desk)&&void 0!==e&&e.name?"binnen de "+t.desk.name:""} en lees je het laatste nieuws! ${E>1?"(Pagina: "+E+")":""}`,canonicalUrl:t.canonicalUrl,noIndex:t.noIndex}),l.createElement(u.A,{title:t.socialTitle||t.name,description:t.socialDescription||a,url:c().deskCategory(t),image:t.desk&&t.desk.image&&t.desk.image.gatsbyImageData&&t.desk.image.gatsbyImageData.images.fallback.src}),l.createElement(r.m,null,l.createElement("link",{rel:"canonical",href:h})),t.desk&&t.desk.image&&l.createElement(p.A,{desks:s,data:{...t,body:null},backgroundImage:t.desk.image.gatsbyImageData}),(!t.desk||!t.desk.image)&&l.createElement(p.A,{desks:s,data:{...t,body:null}}),l.createElement("main",{className:"main dossier"},l.createElement("div",{className:"container"},l.createElement(g.A,{desk:t.desk,desks:s,deskCategory:t,deskCategories:n}),l.createElement("div",{className:"desk-category-module--MainAndSideWrapper--687a4"},l.createElement("section",{className:"desk-category-module--DeskContent--e348c"},t.sponsor&&l.createElement(y.A,{sponsor:t.sponsor}),l.createElement("section",{className:"desk-category-module--desk-articles-grid--f7ffe"},o.nodes.map(((e,t)=>{var a,n,r;return l.createElement(k.A,{key:`article-${t}`,title:e.title,subtitle:e.subtitle,image:null===(a=e.image)||void 0===a?void 0:a.gatsbyImageData,description:null===(n=e.description)||void 0===n||null===(r=n.childMarkdownRemark)||void 0===r?void 0:r.rawMarkdownBody,link:c().article(e),publishDate:e.publishDate,updateDate:e.updateDate,readMoreEndOfText:!0,footerPublicationDate:!0,footerDivider:!0,body:e.body})}))),this.props.pageContext&&l.createElement(P,{pageContext:this.props.pageContext,deskCategory:t})),l.createElement("div",{className:"desk-category-module--DeskAside--0503e"},l.createElement(f.A,{categories:n}))))),l.createElement(w.A,null))},t}(l.Component);var A=b}}]); 2//# sourceMappingURL=component---src-templates-desk-category-desk-category-js-0065068d9e217f53d87e.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.