PageSourceSearch

https://mentorprise.be/_next/static/chunks/pages/blog-90f92e576c104d31.js

js mentorprise.be collected 2026-09-27 05:24:11 UTC 13,430 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9195],{57286:function(e,o,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return n(57678)}])},22875:function(e,o,n){"use strict";n.d(o,{z:function(){return r}});var l=n(80969),i=n(67294),t=n(85405);function r(e){(0,i.useEffect)((function(){var o,n,i,r,a,d,c,u,s,v,f,g,m,h,p,b,y,x,j=null===e||void 0===e?void 0:e.fonts;if("custom"===(null===j||void 0===j?void 0:j.source))j=null===e||void 0===e||null===(g=e.fonts)||void 0===g?void 0:g.custom,Object.entries(null!==(y=(0,t.s4)(null===(m=e.fonts)||void 0===m||null===(h=m.custom)||void 0===h?void 0:h.head,!0))&&void 0!==y?y:{}).forEach((function(e){var o=(0,l.Z)(e,2),n=o[0],i=o[1];return document.documentElement.style.setProperty("--head-".concat(n),i)})),Object.entries(null!==(x=(0,t.s4)(null===(p=e.fonts)||void 0===p||null===(b=p.custom)||void 0===b?void 0:b.body,!0))&&void 0!==x?x:{}).forEach((function(e){var o=(0,l.Z)(e,2),n=o[0],i=o[1];return document.documentElement.style.setProperty("--body-".concat(n),i)}));else if((null===j||void 0===j||null===(o=j.head)||void 0===o?void 0:o.name)&&(null===j||void 0===j||null===(n=j.body)||void 0===n?void 0:n.name)){var w,N;Object.entries(null!==(w=(0,t.s4)(j.body))&&void 0!==w?w:{}).forEach((function(e){var o=(0,l.Z)(e,2),n=o[0],i=o[1];return document.documentElement.style.setProperty("--body-".concat(n),i)})),Object.entries(null!==(N=(0,t.s4)(j.head))&&void 0!==N?N:{}).forEach((function(e){var o=(0,l.Z)(e,2),n=o[0],i=o[1];return document.documentElement.style.setProperty("--head-".concat(n),i)}))}var k={fontFamily:(null===e||void 0===e||null===(i=e.header)||void 0===i||null===(r=i.logo)||void 0===r||null===(a=r.font)||void 0===a?void 0:a.family)||(null===j||void 0===j||null===(d=j.head)||void 0===d?void 0:d.family)||'"Inter", sans-serif',fontWeight:(null===e||void 0===e||null===(c=e.header)||void 0===c||null===(u=c.logo)||void 0===u||null===(s=u.font)||void 0===s?void 0:s.weight)||(null===j||void 0===j||null===(v=j.head)||void 0===v?void 0:v.weight)||500};if(Object.entries(k).forEach((function(e){var o=(0,l.Z)(e,2),n=o[0],i=o[1];document.documentElement.style.setProperty("--header-logo-".concat(n),i),document.documentElement.style.setProperty("--footer-logo-".concat(n),i)})),"footer"===(null===e||void 0===e||null===(f=e.footer)||void 0===f?void 0:f.logoFrom)){var E,P,Z,_,F,I,O,A,q={fontFamily:(null===e||void 0===e||null===(E=e.footer)||void 0===E||null===(P=E.logo)||void 0===P||null===(Z=P.font)||void 0===Z?void 0:Z.family)||(null===j||void 0===j||null===(_=j.head)||void 0===_?void 0:_.family)||'"Inter", sans-serif',fontWeight:(null===e||void 0===e||null===(F=e.footer)||void 0===F||null===(I=F.logo)||void 0===I||null===(O=I.font)||void 0===O?void 0:O.weight)||(null===j||void 0===j||null===(A=j.head)||void 0===A?void 0:A.weight)||500};Object.entries(q).forEach((function(e){var o=(0,l.Z)(e,2),n=o[0],i=o[1];return document.documentElement.style.setProperty("--footer-logo-".concat(n),i)}))}}),[e])}},57678:function(e,o,n){"use strict";n.r(o),n.d(o,{__N_SSP:function(){return _},default:function(){return F}});var l,i=n(85893),t=n(67294),r=n(85405),a=n(47041),d=n(90387),c=n(30120),u=n(51258),s=n(59973),v=n(22875),f=n(41664),g=n.n(f),m=n(21123),h=n(86238),p=n(64038),b=n(53108),y=n(89774),x=n(69779),j="...",w=function(e,o){var n=o-e+1;return Array.from({length:n},(function(o,n){return n+e}))},N=function(e,o){return w(o,1+2*e)},k=function(e,o){return w(o-2*e,o)},E=function(e,o,n){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=1,t=Math.ceil(e/o),r=1,a=t,d=i+5;if(d>=t)return w(r,t);var c=Math.max(n-(l?0:i),1),u=Math.min(n+(l?0:i),t),s=c>2,v=u<t-1;if(!s&&v){var f=N(i,r),g=l?[a]:k(i,a);return(0,x.Z)(f).concat([j],(0,x.Z)(g))}if(s&&!v){var m=l?[r]:N(i,r),h=k(i,a);return(0,x.Z)(m).concat([j],(0,x.Z)(h))}if(s&&v){var p=w(c,u);return[r,j].concat((0,x.Z)(p),[j,a])}};function P(e){var o=e.dark,n=e.query,l=e.currentPage,a=e.total,d=e.perPage,c=(0,y.$G)("common").t,u=(0,r.ac)("(max-width: 767px)"),s=(0,t.useState)(E(a,d,l)),v=s[0],f=s[1],m="py-3 px-4 md:p-4 xl:px-6 rounded-lg lg:rou
1nded-xl body-large transition-all duration-300";return(0,t.useEffect)((function(){f(E(a,d,l,u))}),[a,d,l,u]),0===l||v.length<2?null:(0,i.jsxs)("div",{className:"grid items-center",style:{gridTemplateColumns:"repeat(3, auto)"},children:[(0,i.jsx)("div",{children:l>1&&(0,i.jsx)(g(),{href:"/blog?q=".concat(n,"&p=").concat(l-1),children:(0,i.jsxs)("a",{className:(0,r.AK)("inline-flex items-center gap-2",o?"text-black":"text-white",1===l&&"pointer-events-none invisible"),children:[(0,i.jsx)(p.Z,{className:"w-4 h-4"}),(0,i.jsx)("span",{className:"hidden md:inline-block body-large",children:c("previous")})]})})}),(0,i.jsx)("div",{className:"flex items-center justify-center",children:v.map((function(e,t){return"..."===e?(0,i.jsx)("div",{className:(0,r.AK)(m,o?"text-black":"text-white"),children:"..."},"pagination-page-".concat(t)):(0,i.jsx)(g(),{href:"/blog?q=".concat(n,"&p=").concat(e),children:(0,i.jsx)("a",{className:(0,r.AK)(m,e===l?o?"bg-black text-white":"bg-white text-black":o?"text-black hover:bg-black hover:bg-opacity-10":" text-white hover:bg-white hover:bg-opacity-10"),children:e})},"pagination-page-".concat(t))}))}),(0,i.jsx)("div",{className:"text-right",children:function(){var e;try{e=Math.ceil(a/d)}catch(o){e=1}return l<e}()&&(0,i.jsx)(g(),{href:"/blog?q=".concat(n,"&p=").concat(l+1),children:(0,i.jsxs)("a",{className:(0,r.AK)("inline-flex items-center gap-2",o?"text-black":"text-white"),children:[(0,i.jsx)("span",{className:"hidden md:inline-block body-large",children:c("next")}),(0,i.jsx)(b.Z,{className:"w-4 h-4"})]})})})]})}var Z=function(e){var o,n,f,p=e.website,b=e.page,x=e.posts,j=e.pt,w=(0,y.$G)("page_blog_index").t,N=(0,d.useRouter)(),k=N.query,E=k.q,Z=void 0===E?"":E,_=k.p,F=void 0===_?1:_;F=parseInt(F,10);var I=(0,t.useState)(Z),O=I[0],A=I[1],q=(0,t.useState)(null),S=q[0],T=q[1],C=(0,t.useState)("#000000"),R=C[0],z=C[1];return(0,v.z)(p),(0,t.useEffect)((function(){var e;j||(j=(0,a.getCookie)("pt")),j&&(null===N||void 0===N||null===(e=N.query)||void 0===e?void 0:e.pt)!==j&&"public"!==p.status&&N.replace("".concat(N.asPath,"?pt=").concat(j),void 0,{shallow:!0})}),[N,j,p]),(0,t.useEffect)((function(){if(O!==Z)return clearTimeout(l),l=setTimeout((function(){N.push("/blog?q=".concat(O,"&p=1"))}),750),function(){clearTimeout(l)}}),[O,Z]),(0,t.useEffect)((function(){A(Z)}),[Z]),(0,t.useEffect)((function(){var e;if(F>1&&(b.isCanonical=!1),(null===b||void 0===b||null===(e=b.blocks)||void 0===e?void 0:e.length)>0){var o,n=b.blocks.find((function(e){var o;return"blog"===(null===(o=e.WebsiteBlock)||void 0===o?void 0:o.type)}))||{};n.showDate=null===(o=n.showDate)||void 0===o||o,T(n)}}),[b]),(0,t.useEffect)((function(){var e,o;O&&0===(null===x||void 0===x||null===(e=x.results)||void 0===e?void 0:e.length)&&F>1&&N.push("/blog?q=".concat(O,"&p=1")),!O&&0===(null===x||void 0===x||null===(o=x.results)||void 0===o?void 0:o.length)&&F>1&&N.push("/blog?p=1")}),[x,O,F]),(0,i.jsxs)("section",{className:"relative z-10",children:[(0,i.jsx)(m.Z,{website:p,block:S,setTextColor:z}),(0,i.jsxs)("div",{className:"container mx-auto py-12 lg:py-14 xl:py-20 relative z-10",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between gap-6 mb-6 lg:mb-10 flex-wrap",children:[(0,i.jsx)("h1",{className:"heading-large font-medium",style:{color:R},children:null===b||void 0===b?void 0:b.label}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("span",{className:"hidden lg:block absolute top-1/2 z-10 pl-2.5 -translate-y-1/2",style:{color:R},children:(0,i.jsx)(u.Z,{className:"w-9 h-9"})}),(0,i.jsx)("input",{className:(0,r.AK)("input lg:!pl-14 body-large bg-opacity-10 !border-none !rounded-sm",R===r._y?"bg-white":"bg-black"),placeholder:w("search"),value:O,style:{color:R},onChange:function(e){return A(e.currentTarget.value)}})]})]}),(0,i.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-10 mb-8 lg:mb-14",children:[null===x||void 0===x||null===(o=x.results)||void 0===o?void 0:o.map((function(e){var o,n,l;return(0,i.jsx)(g(),{className:"relative cursor-pointer",href:"/blog/".concat(e.slug),children:(0,i.jsxs)("a",{children:[(0,i.jsx)("div",{className:(0,r.AK)("group relative overflow-hidden mb-6",(0,r.yW)(null===S||void 0===S?void 0:S.cornerRadius,null===p||void 0===p?void 0:p.cornerRadius)),children:(0,i.jsx)("div",{className:"relative flex items-center justify-center h-64 overflow-hidden transition-all duration-300 group-hover:scale-110",style:(0,h.u)(e,p),children:(!(null===(o=e.banner)||void 0===o||null===(n=o.layers)||void 0===n||null===(l=n.image)||void 0===l?void 0:l.enabled)||!e.Image)&&(0,i.jsx)(s.Z,{className:"w-22 h-22 opacity-20"})})}),(0,i.jsx)("h3",{className:"heading-medium mb-2",style:{color:R},children:e.title.length>60?e.title.substring(0,57)+"...":e.title}),(null===S||void 0===S?void 0:S.showDate)&&(0,i.jsx)("p",{className:"body-normal",style:{color:R},children:c.ou.fromISO(e.publishedAt||e.createdAt).toFormat("LLL dd, yyyy")})]})},e._id)})),O&&0===(null===x||void 0===x||null===(n=x.results)||void 0===n?void 0:n.length)&&(0,i.jsx)("div",{className:"col-span-3 p-2 lg:p-4 body-large",children:w("noSearchResults")}),!O&&0===(null===x||void 0===x||null===(f=x.results)||void 0===f?void 0:f.length)&&(0,i.jsx)("div",{className:"col-span-3 p-2 lg:p-4 body-large",children:w("noResults")})]}),(0,i.jsx)(P,{dark:R===r.nJ,cornerRadius:(0,r.yW)(null===S||void 0===S?void 0:S.cornerRadius,null===p||void 0===p?void 0:p.cornerRadius),query:Z,currentPage:F,perPage:null===x||void 0===x?void 0:x.perPage,total:null===x||void 0===x?void 0:x.total})]})]})};Z.getLayout=r.G0;var _=!0,F=Z},86238:function(e,o,n){"use strict";n.d(o,{O:function(){return a},u:function(){return r}});var l=n(14251),i=n(52875),t=n(85405),r=function(e,o){var n,l,i,r,d,c,u,s,v,f,g,m,h,p,b,
1y=a(e).banner,x=(null===(n=y.layers)||void 0===n||null===(l=n.image)||void 0===l?void 0:l.enabled)&&e.Image?"image":null===(i=y.layers)||void 0===i||null===(r=i.overlay)||void 0===r?void 0:r.type,j={color1:null===(d=y.layers)||void 0===d||null===(c=d.overlay)||void 0===c?void 0:c.color1,color2:null===(u=y.layers)||void 0===u||null===(s=u.overlay)||void 0===s?void 0:s.color2,image:e.Image,positionX:null===(v=y.layers)||void 0===v||null===(f=v.image)||void 0===f?void 0:f.positionX,positionY:null===(g=y.layers)||void 0===g||null===(m=g.image)||void 0===m?void 0:m.positionY,direction:null===(h=y.layers)||void 0===h||null===(p=h.overlay)||void 0===p?void 0:p.direction};if("custom"!==(null===(b=y.layers)||void 0===b?void 0:b.palette)){var w,N,k,E,P,Z=(null===o||void 0===o||null===(w=o.colorPalette)||void 0===w||null===(N=w.Palette)||void 0===N?void 0:N.colors)||(null===o||void 0===o||null===(k=o.colorPalette)||void 0===k?void 0:k.colors)||[],_=Z.length>0?(0,t.dz)(y.layers.palette):0;if(_>-1)j.color1=null===(E=Z[_])||void 0===E?void 0:E.color,j.color2=null===(P=Z[_%2===0?_+1:_-1])||void 0===P?void 0:P.color}var F=(0,t.$O)(j.color1||"#FFFFFF");switch(x){case"image":var I,O;return{backgroundImage:"url(".concat((null===(I=j.image)||void 0===I?void 0:I.url)||(null===(O=j.image)||void 0===O?void 0:O.preview)||j.image,")"),backgroundPosition:"".concat(j.positionX||"center"," ").concat(j.positionY||"center"),backgroundSize:"cover",color:F};case"gradient":return{backgroundImage:"linear-gradient(".concat(t.mQ.find((function(e){return e.id===(j.direction||"top-down")})).value,", ").concat(j.color1,", ").concat(j.color2,")"),color:F};default:return{backgroundColor:j.color1,color:F}}},a=function(e){var o,n;if((0,t.$K)(e)&&!(null===(o=e.banner)||void 0===o||null===(n=o.layers)||void 0===n?void 0:n.palette)){var r,a,d,c,u,s,v,f,g,m,h,p,b,y=void 0;"gradient"===(null===(r=e.banner)||void 0===r?void 0:r.type)&&(null===(a=e.banner)||void 0===a?void 0:a.direction)&&(y=e.banner.direction.includes("deg")?t.mQ.find((function(o){return o.value===(e.banner.direction||"180deg")})).id:e.banner.direction),e.banner=(0,i.Z)((0,l.Z)({},e.banner),{layers:{palette:"custom",image:{enabled:"image"===(null===(d=e.banner)||void 0===d?void 0:d.type)&&!!e.Image,opacity:(null===(c=e.banner)||void 0===c?void 0:c.opacity)||50,positionX:(null===(u=e.banner)||void 0===u?void 0:u.imagePositionX)||"50%",positionY:(null===(s=e.banner)||void 0===s?void 0:s.imagePositionY)||"50%"},overlay:{type:"gradient"===(null===(v=e.banner)||void 0===v?void 0:v.type)?"gradient":"solid",color1:(null===(f=e.banner)||void 0===f?void 0:f.color)||"#000000",color2:"gradient"===(null===(g=e.banner)||void 0===g?void 0:g.type)?null===(m=e.banner)||void 0===m?void 0:m.color2:void 0,direction:y},foreground:{accent:"gradient"===(null===(h=e.banner)||void 0===h?void 0:h.type)?(0,t.$O)((null===(p=e.banner)||void 0===p?void 0:p.color)||"#000000"):"#FFFFFF"}}}),"image"===(null===(b=e.banner)||void 0===b?void 0:b.type)&&(e.banner.layers.image.media=e.Image)}return e}},80969:function(e,o,n){"use strict";n.d(o,{Z:function(){return t}});var l=n(62893);var i=n(12267);function t(e,o){return function(e){if(Array.isArray(e))return e}(e)||(0,l.Z)(e,o)||(0,i.Z)(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}},function(e){e.O(0,[3891,120,5405,9774,2888,179],(function(){return o=57286,e(e.s=o);var o}));var o=e.O();_N_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.