1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,858012,e=>{"use strict";var t,s=((t={})[t.xxs=360]="xxs",t[t.xs=412]="xs",t[t.sm=480]="sm",t[t.md=768]="md",t[t.lg=1024]="lg",t[t.xl=1280]="xl",t[t.xxl=1352]="xxl",t);e.s(["ScreenSize",()=>s])},829120,130843,e=>{"use strict";e.i(244939),e.s(["ALL_TAGS_SLUG",0,"/","BLOG_PAGE_SIZE",0,8],130843);var t,s=((t={}).blog="/",t.author="/author/",t.tag="/tag/",t);let a={post:e=>`/${encodeURIComponent(e)}/`,author:e=>`/author/${encodeURIComponent(e)}/`,tag:e=>l(e)?"/":`/tag/${encodeURIComponent(e)}/`},l=e=>"/"===e;e.s(["BlogPathname",()=>s,"BlogRoute",0,a,"getBlogPaginationPage",0,(e,t,s)=>{let l,r=(l=parseInt(e))&&1!==l?l:null;if(!Number.isInteger(e))return"/";if("/author/"===t)if(r)return a.author(s||"")+`page/${r}`;else return a.author(s||"");if(s)if(r)return a.tag(s)+`page/${r}`;else return a.tag(s);return r?`/page/${r}/`:"/"},"isBlogAllTagSlug",0,l],829120)},390816,e=>{"use strict";let t="https://assets.apiko.com",s=e=>!!e&&/(http|https)/.test(e);e.s(["imgAssetsURL",0,e=>s(e)?e:`${t}/${e}`,"imgProxyLoader",0,({src:e,width:a,quality:l=75})=>{if(!e)return;if(!s(e)){let s=e.startsWith("/")?"":"/";e=`${t}${s}${e}`}let r=Math.min(l,a>1080?50:a>828?65:75);return`https://imgproxy.apiko.com/insecure/rs:fill:${a}/q:${r}/g:sm/${btoa(decodeURIComponent(encodeURIComponent(e)))}`}])},264135,e=>{"use strict";var t=e.i(858012);e.s(["imgSizes",0,({xxs:e,xs:s,sm:a,md:l,lg:r,xl:o,xxl:i,width:n})=>{let u=[];return e&&u.push(`(max-width: ${t.ScreenSize.xxs}px) ${e}`),s&&u.push(`(max-width: ${t.ScreenSize.xs}px) ${s}`),a&&u.push(`(max-width: ${t.ScreenSize.sm}px) ${a}`),l&&u.push(`(max-width: ${t.ScreenSize.md}px) ${l}`),r&&u.push(`(max-width: ${t.ScreenSize.lg}px) ${r}`),o&&u.push(`(max-width: ${t.ScreenSize.xl}px) ${o}`),i&&u.push(`(max-width: ${t.ScreenSize.xxl}px) ${i}`),u.push(n),u.join(", ")},"vwMinus",0,e=>`calc( 100vw - ${e}px )`])},927281,e=>{"use strict";e.s(["CONTENT_WIDTH",0,1320,"POST_CARD_WIDTH",0,480,"POST_CONTENT_WIDTH",0,648,"POST_COVER_HEIGHT",0,1056,"POST_COVER_WIDTH",0,2640,"POST_PAGE_GUTTER",0,16])},890222,819361,345259,e=>{"use strict";var t=e.i(391398),s=e.i(126019),a=e.i(390816);let l=e=>{let[,t,s]=e?.match(/\/sz-(\d+)-(\d+)\//)||[];return{width:t?parseInt(t):void 0,height:s?parseInt(s):void 0}};e.s(["getBlogImgSizeFromSrc",0,l],819361);let r=e=>(0,a.imgProxyLoader)(e)??e.src;e.s([],890222),e.s(["BlogImage",0,({src:e,width:o,height:i,blurDataURL:n,className:u,fill:d,fallbackWidth:c,fallbackHeight:p,...f})=>{if(!e)return null;let m="gif"===e.split("?")[0].split(".").pop()?.toLowerCase();if(!o||!i){let t=l(e);o=t.width||c,i=t.height||p}return(0,t.jsx)(s.default,{...!o&&!i&&d&&{fill:d},...f,...o&&{width:o},...i&&{height:i},src:m?(0,a.imgAssetsURL)(e):e,alt:f.alt||"",blurDataURL:n||void 0,placeholder:n?"blur":"empty",loader:m?void 0:r,unoptimized:m,className:u})}],345259)},471619,e=>{"use strict";var t=e.i(630458);e.s(["Badge",()=>t.default])},566926,e=>{e.v({avatarWrapper:"styles-module-scss-module__30LD_G__avatarWrapper",avatarsStack:"styles-module-scss-module__30LD_G__avatarsStack"})},289034,e=>{e.v({postInfo:"styles-module-scss-module__FVSFGa__postInfo",postInfoAuthorLink:"styles-module-scss-module__FVSFGa__postInfoAuthorLink",postInfoAuthors:"styles-module-scss-module__FVSFGa__postInfoAuthors",postInfoContent:"styles-module-scss-module__FVSFGa__postInfoContent",postInfoDivider:"styles-module-scss-module__FVSFGa__postInfoDivider",postInfoMeta:"styles-module-scss-module__FVSFGa__postInfoMeta"})},630459,928550,e=>{"use strict";var t=e.i(391398),s=e.i(191788),a=e.i(272043),l=e.i(41158);e.i(621308);var r=e.i(142024),o=e.i(829120);e.i(890222);var i=e.i(345259),n=e.i(566926);let u={s:40,m:44},d={s:26,m:28},c=({authors:e=[],max:s=3,size:a="m"})=>{if(!e?.length)return null;let r=e?.slice(0,s)||[],c=d[a],p=u[a]+(e.length-1)*c;return(0,t.jsx)("div",{className:n.default.avatarsStack,style:{minWidth:p},children:r.map((e,s)=>{let r={};return 0!==s&&(r.zIndex=s+1,r.left=c*s),(0,t.jsx)(l.default,{href:o.BlogRoute.author(e.slug),prefetch:!1,className:n.default.avatarWrapper,"aria-label":"See more posts with this author",style:r,children:(0,t.jsx)(i.BlogImage,{style:{width:u[a],height:u[a]},src:e.avatar,width:60,height:60,alt:e.avatar_alt||`${e.name} photo`})},e.id)})})},p=[["January","Jan"],["February","Feb"],["March","Mar"],["April","Apr"],["May","May"],["June","Jun"],["July","Jul"],["August","Aug"],["September","Sep"],["October","Oct"],["November","Nov"],["December","Dec"]],f=(e,t=!0)=>{let s;return e?("string"==typeof e&&(e=new Date(e)),(s=e)instanceof Date&&!isNaN(s)?`${p[e.getMonth()][+!!t]} ${e.getDate()}, ${e.getFullYear()}`:""):""};var m=e.i(289034);e.s([],630459),e.s(["PostInfo",0,({post:e,className:i,detailed:n,avatarSize:u})=>{i=(0,a.default)(i,m.default.postInfo);let d=e.authors.slice(0,3);return(0,t.jsxs)("div",{className:i,children:[(0,t.jsx)(c,{authors:d,size:u}),(0,t.jsxs)("div",{className:m.default.postInfoContent,children:[(0,t.jsx)("div",{className:m.default.postInfoAuthors,children:d.map((e,a)=>(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)(l.default,{href:o.BlogRoute.author(e.slug),prefetch:!1,"aria-label":"See more posts with this author",className:m.default.postInfoAuthorLink,children:(0,t.jsx)(r.Text,{children:e.name})}),a!==d.length-1&&(0,t.jsx)(r.Text,{children:"Â &Â "})]},e.slug+a))}),(0,t.jsxs)("div",{className:m.default.postInfoMeta,children:[(0,t.jsx)(r.Text,{colorVariant:"secondary",children:f(e.published_at)}),!!n&&!!e.modified_at&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("i",{className:m.default.postInfoDivider}),(0,t.jsxs)(r.Text,{colorVariant:"secondary",children:[(0,t.jsx)(r.Text,{children:"Updated "}),f(e.modified_at)]})]}),!!e.tt_read_m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("i",{className:m.default.postInfoDivider}),(0,t.jsxs)(r.Text,{colorVariant:"secondary",children:[e.tt_read_m," mins read"]})]})]})]})]})}],928550)},112341,e=>{e.v({postCard:"styles-module-scss-module__60pA4a__postCard",postCardDescription:"styles-module-scss-module__60pA4a__postCardDescription",postCardHeader:"styles-module-scss-module__60pA4a__postCardHeader",postCardImageWrapper:"styles-module-scss-module__60pA4a__postCardImageWrapper",postCardTags:"styles-module-scss-module__60pA4a__postCardTags",postCardTitle:"styles-module-scss-module__60pA4a__postCardTitle"})},163277,157599,e=>{"use strict";var t=e.i(391398),s=e.i(272043),a=e.i(41158);e.i(621308);var l=e.i(471619),r=e.i(142024),o=e.i(264135),i=e.i(927281),n=e.i(829120);e.i(890222);var u=e.i(345259);e.i(630459);var d=e.i(928550),c=e.i(112341);e.s([],163277),e.s(["PostCard",0,({post:e,cardPriority:p,className:f})=>{f=(0,s.default)(f,c.default.postCard);let m=e.tags[0];return(0,t.jsxs)("article",{className:f,children:[(0,t.jsxs)("header",{className:c.default.postCardHeader,children:[!!m&&(0,t.jsx)("div",{className:c.default.postCardTags,children:(0,t.jsx)(a.default,{href:n.BlogRoute.tag(m.slug),prefetch:!1,"aria-label":"See more posts with this tag",children:(0,t.jsx)(l.Badge,{variant:"white",rounded:"s",children:m.name})})}),(0,t.jsx)(a.default,{href:n.BlogRoute.post(e.slug),prefetch:!1,className:c.default.postCardImageWrapper,"aria-label":"Read more on the post page",children:(0,t.jsx)(u.BlogImage,{src:e.cover,blurDataURL:e.cover_p,fallbackWidth:i.POST_COVER_WIDTH,fallbackHeight:i.POST_COVER_HEIGHT,sizes:(0,o.imgSizes)({md:"100vw",width:`${i.POST_CARD_WIDTH}px`}),preload:p,alt:e.title})})]}),(0,t.jsxs)("div",{className:c.default.postCardDescription,children:[(0,t.jsx)(a.default,{href:n.BlogRoute.post(e.slug),prefetch:!1,"aria-label":"Read more on the post page",children:(0,t.jsx)(r.Text,{as:"p",size:"l",weight:"l",className:c.default.postCardTitle,children:e.title})}),(0,t.jsx)(d.PostInfo,{post:e,avatarSize:"s"})]})]})}],157599)},909809,e=>{"use strict";var t=e.i(167710);e.s(["Modal",()=>t.default])}
1,663230,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"useMergedRef",{enumerable:!0,get:function(){return l}});let a=e.r(191788);function l(e,t){let s=(0,a.useRef)(null),l=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=s.current;e&&(s.current=null,e());let t=l.current;t&&(l.current=null,t())}else e&&(s.current=r(e,a)),t&&(l.current=r(t,a))},[e,t])}function r(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let s=e(t);return"function"==typeof s?s:()=>e(null)}}("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},771914,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"useIntersection",{enumerable:!0,get:function(){return n}});let a=e.r(191788),l=e.r(799604),r="function"==typeof IntersectionObserver,o=new Map,i=[];function n({rootRef:e,rootMargin:t,disabled:s}){let u=s||!r,[d,c]=(0,a.useState)(!1),p=(0,a.useRef)(null),f=(0,a.useCallback)(e=>{p.current=e},[]);return(0,a.useEffect)(()=>{if(r){if(u||d)return;let s=p.current;if(s&&s.tagName)return function(e,t,s){let{id:a,observer:l,elements:r}=function(e){let t,s={root:e.root||null,margin:e.rootMargin||""},a=i.find(e=>e.root===s.root&&e.margin===s.margin);if(a&&(t=o.get(a)))return t;let l=new Map;return t={id:s,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=l.get(e.target),s=e.isIntersecting||e.intersectionRatio>0;t&&s&&t(s)})},e),elements:l},i.push(s),o.set(s,t),t}(s);return r.set(e,t),l.observe(e),function(){if(r.delete(e),l.unobserve(e),0===r.size){l.disconnect(),o.delete(a);let e=i.findIndex(e=>e.root===a.root&&e.margin===a.margin);e>-1&&i.splice(e,1)}}}(s,e=>e&&c(e),{root:e?.current,rootMargin:t})}else if(!d){let e=(0,l.requestIdleCallback)(()=>c(!0));return()=>(0,l.cancelIdleCallback)(e)}},[u,t,e,d,p.current]),[f,d,(0,a.useCallback)(()=>{c(!1)},[])]}("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},154471,(e,t,s)=>{"use strict";function a(e,t,s,a){return!1}Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"getDomainLocale",{enumerable:!0,get:function(){return a}}),e.r(270090),("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},548735,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"errorOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},539149,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={default:function(){return S},useLinkStatus:function(){return b}};for(var l in a)Object.defineProperty(s,l,{enumerable:!0,get:a[l]});let r=e.r(952456),o=e.r(391398),i=r._(e.r(191788)),n=e.r(160472),u=e.r(471112),d=e.r(728169),c=e.r(889129),p=e.r(514862),f=e.r(425479),m=e.r(771914),h=e.r(154471),_=e.r(344113),g=e.r(663230);e.r(548735);let x=new Set;function v(e,t,s,a){if(!("u"<typeof window)&&(0,u.isLocalURL)(t)){if(!a.bypassPrefetchedCheck){let l=t+"%"+s+"%"+(void 0!==a.locale?a.locale:"locale"in e?e.locale:void 0);if(x.has(l))return;x.add(l)}e.prefetch(t,s,a).catch(e=>{})}}function j(e){return"string"==typeof e?e:(0,d.formatUrl)(e)}let C=i.default.forwardRef(function(e,t){let s,a,{href:l,as:r,children:d,prefetch:x=null,passHref:C,replace:y,shallow:b,scroll:S,locale:P,onClick:N,onNavigate:I,onMouseEnter:T,onTouchStart:w,legacyBehavior:k=!1,transitionTypes:O,...L}=e;s=d,k&&("string"==typeof s||"number"==typeof s)&&(s=(0,o.jsx)("a",{children:s}));let A=i.default.useContext(f.RouterContext),R=!1!==x,{href:B,as:M}=i.default.useMemo(()=>{if(!A){let e=j(l);return{href:e,as:r?j(r):e}}let[e,t]=(0,n.resolveHref)(A,l,!0);return{href:e,as:r?(0,n.resolveHref)(A,r):t||e}},[A,l,r]),G=i.default.useRef(B),D=i.default.useRef(M);k&&(a=i.default.Children.only(s));let E=k?a&&"object"==typeof a&&a.ref:t,[W,z,$]=(0,m.useIntersection)({rootMargin:"200px"}),F=i.default.useCallback(e=>{(D.current!==M||G.current!==B)&&($(),D.current=M,G.current=B),W(e)},[M,B,$,W]),H=(0,g.useMergedRef)(F,E);i.default.useEffect(()=>{!A||z&&R&&v(A,B,M,{locale:P})},[M,B,z,P,R,A?.locale,A]);let U={ref:H,onClick(e){k||"function"!=typeof N||N(e),k&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),!A||e.defaultPrevented||function(e,t,s,a,l,r,o,i,n){let d,{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&((d=e.currentTarget.getAttribute("target"))&&"_self"!==d||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if
1(!(0,u.isLocalURL)(s)){l&&(e.preventDefault(),location.replace(s));return}e.preventDefault(),(()=>{if(n){let e=!1;if(n({preventDefault:()=>{e=!0}}),e)return}let e=o??!0;"beforePopState"in t?t[l?"replace":"push"](s,a,{shallow:r,locale:i,scroll:e}):t[l?"replace":"push"](a||s,{scroll:e})})()}}(e,A,B,M,y,b,S,P,I)},onMouseEnter(e){k||"function"!=typeof T||T(e),k&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),A&&v(A,B,M,{locale:P,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){k||"function"!=typeof w||w(e),k&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),A&&v(A,B,M,{locale:P,priority:!0,bypassPrefetchedCheck:!0})}};if((0,c.isAbsoluteUrl)(M))U.href=M;else if(!k||C||"a"===a.type&&!("href"in a.props)){let e=void 0!==P?P:A?.locale;U.href=A?.isLocaleDomain&&(0,h.getDomainLocale)(M,e,A?.locales,A?.domainLocales)||(0,_.addBasePath)((0,p.addLocale)(M,e,A?.defaultLocale))}return k?i.default.cloneElement(a,U):(0,o.jsx)("a",{...L,...U,children:s})}),y=(0,i.createContext)({pending:!1}),b=()=>(0,i.useContext)(y),S=C;("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},41158,(e,t,s)=>{t.exports=e.r(539149)},251384,e=>{"use strict";var t=e.i(297959);e.s(["Button",()=>t.default])},958678,(e,t,s)=>{t.exports=e.r(280963)},209446,e=>{"use strict";var t=e.i(899169);e.s(["Section",()=>t.default])},96552,e=>{"use strict";var t=e.i(191788);e.s(["useDebounce",0,(e,s=300)=>{let a=(0,t.useRef)(!0),[l,r]=(0,t.useState)(e),[o,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{a?.current||i(!0);let t=setTimeout(()=>{r(e),i(!1)},s);return a.current=!1,()=>{clearTimeout(t)}},[s,e]),[l,o]}])},526218,e=>{"use strict";var t=e.i(390816);e.i(829120);var s=e.i(244939);let a=(0,t.imgProxyLoader)({src:"website/global/apiko-og-image.jpeg",width:1080})??"",l={title:"Apiko | Blog",description:"Tech stories, business insights and innovative product development.",applicationName:"Apiko blog",alternates:{canonical:`${s.AppsRoute.blogApp}/`},openGraph:{siteName:"Apiko | Blog",description:"Tech stories, business insights and innovative product development.",title:"Apiko | Blog",url:`${s.AppsRoute.blogApp}/`,type:"article",images:{url:a,width:1080}},twitter:{title:"Apiko | Blog",card:"summary_large_image",site:"@apiko_software",creator:"@apiko_software",images:{url:a,width:1080}}};e.s(["blogDefaultMeta",0,l])},335429,e=>{e.v({featuredPostCard:"styles-module-scss-module__9WSfsa__featuredPostCard",featuredPostCardInfo:"styles-module-scss-module__9WSfsa__featuredPostCardInfo",featuredPostCardTags:"styles-module-scss-module__9WSfsa__featuredPostCardTags",featuredPostCardTitle:"styles-module-scss-module__9WSfsa__featuredPostCardTitle"})},718231,e=>{e.v({featuredPosts:"styles-module-scss-module__4DAOcG__featuredPosts",featuredPostsCarousel:"styles-module-scss-module__4DAOcG__featuredPostsCarousel",featuredPostsCarouselBGImage:"styles-module-scss-module__4DAOcG__featuredPostsCarouselBGImage",featuredPostsCarouselPostCardWrapper:"styles-module-scss-module__4DAOcG__featuredPostsCarouselPostCardWrapper",featuredPostsCarouselSlide:"styles-module-scss-module__4DAOcG__featuredPostsCarouselSlide",featuredPostsPagination:"styles-module-scss-module__4DAOcG__featuredPostsPagination"})},220496,e=>{e.v({blog:"styles-module-scss-module__9r3E2G__blog",blogContent:"styles-module-scss-module__9r3E2G__blogContent",blogMainContentWithSideBar:"styles-module-scss-module__9r3E2G__blogMainContentWithSideBar",blogSideBar:"styles-module-scss-module__9r3E2G__blogSideBar",blogTitle:"styles-module-scss-module__9r3E2G__blogTitle",mainContentDesktop:"styles-module-scss-module__9r3E2G__mainContentDesktop",mainContentMobile:"styles-module-scss-module__9r3E2G__mainContentMobile",postsList:"styles-module-scss-module__9r3E2G__postsList",postsListItem:"styles-module-scss-module__9r3E2G__postsListItem"})},497422,e=>{e.v({pagination:"styles-module-scss-module__-fY-CW__pagination",paginationNewestPosts:"styles-module-scss-module__-fY-CW__paginationNewestPosts",paginationOldestPosts:"styles-module-scss-module__-fY-CW__paginationOldestPosts",paginationSelect:"styles-module-scss-module__-fY-CW__paginationSelect",paginationSelectWrapper:"styles-module-scss-module__-fY-CW__paginationSelectWrapper"})},904969,e=>{e.v({postsList:"styles-module-scss-module__NmJhkq__postsList",postsListItem:"styles-module-scss-module__NmJhkq__postsListItem",resultsContainer:"styles-module-scss-module__NmJhkq__resultsContainer",searchResultIcon:"styles-module-scss-module__NmJhkq__searchResultIcon",spinnerContainer:"styles-module-scss-module__NmJhkq__spinnerContainer"})},630122,e=>{e.v({resultsContainer:"styles-module-scss-module__rHnkeW__resultsContainer"})},624377,e=>{e.v({formSpinnerWrapper:"styles-module-scss-module__2zboQG__formSpinnerWrapper",searchModal:"styles-module-scss-module__2zboQG__searchModal"})},763524,e=>{e.v({tagSidebarLink:"styles-module-scss-module__kl8ADG__tagSidebarLink",tagSidebarLinkActive:"styles-module-scss-module__kl8ADG__tagSidebarLinkActive"})},817958,e=>{e.v({searchContainer:"styles-module-scss-module____C-9q__searchContainer",searchContainerFormWrapper:"styles-module-scss-module____C-9q__searchContainerFormWrapper",sideBar:"styles-module-scss-module____C-9q__sideBar",tagsHeading:"styles-module-scss-module____C-9q__tagsHeading",tagsNav:"styles-module-scss-module____C-9q__tagsNav",tagsNavIcon:"styles-module-scss-module____C-9q__tagsNavIcon",tagsNavList:"styles-module-scss-module____C-9q__tagsNavList"})},458353,e=>{e.v({blogSection:"styles-module-scss-module__wd60Ba__blogSection",featuredPostsSection:"styles-module-scss-module__wd60Ba__featuredPostsSection"})},547437,231480,e=>{"use strict";var t,s,a,l=e.i(391398);e.i(621308);var r=e.i(370331),o=e.i(209446),i=e.i(191788),n=e.i(439988),n=n,u=e.i(975885),u=u,d=e.i(264135),c=e.i(927281);e.i(890222);var p=e.i(345259),f=e.i(41158),m=e.i(482588),h=e.i(471619),_=e.i(142024),g=e.i(829120);e.i(630459);var x=e.i(928550),v=e.i(335429);let j=({post:e})=>{let t=e.tags[0],s=e.custom_excerpt||e.preview;return(0,l.jsxs)("article",{className:v.default.featuredPostCard,children:[(0,l.jsxs)("header",{children:[!!t&&(0,l.jsx)("div",{className:v.default.featuredPostCardTags,children:(0,l.jsx)(f.default,{href:g.BlogRoute.tag(t.slug),prefetch:!1,"aria-label":"See more posts with this tag",children:(0,l.jsx)(h.Badge,{variant:"dark",rounded:"s",children:t.name})})}),(0,l.jsx)(f.default,{href:g.BlogRoute.post(e.slug),prefetch:!1,"aria-label":"Read more on the post page",children:(0,l.jsx)(m.Heading,{level:3,as:"p",className:v.default.featuredPostCardTitle,children:e.title})})]}),!!s?.length&&(0,l.jsx)(_.Text,{maxLines:2,paragraph:!0,children:s}),(0,l.jsx)(x.PostInfo,{post:e,className:v.default.featuredPostCardInfo,avatarSize:"s"})]})};
1var C=e.i(718231);let y=({posts:e=[]})=>{let[t,s]=(0,i.useState)(0),a=(0,i.useCallback)(e=>{s(e)},[]),r=e?.length;return r?(0,l.jsxs)("div",{className:C.default.featuredPosts,children:[(0,l.jsx)(n.default,{current:t,className:C.default.featuredPostsCarousel,onChange:a,loop:!0,children:e.map((e,t)=>(0,l.jsxs)("div",{className:C.default.featuredPostsCarouselSlide,children:[(0,l.jsx)(p.BlogImage,{className:C.default.featuredPostsCarouselBGImage,src:e.cover,blurDataURL:e.cover_p,preload:0===t,fallbackWidth:c.POST_COVER_WIDTH,fallbackHeight:c.POST_COVER_HEIGHT,sizes:(0,d.imgSizes)({sm:"70vw",xxl:"100vw",width:"1320px"}),alt:e.title}),(0,l.jsx)("div",{className:C.default.featuredPostsCarouselPostCardWrapper,children:(0,l.jsx)(j,{post:e})})]},e.id))}),(0,l.jsx)("div",{className:C.default.featuredPostsPagination,children:r>1&&(0,l.jsx)(u.default,{total:r,current:t,onChange:a,variant:"default",blurred:!0,infinity:!0})})]}):null};e.i(163277);var b=e.i(157599),S=e.i(220496);let P=({title:e,posts:t,firstCardPriority:s,sideBar:a,mainContent:r,pagination:o,children:i})=>(0,l.jsxs)("section",{className:S.default.blog,children:[(0,l.jsxs)("div",{className:S.default.blogMainContentWithSideBar,children:[r&&(0,l.jsx)("div",{className:S.default.mainContentMobile,children:r}),a&&(0,l.jsx)("aside",{className:S.default.blogSideBar,children:a})]}),(0,l.jsxs)("div",{className:S.default.blogContent,children:[r&&(0,l.jsx)("div",{className:S.default.mainContentDesktop,children:r}),i,(0,l.jsxs)("div",{children:[!!e&&(0,l.jsx)("div",{className:S.default.blogTitle,children:(0,l.jsx)(m.Heading,{level:2,children:e})}),(0,l.jsx)("ul",{className:S.default.postsList,children:t.map((e,t)=>(0,l.jsx)("li",{className:S.default.postsListItem,children:(0,l.jsx)(b.PostCard,{post:e,cardPriority:s&&0===t})},e.id))})]}),(0,l.jsx)("footer",{className:S.default.blogFooter,children:o})]})]});var N=e.i(233107),I=e.i(909809);function T(){return(T=Object.assign.bind()).apply(null,arguments)}let w=function(e){return i.createElement("svg",T({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=i.createElement("path",{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8Zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6Z",fill:"currentColor"})))};var k=e.i(649708);let O=e=>(0,l.jsx)(k.Icon,{...e,icon:w});O.displayName="Search";var L=e.i(950323),A=e.i(540889),R=e.i(287313),B=e.i(96552),M=e.i(191178);function G(){return(G=Object.assign.bind()).apply(null,arguments)}let D=function(e){return i.createElement("svg",G({width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=i.createElement("path",{d:"M28 46.667c-10.29 0-18.666-8.376-18.666-18.666C9.334 17.71 17.71 9.334 28 9.334c10.29 0 18.666 8.377 18.666 18.667 0 10.29-8.376 18.666-18.666 18.666Zm0 4.667c12.88 0 23.334-10.453 23.334-23.333C51.334 15.12 40.88 4.667 28 4.667c-12.88 0-23.334 10.454-23.334 23.334 0 12.88 10.454 23.333 23.334 23.333ZM25.668 28v9.333h4.667V28h7L28 18.667l-9.334 9.334h7Z",fill:"currentColor"})))},E=e=>(0,l.jsx)(k.Icon,{...e,icon:D});function W(){return(W=Object.assign.bind()).apply(null,arguments)}E.displayName="ArrowCircleUp";let z=function(e){return i.createElement("svg",W({width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{d:"M44.333 7h-32.69c-2.59 0-4.62 2.076-4.62 4.666L7 44.333c0 2.567 2.053 4.666 4.643 4.666h32.69a4.68 4.68 0 0 0 4.666-4.666V11.666C49 9.076 46.9 7 44.334 7Zm0 28h-9.334c0 3.873-3.15 7-7 7s-7-3.127-7-7h-9.356V11.665h32.69V35Z",fill:"currentColor"})))},$=e=>(0,l.jsx)(k.Icon,{...e,icon:z});$.displayName="Inbox";var F=e.i(251384),H=e.i(924892),H=H,U=e.i(497422);let V=({postsCount:e,currentPage:t,pageSize:s=8,onGoToPage:a})=>{let r=Math.ceil(e/s),o=(e=>{let t=[];for(let s=1;s<=e;s++)t.push({id:s.toString(),label:s,value:s});return t})(r),n=(0,i.useCallback)(()=>{a(t-1)},[t,a]),u=(0,i.useCallback)(()=>{a(t+1)},[t,a]),d=(0,i.useCallback)(([e])=>{e&&e!==t&&a(e)},[t,a]);return(0,l.jsxs)("div",{className:U.default.pagination,children:[(0,l.jsx)("div",{className:U.default.paginationNewestPosts,children:(0,l.jsx)(F.Button,{variant:"primary",size:"s",pX:"s",disabled:t<=1,onClick:n,children:"Newer Posts"})}),(0,l.jsxs)("div",{className:U.default.paginationSelectWrapper,children:[(0,l.jsx)(_.Text,{children:"Page "}),(0,l.jsx)(H.default,{size:"s",name:"pageSelect",selectedIds:[`${t}`],options:o,className:U.default.paginationSelect,onChange:d,dropdownFullwidth:!0,dropdownMaxHeight:172})," ",(0,l.jsxs)(_.Text,{children:["of ",r]})]}),(0,l.jsx)("div",{className:U.default.paginationOldestPosts,children:(0,l.jsx)(F.Button,{variant:"primary",size:"s",pX:"s",disabled:t>=r,onClick:u,children:"Older Posts"})})]})};var q=e.i(904969);let J=({posts:e,postsCount:t,isLoading:s,currentPage:a,onGoToPage:r,isEmptySearch:o,error:i})=>s?(0,l.jsx)("div",{className:q.default.spinnerContainer,children:(0,l.jsx)(M.Spinner,{size:"xl"})}):i?(0,l.jsx)("div",{className:q.default.spinnerContainer,children:"Oops! something went wrong, please try later."}):e.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("ul",{className:q.default.postsList,children:e.map(e=>(0,l.jsx)("li",{className:q.default.postsListItem,children:(0,l.jsx)(b.PostCard,{post:e})},e.id))}),(0,l.jsx)(V,{postsCount:t,pageSize:8,currentPage:a,onGoToPage:r})]}):o?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(E,{width:56,className:q.default.searchResultIcon}),(0,l.jsx)(A.Spacing,{size:"s"}),(0,l.jsx)(_.Text,{size:"l",children:"Search articles"}),(0,l.jsx)(_.Text,{colorVariant:"secondary",children:"Type in any article title in input"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)($,{width:56,className:q.default.searchResultIcon}),(0,l.jsx)(A.Spacing,{size:"s"}),(0,l.jsx)(_.Text,{size:"l",children:"No results match your search criteria"}),(0,l.jsx)(_.Text,{colorVariant:"secondary",children:"Try to search something else"})]});var Z=e.i(630122);let K=({isSearchModalOpen:e})=>{let t=(0,i.useRef)(null),[s,a]=(0,i.useState)(1),[r,o]=(0,i.useState)(""),[n,u]=(0,B.useDebounce)(r,300),d=(0,i.useCallback)(e=>{a(e||1)},[]),c=(0,i.useCallback)(e=>{o(e.target.value),a(1)},[]);(0,i.useEffect)(()=>{e&&t.current?.focus()},[e]);let p=new URLSearchParams({search:n,page:s?.toString()||"1"}),{data:f,isLoading:m,error:h}=(0,L.default)(()=>r?.length?`/blog/api/posts/?${p}`:null,R.fetcher),g=m||u,x=!r?.length&&!g&&!h,v=x?0:f?.postsCount||0,j=f?.posts||[];return(0,l.jsxs)("div",{children:[(0,l.jsx)(A.Spacing,{size:"m"}),(0,l.jsx)(N.Input,{ref:t,value:r,onChange:c,size:"m",placeholder:"Search",name:"search","aria-label":"Search",iconRight:(0,l.jsx)(O,{width:24})}),(0,l.jsx)(A.Spacing,{size:"m"}),(0,l.jsxs)("div",{className:Z.default.resultsContainer,children:[(0,l.jsxs)(_.Text,{as:"p",align:"center",children:[v," results"]}),(0,l.jsx)(A.Spacing,{size:"xxl"}),(0,l.jsx)(J,{posts:j,postsCount:v,currentPage:s,onGoToPage:d,isLoading:g,isEmptySearch:x,error:h})]})]})};var Y=e.i(624377);let Q=({className:e})=>{let[t,s]=(0,i.useState)(!1),a=(0,i.useCallback)(()=>{s(!0)},[]),r=(0,i.useCallback)(()=>{s(!1)},[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("form",{children:(0,l.jsx)(N.Input,{className:e,size:"m",placeholder:"Search",name:"search-trigger","aria-label":"Search",iconRight:(0,l.jsx)(O,{width:24}),onClick:a,autoComplete:"off",type:"search"})}),(0,l.jsx)(I.Modal,{title:"Search",position:"top",isOpen:t,onClose:r,className:Y.default.searchModal,children:(0,l.jsx)(K,{isSearchModalOpen:t})})]})};var X=e.i(272043),ee=e.i(130843),et=e.i(763524);let es=({tag:e,activeTag:t=ee.ALL_TAGS_SLUG})=>{let s=e.slug===t;return(0,l.jsx)(f.default,{href:g.BlogRoute.tag(e.slug),prefetch:!1,className:(0,X.default)(et.default.tagSidebarLink,{[et.default.tagSidebarLinkActive]:s}),"aria-label":(0,g.isBlogAllTagSlug)(e.slug)?"See all posts":"See more posts with this tag",children:(0,l.jsxs)("span",{children:[(0,l.jsx)(_.Text,{children:e.name}),"Â ",(0,l.jsxs)(_.Text,{colorVariant:"secondary",children:["(",e.posts_count,")"]})]})})};var ea=e.i(817958);let el=({tags:e,activeTag:t})=>(0,l.jsxs)("div",{className:ea.default.sideBar,children:[(0,l.jsx)("div",{className:ea.default.searchContainer,children:(0,l.jsx)("div",{className:ea.default.searchContainerFormWrapper,children:(0,l.jsx)(Q,{})})}),e?.length&&(0,l.jsxs)("nav",{className:ea.default.tagsNav,children:[(0,l.jsx)(m.Heading,{level:3,as:"p",className:ea.default.tagsHeading,children:"Blog Categories"}),(0,l.jsx)("ul",{className:ea.default.tagsNavList,children:e.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(es,{tag:e,activeTag:t})},e.slug))})]})]});var er=e.i(217837),eo=ee,ei=g;let en=({postsCount:e,pageSize:t=eo.BLOG_PAGE_SIZE,page:s,pathname:a=ei.BlogPathname.blog,slug:r})=>{let o=(0,er.useRouter)(),n=(0,i.useCallback)(e=>{if(e&&e!==s)return o.push((0,ei.getBlogPaginationPage)(e,a,r))},[s,a,o,r]);return(0,l.jsx)(V,{postsCount:e,pageSize:t,currentPage:s,onGoToPage:n})};var eu=e.i(458353);e.s([],547437),e.s(["BlogPostsPage",0,({posts:e=[],featuredPosts:t,tags:s,paginationProps:a})=>(0,l.jsxs)("div",{children:[!!t?.length&&(0,l.jsx)(o.Section,{id:"featured-posts",bgColor:"white",className:eu.default.featuredPostsSection,children:(0,l.jsx)(r.Container,{children:(0,l.jsx)(y,{posts:t})})}),(0,l.jsx)(o.Section,{id:"blog",className:eu.default.blogSection,children:(0,l.jsx)(P,{posts:e,sideBar:(0,l.jsx)(el,{tags:s,activeTag:a.slug}),pagination:(0,l.jsx)(en,{...a})})})]})],231480)}]);
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.