(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2492],{49937:function(e,o,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[slug]",function(){return n(27602)}])},22875:function(e,o,n){"use strict";n.d(o,{z:function(){return r}});var t=n(80969),l=n(67294),i=n(11942);function r(e){(0,l.useEffect)((function(){var o,n,l,r,u,a,d,s,c,v,f,m,h,y,p,b,g,_,w=null===e||void 0===e?void 0:e.fonts;if("custom"===(null===w||void 0===w?void 0:w.source))w=null===e||void 0===e||null===(m=e.fonts)||void 0===m?void 0:m.custom,Object.entries(null!==(g=(0,i.s4)(null===(h=e.fonts)||void 0===h||null===(y=h.custom)||void 0===y?void 0:y.head,!0))&&void 0!==g?g:{}).forEach((function(e){var o=(0,t.Z)(e,2),n=o[0],l=o[1];return document.documentElement.style.setProperty("--head-".concat(n),l)})),Object.entries(null!==(_=(0,i.s4)(null===(p=e.fonts)||void 0===p||null===(b=p.custom)||void 0===b?void 0:b.body,!0))&&void 0!==_?_:{}).forEach((function(e){var o=(0,t.Z)(e,2),n=o[0],l=o[1];return document.documentElement.style.setProperty("--body-".concat(n),l)}));else if((null===w||void 0===w||null===(o=w.head)||void 0===o?void 0:o.name)&&(null===w||void 0===w||null===(n=w.body)||void 0===n?void 0:n.name)){var x,j;Object.entries(null!==(x=(0,i.s4)(w.body))&&void 0!==x?x:{}).forEach((function(e){var o=(0,t.Z)(e,2),n=o[0],l=o[1];return document.documentElement.style.setProperty("--body-".concat(n),l)})),Object.entries(null!==(j=(0,i.s4)(w.head))&&void 0!==j?j:{}).forEach((function(e){var o=(0,t.Z)(e,2),n=o[0],l=o[1];return document.documentElement.style.setProperty("--head-".concat(n),l)}))}var k={fontFamily:(null===e||void 0===e||null===(l=e.header)||void 0===l||null===(r=l.logo)||void 0===r||null===(u=r.font)||void 0===u?void 0:u.family)||(null===w||void 0===w||null===(a=w.head)||void 0===a?void 0:a.family)||'"Inter", sans-serif',fontWeight:(null===e||void 0===e||null===(d=e.header)||void 0===d||null===(s=d.logo)||void 0===s||null===(c=s.font)||void 0===c?void 0:c.weight)||(null===w||void 0===w||null===(v=w.head)||void 0===v?void 0:v.weight)||500};if(Object.entries(k).forEach((function(e){var o=(0,t.Z)(e,2),n=o[0],l=o[1];document.documentElement.style.setProperty("--header-logo-".concat(n),l),document.documentElement.style.setProperty("--footer-logo-".concat(n),l)})),"footer"===(null===e||void 0===e||null===(f=e.footer)||void 0===f?void 0:f.logoFrom)){var E,N,P,A,O,F,S,Z,C={fontFamily:(null===e||void 0===e||null===(E=e.footer)||void 0===E||null===(N=E.logo)||void 0===N||null===(P=N.font)||void 0===P?void 0:P.family)||(null===w||void 0===w||null===(A=w.head)||void 0===A?void 0:A.family)||'"Inter", sans-serif',fontWeight:(null===e||void 0===e||null===(O=e.footer)||void 0===O||null===(F=O.logo)||void 0===F||null===(S=F.font)||void 0===S?void 0:S.weight)||(null===w||void 0===w||null===(Z=w.head)||void 0===Z?void 0:Z.weight)||500};Object.entries(C).forEach((function(e){var o=(0,t.Z)(e,2),n=o[0],l=o[1];return document.documentElement.style.setProperty("--footer-logo-".concat(n),l)}))}}),[e])}},90638:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=n(78282).Z;Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(e,o){var n=r.default,i=(null==o?void 0:o.suspense)?{}:{loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};t(e,Promise)?i.loader=function(){return e}:"function"===typeof e?i.loader=e:"object"===typeof e&&(i=l({},i,e));if((i=l({},i,o)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");i.suspense&&(delete i.ssr,delete i.loading);i.loadableGenerated&&delete(i=l({},i,i.loadableGenerated)).loadableGenerated;if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,u(n,i);delete i.ssr}return n(i)},o.noSSR=u;var l=n(31032).Z,i=n(12845).Z,r=(i(n(67294)),i(n(14302)));function u(e,o){return delete o.webpack,delete o.modules,e(o)}("function"===typeof o.default||"object"===typeof o.default&&null!==o.default)&&"undefined"===typeof o.default.__esModule&&(Object.defineProperty(o.default,"__esModule",{value:!0}),Object.assign(o.default,o),e.exports=o.default)},16319:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.LoadableContext=void 0;var t=(0,n(12845).Z)(n(67294)).default.createContext(null);o.LoadableContext=t},14302:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=n(25125).Z,l=n(40).Z;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var i=n(31032).Z,r=(0,n(12845).Z)(n(67294)),u=n(16319),a=n(61688).useSyncExternalStore,d=[],s=[],c=!1;function v(e){var o=e(),n={loading:!0,loaded:null,error:null};return n.promise=o.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}var f=function(){function e(o,n){t(this,e),this._loadFn=o,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return l(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var o=this._res,n=this._opts;o.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(o){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var o=this;return this._callbacks.add(e),function(){o._callbacks.delete(e)}}}]),e}();function m(e){return function(e,o){var n=function(){if(!d){var o=new f(e,l);d={getCurrentValue:o.getCurrentValue.bind(o),subscribe:o.subscribe.bind(o),retry:o.retry.bind(o),promise:o.promise.bind(o)}}return d.promise()},t=function(){n();var e=r.default.useContext(u.LoadableContext);e&&Array.isArray(l.modules)&&l.modules.forEach((function(o){e(o)}))},l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},o);l.suspense&&(l.lazy=r.default.lazy(l.loader));var d=null;if(!c){var v=l.webpack?l.webpack():l.modules;v&&s.push((function(e){var o=!0,t=!1,l=void 0;try{for(var i,r=v[Symbol.iterator]();!(o=(i=r.next()).done);o=!0){var u=i.value;if(-1!==e.indexOf(u))return n()}}catch(a){t=!0,l=a}finally{try{o||null==r.return||r.return()}finally{if(t)throw l}}}))}var m=l.suspense?function(e,o){return t(),r.default.createElement(l.lazy,i({},e,{ref:o}))}:function(e,o){t();var n=a(d.subscribe,d.getCurrentValue,d.getCurrentValue);return r.default.useImperativeHandle(o,(function(){return{retry:d.retry}}),[]),r.default.useMemo((function(){return n.loading||n.error?r.default.createElement(l.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:d.retry}):n.loaded?r.default.createElement((o=n.loaded)&&o.__esModule?o.default:o,e):null;var o}),[e,n])};return m.preload=function(){return n()},m.displayName="LoadableComponent",r.default.forwardRef(m)}(v,e)}function h(e,o){for(var n=[];e.length;){var t=e.pop();n.push(t(o))}return Promise.all(n).then((function(){if(e.length)return h(e,o)}))}m.preloadAll=function(){return new Promise((function(e,o){h(d).then(e,o)}))},m.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(o){var n=function(){return c=!0,o()};h(s,e).then(n,n)}))},window.__NEXT_PRELOADREADY=m.preloadReady;var y=m;o.default=y},27602:function(e,o,n){"use strict";n.r(o),n.d(o,{__N_SSP:function(){return k}});var t=n(14251),l=n(52875),i=n(85893),r=n(67294),u=n(11942),a=n(47041),d=n(90387),s=n(30120),c=n(5152),v=n.n(c),f=n(25675),m=n.n(f),h=n(93775),y=n(22875),p=n(21123),b=n(24831),g=n(89774),_=(0,i.jsx)("div",{}),w=v()((function(){return n.e(529).then(n.bind(n,60529))}),{loadableGenerated:{webpack:function(){return[60529]}},loading:function(){return _}}),x=function(e){var o=e.className,n=e.author,t="".concat(null===n||void 0===n?void 0:n.firstName," ").concat((null===n||void 0===n?void 0:n.lastName)||""),l=(0,u.Qm)(t),r=(0,u.QW)(null===n||void 0===n?void 0:n.picture);return n?(0,i.jsx)("div",{className:(0,u.AK)("flex items-center justify-center h-8 w-8 lg:h-10 lg:w-10 rounded-full overflow-hidden",o),children:r?(0,i.jsx)(m(),{quality:90,src:r,alt:t,title:t,width:"100%",height:"100%",objectFit:"cover",objectPosition:"".concat((null===n||void 0===n?void 0:n.imagePositionX)||"center"," ").concat((null===n||void 0===n?void 0:n.imagePositionY)||"center"),className:"rounded-full overflow-hidden bg-white"}):(0,i.jsx)("div",{className:"flex justify-center items-center w-full h-full bg-gray-500",children:l?(0,i.jsx)("p",{className:"text-white body-small uppercase bg-gray-500",children:l}):(0,i.jsx)(h.Z,{className:"w-5 h-5 text-white"})})}):null},j=function(e){var o,n,c,v,f,m,h,_,j,k,E,N,P,A,O,F,S,Z,C,I,T,D=e.post,L=e.website,z=e.pt,M=(0,g.$G)("common").t;D=(0,b.O)(D);var X,R,K,Y=(0,r.useState)("#000000"),G=Y[0],V=Y[1],$=(0,r.useState)("#000000"),Q=$[0],q=$[1],W=(0,d.useRouter)();(0,y.z)(L);var H=(0,l.Z)((0,t.Z)({},null===D||void 0===D||null===(o=D.blog)||void 0===o?void 0:o.block),{background:(null===D||void 0===D||null===(n=D.blog)||void 0===n||null===(c=n.block)||void 0===c?void 0:c.background)||(null===D||void 0===D?void 0:D.background)||"#FFFFFF",showAuthor:null===(X=null===D||void 0===D||null===(v=D.blog)||void 0===v||null===(f=v.block)||void 0===f?void 0:f.showAuthor)||void 0===X||X,showAvatar:null===(R=null===D||void 0===D||null===(m=D.blog)||void 0===m||null===(h=m.block)||void 0===h?void 0:h.showAvatar)||void 0===R||R,showDate:null===(K=null===D||void 0===D||null===(_=D.blog)||void 0===_||null===(j=_.block)||void 0===j?void 0:j.showDate)||void 0===K||K}),B=function(){var e,o,n=((null===D||void 0===D||null===(e=D.Author)||void 0===e?void 0:e.firstName)||(null===D||void 0===D||null===(o=D.Author)||void 0===o?void 0:o.lastName)||"").trim();return(null===H||void 0===H?void 0:H.showAuthor)&&(null===H||void 0===H?void 0:H.showAvatar)&&n.length>0};return(0,r.useEffect)((function(){var e;z||(z=(0,a.getCookie)("pt")),z&&(null===W||void 0===W||null===(e=W.query)||void 0===e?void 0:e.pt)!==z&&"public"!==L.status&&W.replace("".concat(W.asPath,"?pt=").concat(z),void 0,{shallow:!0})}),[W,z,L]),!(0,u.$K)(D)||!(null===D||void 0===D?void 0:D.published)&&"true"!==(null===W||void 0===W||null===(k=W.query)||void 0===k?void 0:k.preview)?(0,i.jsx)(w,{website:L}):(0,i.jsxs)("div",{children:[(0,i.jsxs)("section",{className:"relative z-10 flex flex-none items-center justify-center overflow-hidden min-h-64",children:[(0,i.jsx)(p.Z,{website:L,block:null===D||void 0===D?void 0:D.banner,setTextColor:V}),(0,i.jsx)("div",{className:(0,u.AK)("relative container mx-auto z-10 pb-10 lg:pb-14",("image"===(null===D||void 0===D||null===(E=D.background)||void 0===E?void 0:E.type)||(null===D||void 0===D||null===(N=D.banner)||void 0===N||null===(P=N.layers)||void 0===P||null===(A=P.image)||void 0===A?void 0:A.enabled))&&(null===D||void 0===D?void 0:D.Image)?"pt-32 lg:pt-42":"pt-10 lg:pt-20"),children:(0,i.jsxs)("div",{className:(0,u.AK)("flex flex-col mx-auto","left"===(null===D||void 0===D||null===(O=D.banner)||void 0===O?void 0:O.align)?"max-w-160":"items-center max-w-240"),children:[(0,i.jsx)("h1",{className:(0,u.AK)("heading-large mb-6","left"!==(null===D||void 0===D||null===(F=D.banner)||void 0===F?void 0:F.align)&&"text-center"),style:{color:G},children:null===D||void 0===D?void 0:D.title}),(0,i.jsxs)("div",{className:"flex-1 flex items-center gap-3",children:["left"===(null===D||void 0===D||null===(S=D.banner)||void 0===S?void 0:S.align)&&B()&&(0,i.jsx)(x,{author:null===D||void 0===D?void 0:D.Author}),(0,i.jsxs)("div",{className:(0,u.AK)("flex gap-2 flex-wrap items-center lg:justify-center body-small","left"===(null===D||void 0===D||null===(Z=D.banner)||void 0===Z?void 0:Z.align)&&"flex-row-reverse"),style:{color:G},children:[(null===H||void 0===H?void 0:H.showDate)&&(null===D||void 0===D?void 0:D.publishedAt)&&(0,i.jsx)("span",{children:s.ou.fromISO(null===D||void 0===D?void 0:D.publishedAt).toFormat("LLL dd, yyyy")}),function(){var e,o,n=((null===D||void 0===D||null===(e=D.Author)||void 0===e?void 0:e.firstName)||(null===D||void 0===D||null===(o=D.Author)||void 0===o?void 0:o.lastName)||"").trim();return(null===H||void 0===H?void 0:H.showAuthor)&&n.length>0}()&&(0,i.jsxs)(i.Fragment,{children:[(null===H||void 0===H?void 0:H.showDate)&&(0,i.jsx)("span",{className:"hidden lg:inline-block",children:"\xb7"}),(0,i.jsxs)("span",{children:[M("by")," ",null===D||void 0===D||null===(C=D.Author)||void 0===C?void 0:C.firstName," ",(null===D||void 0===D||null===(I=D.Author)||void 0===I?void 0:I.lastName)||""]})]})]})]}),"left"!==(null===D||void 0===D||null===(T=D.banner)||void 0===T?void 0:T.align)&&B()&&(0,i.jsx)(x,{className:"mt-3",author:null===D||void 0===D?void 0:D.Author})]})})]}),(0,i.jsxs)("section",{className:"relative z-10",style:{color:Q},children:[(0,i.jsx)(p.Z,{website:L,block:H,setTextColor:q}),(0,i.jsx)("div",{className:"relative z-10 container mx-auto pt-10 pb-14 lg:pt-14 lg:pb-28",children:(0,i.jsx)("div",{className:"max-w-240 mx-auto",children:(0,i.jsx)("div",{className:"rich-text-block max-w-160 mx-auto",dangerouslySetInnerHTML:{__html:null===D||void 0===D?void 0:D.content}})})})]})]})};j.getLayout=u.G0;var k=!0;o.default=j},24831:function(e,o,n){"use strict";n.d(o,{O:function(){return u},u:function(){return r}});var t=n(14251),l=n(52875),i=n(11942),r=function(e,o){var n,t,l,r,a,d,s,c,v,f,m,h,y,p,b,g=u(e).banner,_=(null===(n=g.layers)||void 0===n||null===(t=n.image)||void 0===t?void 0:t.enabled)&&e.Image?"image":null===(l=g.layers)||void 0===l||null===(r=l.overlay)||void 0===r?void 0:r.type,w={color1:null===(a=g.layers)||void 0===a||null===(d=a.overlay)||void 0===d?void 0:d.color1,color2:null===(s=g.layers)||void 0===s||null===(c=s.overlay)||void 0===c?void 0:c.color2,image:e.Image,positionX:null===(v=g.layers)||void 0===v||null===(f=v.image)||void 0===f?void 0:f.positionX,positionY:null===(m=g.layers)||void 0===m||null===(h=m.image)||void 0===h?void 0:h.positionY,direction:null===(y=g.layers)||void 0===y||null===(p=y.overlay)||void 0===p?void 0:p.direction};if("custom"!==(null===(b=g.layers)||void 0===b?void 0:b.palette)){var x,j,k,E,N,P=(null===o||void 0===o||null===(x=o.colorPalette)||void 0===x||null===(j=x.Palette)||void 0===j?void 0:j.colors)||(null===o||void 0===o||null===(k=o.colorPalette)||void 0===k?void 0:k.colors)||[],A=P.length>0?(0,i.dz)(g.layers.palette):0;if(A>-1)w.color1=null===(E=P[A])||void 0===E?void 0:E.color,w.color2=null===(N=P[A%2===0?A+1:A-1])||void 0===N?void 0:N.color}var O=(0,i.$O)(w.color1||"#FFFFFF");switch(_){case"image":var F,S;return{backgroundImage:"url(".concat((null===(F=w.image)||void 0===F?void 0:F.url)||(null===(S=w.image)||void 0===S?void 0:S.preview)||w.image,")"),backgroundPosition:"".concat(w.positionX||"center"," ").concat(w.positionY||"center"),backgroundSize:"cover",color:O};case"gradient":return{backgroundImage:"linear-gradient(".concat(i.mQ.find((function(e){return e.id===(w.direction||"top-down")})).value,", ").concat(w.color1,", ").concat(w.color2,")"),color:O};default:return{backgroundColor:w.color1,color:O}}},u=function(e){var o,n;if((0,i.$K)(e)&&!(null===(o=e.banner)||void 0===o||null===(n=o.layers)||void 0===n?void 0:n.palette)){var r,u,a,d,s,c,v,f,m,h,y,p,b,g=void 0;"gradient"===(null===(r=e.banner)||void 0===r?void 0:r.type)&&(null===(u=e.banner)||void 0===u?void 0:u.direction)&&(g=e.banner.direction.includes("deg")?i.mQ.find((function(o){return o.value===(e.banner.direction||"180deg")})).id:e.banner.direction),e.banner=(0,l.Z)((0,t.Z)({},e.banner),{layers:{palette:"custom",image:{enabled:"image"===(null===(a=e.banner)||void 0===a?void 0:a.type)&&!!e.Image,opacity:(null===(d=e.banner)||void 0===d?void 0:d.opacity)||50,positionX:(null===(s=e.banner)||void 0===s?void 0:s.imagePositionX)||"50%",positionY:(null===(c=e.banner)||void 0===c?void 0:c.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===(m=e.banner)||void 0===m?void 0:m.type)?null===(h=e.banner)||void 0===h?void 0:h.color2:void 0,direction:g},foreground:{accent:"gradient"===(null===(y=e.banner)||void 0===y?void 0:y.type)?(0,i.$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}},5152:function(e,o,n){e.exports=n(90638)},53250:function(e,o,n){"use strict";var t=n(67294);var l="function"===typeof Object.is?Object.is:function(e,o){return e===o&&(0!==e||1/e===1/o)||e!==e&&o!==o},i=t.useState,r=t.useEffect,u=t.useLayoutEffect,a=t.useDebugValue;function d(e){var o=e.getSnapshot;e=e.value;try{var n=o();return!l(e,n)}catch(t){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,o){return o()}:function(e,o){var n=o(),t=i({inst:{value:n,getSnapshot:o}}),l=t[0].inst,s=t[1];return u((function(){l.value=n,l.getSnapshot=o,d(l)&&s({inst:l})}),[e,n,o]),r((function(){return d(l)&&s({inst:l}),e((function(){d(l)&&s({inst:l})}))}),[e]),a(n),n};o.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:s},61688:function(e,o,n){"use strict";e.exports=n(53250)},80969:function(e,o,n){"use strict";n.d(o,{Z:function(){return i}});var t=n(62893);var l=n(12267);function i(e,o){return function(e){if(Array.isArray(e))return e}(e)||(0,t.Z)(e,o)||(0,l.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,[4550,120,1942,9774,2888,179],(function(){return o=49937,e(e.s=o);var o}));var o=e.O();_N_E=o}]);