try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="44e7dbff-3b95-4f0d-a865-965ad2b1fece",e._sentryDebugIdIdentifier="sentry-dbid-44e7dbff-3b95-4f0d-a865-965ad2b1fece")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[803],{7051:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,70744,23)),Promise.resolve().then(s.bind(s,43702)),Promise.resolve().then(s.bind(s,75737))},12950:(e,t,s)=>{"use strict";s.d(t,{z:()=>c});var a=s(3896),r=s(52863),l=s(62783),n=s(18809),i=s(70744),o=s.n(i);let c=e=>{let{posts:t,style:s="cards",forceSubscribeInvite:i=!1}=e,c=i||t.length<3;return(0,a.jsxs)("div",{className:"flex flex-col gap-4 justify-center",children:[(0,a.jsx)("div",{className:"container mx-4 ".concat("cards"===s?"my-4":"my-0"," mx-auto flex flex-wrap gap-4 justify-center"),children:"cards"===s?t.map((e,t)=>(0,a.jsx)(n.default,{post:e,index:t},e.slug)):(0,a.jsx)("div",{className:"flex flex-col gap-2",children:t.map(e=>(0,a.jsxs)("div",{className:"flex flex-row items-center my-0",children:[e.stars>1&&(0,a.jsx)(r.A,{className:"w-4 h-4 mr-2 text-yellow-500 fill-yellow-500"}),(0,a.jsxs)(o(),{href:"/posts/".concat(e.slug),className:"flex flex-row items-center text-gray-600 hover:scale-100 no-underline",children:[e.title,(0,a.jsx)(l.A,{className:"w-4 h-4 ml-2 text-gray-600"})]})]},e.slug))})}),(0,a.jsxs)("footer",{className:"flex flex-col gap-2",children:[c&&(0,a.jsxs)("p",{className:"text-tiny text-gray-400 text-center text-balance !my-0",children:["I will add more posts soon (subscribe to"," ",(0,a.jsx)(o(),{href:"/newsletter",children:"my newsletter"})," to be notified)."]}),(0,a.jsxs)("p",{className:"text-tiny text-gray-400 text-center text-balance !my-0",children:["Click ",(0,a.jsx)(o(),{href:"/blog",children:"here"})," to view all of my posts."]})]})]})}},43702:(e,t,s)=>{"use strict";s.d(t,{BlogListWithFilter:()=>h});var a=s(3896),r=s(52308),l=s(12950),n=s(70744),i=s.n(n);let o={container:"max-h-[180px] md:max-h-[700px] overflow-y-auto",header:"absolute top-0 left-0 right-0 bg-white text-center text-sm font-semibold text-gray-600 mb-2",tagList:"flex flex-wrap items-center justify-center gap-2 overflow-y-auto pt-6",tag:"text-center capitalize p-1 items-center rounded-full text-tiny h-6 mb-0 bg-gray-200 px-2 py-1 hover:bg-gray-300 text-gray-600 no-underline",filterText:"text-center text-sm text-gray-400 mb-4",clearLink:"text-blue-600 hover:underline"},c=(0,r.memo)(e=>{let{tagFilter:t}=e;return(0,a.jsxs)("p",{className:o.filterText,children:["Showing posts tagged with:"," ",(0,a.jsx)("span",{className:"font-semibold",children:t})," ",(0,a.jsx)(i(),{href:"/blog",className:o.clearLink,children:"(clear filter)"})]})}),d=(0,r.memo)(e=>{let{tags:t}=e;return(0,a.jsxs)("div",{className:o.container,children:[(0,a.jsx)("p",{className:o.header,children:"Filter by tag:"}),(0,a.jsx)("div",{className:o.tagList,children:t.sort((e,t)=>t.count-e.count).map(e=>(0,a.jsx)(x,{...e},e.tag))})]})}),x=(0,r.memo)(e=>{let{tag:t,count:s}=e;return(0,a.jsxs)(i(),{href:"/blog?tag=".concat(t),className:o.tag,children:[t.length>20?"".concat(t.substring(0,20),"..."):t," ","(",s,")"]})});c.displayName="FilterAppliedText",d.displayName="FilterNotAppliedText",x.displayName="TagLink";var m=s(57613);let f=e=>{let{children:t,isMobile:s}=e;return(0,a.jsx)("div",{className:s?"md:hidden":"hidden md:block",children:(0,a.jsx)("div",{className:"".concat("border border-gray-400 shadow-lg bg-white rounded-lg"," ").concat(s?"fixed bottom-0 right-0 z-20 mx-4 my-2 p-2":"sticky top-20 w-96 m-1 mt-4 p-2 z-20"),children:(0,a.jsx)("div",{className:"relative",children:t})})})};function h(e){let{posts:t,tags:s,initialTag:n}=e,i=(0,m.useSearchParams)(),[o,x]=(0,r.useState)(t),[h,p]=(0,r.useState)(n);(0,r.useEffect)(()=>{let e=null==i?void 0:i.get("tag");p(e||""),x(function(e,t){if(!Array.isArray(e)||!e.length)return[];if(!t)return e;let s=new Set((Array.isArray(t)?t:[t]).map(e=>e.toLowerCase())),a=e.length,r=[];for(let t=0;t{"use strict";s.d(t,{default:()=>g});var a=s(3896),r=s(49948),l=s(27240),n=s(3851),i=s(17429),o=s(77470),c=s(52308);let d="text-tiny text-nowrap rounded-md px-1 py-0.5",x=(e,t)=>e>=2?{text:"Most popular",className:"".concat(d," text-rose-600 border border-rose-600")}:e>=1||0===t&&e>0?{text:"Popular",className:"".concat(d," text-orange-500 border border-orange-500")}:0===e&&0===t?{text:"Most recent",className:"".concat(d," text-orange-500 border border-orange-500")}:null,m=(0,c.memo)(e=>{let{stars:t,index:s}=e,r=x(t,s);return r?(0,a.jsx)("span",{className:r.className,children:r.text}):null});m.displayName="BlogpostCardTitle";let f={container:"mx-auto w-full md:max-w-[48%] 2xl:max-w-[31%]",card:"no-button-style z-0 p-2 w-full min-w-64 cursor-pointer",header:"py-1 md:py-2 lg:py-3",headerContent:"w-full flex justify-between items-start",title:"text-left text-balance font-semibold",chipContainer:"flex justify-end mt-1 ml-2",body:"py-2",description:"text-sm text-gray-500",footer:"flex justify-between items-center py-1 md:py-2 lg:py-3",date:"text-tiny text-gray-400 min-w-20",tagContainer:"flex flex-wrap space-x-1 justify-end",tag:"text-tiny text-gray-400"},h=(0,c.memo)(e=>{let{tags:t}=e;return(0,a.jsx)("div",{className:f.tagContainer,children:t.map(e=>(0,a.jsxs)("span",{className:f.tag,children:["#",e]},e))})});h.displayName="Tags";let p=(0,c.memo)(e=>{let{post:t,index:s}=e,{title:c,slug:d,stars:x,description:p,date:g,tags:u}=t;return(0,a.jsx)("div",{className:f.container,children:(0,a.jsxs)(r.Z,{as:l.h,href:"/posts/".concat(d),classNames:{base:f.card},children:[(0,a.jsx)(n.d,{className:f.header,children:(0,a.jsxs)("div",{className:f.headerContent,children:[(0,a.jsx)("span",{className:f.title,children:c}),(0,a.jsx)("div",{className:f.chipContainer,children:(0,a.jsx)(m,{stars:x,index:s})})]})}),(0,a.jsx)(i.U,{className:f.body,children:(0,a.jsx)("span",{className:f.description,children:p})}),(0,a.jsxs)(o.Z,{className:f.footer,children:[(0,a.jsx)("span",{className:f.date,children:g}),(0,a.jsx)(h,{tags:u})]})]})})});p.displayName="BlogpostCard";let g=p},75737:(e,t,s)=>{"use strict";s.d(t,{LoadingSpinner:()=>l});var a=s(3896),r=s(43058);function l(){return(0,a.jsx)(r.Y,{})}}},e=>{var t=t=>e(e.s=t);e.O(0,[1796,4555,7049,1071,8016,7410,7358],()=>t(7051)),_N_E=e.O()}]);