!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ed2214d1-7253-48a3-a81b-1dc0b7548dac",e._sentryDebugIdIdentifier="sentry-dbid-ed2214d1-7253-48a3-a81b-1dc0b7548dac")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[803],{42593:(e,t,r)=>{Promise.resolve().then(r.bind(r,72750)),Promise.resolve().then(r.bind(r,2564)),Promise.resolve().then(r.bind(r,16562)),Promise.resolve().then(r.bind(r,44059)),Promise.resolve().then(r.bind(r,65386)),Promise.resolve().then(r.bind(r,23949)),Promise.resolve().then(r.bind(r,64118)),Promise.resolve().then(r.bind(r,89589)),Promise.resolve().then(r.bind(r,75959)),Promise.resolve().then(r.bind(r,5684)),Promise.resolve().then(r.bind(r,26132)),Promise.resolve().then(r.bind(r,31408)),Promise.resolve().then(r.bind(r,3854)),Promise.resolve().then(r.bind(r,88719)),Promise.resolve().then(r.bind(r,95455)),Promise.resolve().then(r.bind(r,44804)),Promise.resolve().then(r.bind(r,87040)),Promise.resolve().then(r.bind(r,95690)),Promise.resolve().then(r.bind(r,36373)),Promise.resolve().then(r.bind(r,63968)),Promise.resolve().then(r.bind(r,16487)),Promise.resolve().then(r.bind(r,87044)),Promise.resolve().then(r.bind(r,43073)),Promise.resolve().then(r.bind(r,71203)),Promise.resolve().then(r.bind(r,37701)),Promise.resolve().then(r.bind(r,89840)),Promise.resolve().then(r.bind(r,75385)),Promise.resolve().then(r.bind(r,95719)),Promise.resolve().then(r.bind(r,54295)),Promise.resolve().then(r.bind(r,31730)),Promise.resolve().then(r.bind(r,94591)),Promise.resolve().then(r.bind(r,56249)),Promise.resolve().then(r.bind(r,98367)),Promise.resolve().then(r.bind(r,35962)),Promise.resolve().then(r.bind(r,39724)),Promise.resolve().then(r.bind(r,2019)),Promise.resolve().then(r.bind(r,63290)),Promise.resolve().then(r.t.bind(r,27985,23)),Promise.resolve().then(r.bind(r,7209))},99336:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(57217);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,s.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:m,...u}=e;return(0,s.createElement)("svg",{ref:t,...a,width:n,height:n,stroke:r,strokeWidth:o?24*Number(i)/Number(n):i,className:l("lucide",d),...u},[...m.map(e=>{let[t,r]=e;return(0,s.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,s.forwardRef)((r,a)=>{let{className:o,...d}=r;return(0,s.createElement)(i,{ref:a,iconNode:t,className:l("lucide-".concat(n(e)),o),...d})});return r.displayName="".concat(e),r}},24397:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(99336).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},44037:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(99336).A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},93242:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var s=r(27985),n=r.n(s)},48496:(e,t,r)=>{"use strict";var s=r(96512);r.o(s,"useParams")&&r.d(t,{useParams:function(){return s.useParams}}),r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},79511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});let s=r(57217);function n(e,t){let r=(0,s.useRef)(()=>{}),n=(0,s.useRef)(()=>{});return(0,s.useMemo)(()=>e&&t?s=>{null===s?(r.current(),n.current()):(r.current=l(e,s),n.current=l(t,s))}:e||t,[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51474:(e,t,r)=>{"use strict";r.d(t,{z:()=>o});var s=r(28261),n=r(44037),l=r(24397),a=r(57102),i=r(93242);let o=e=>{let{posts:t,style:r="cards",forceSubscribeInvite:o=!1}=e,d=o||t.length<3;return(0,s.jsxs)("div",{className:"flex flex-col gap-4 justify-center",children:[(0,s.jsx)("div",{className:"container mx-4 ".concat("cards"===r?"my-4":"my-0"," mx-auto flex flex-wrap gap-4 justify-center"),children:"cards"===r?t.map((e,t)=>(0,s.jsx)(a.default,{post:e,index:t},e.slug)):(0,s.jsx)("div",{className:"flex flex-col gap-2",children:t.map(e=>(0,s.jsxs)("div",{className:"flex flex-row items-center my-0",children:[e.stars>1&&(0,s.jsx)(n.A,{className:"w-4 h-4 mr-2 text-yellow-500 fill-yellow-500"}),(0,s.jsxs)(i.default,{href:"/posts/".concat(e.slug),className:"flex flex-row items-center text-gray-600 hover:scale-100 no-underline",children:[e.title,(0,s.jsx)(l.A,{className:"w-4 h-4 ml-2 text-gray-600"})]})]},e.slug))})}),(0,s.jsxs)("footer",{className:"flex flex-col gap-2",children:[d&&(0,s.jsxs)("p",{className:"text-tiny text-gray-400 text-center text-balance !my-0",children:["I will add more posts soon (subscribe to"," ",(0,s.jsx)(i.default,{href:"/newsletter",children:"my newsletter"})," to be notified)."]}),(0,s.jsxs)("p",{className:"text-tiny text-gray-400 text-center text-balance !my-0",children:["Click ",(0,s.jsx)(i.default,{href:"/blog",children:"here"})," to view all of my posts."]})]})]})}},7209:(e,t,r)=>{"use strict";r.d(t,{BlogListWithFilter:()=>h});var s=r(28261),n=r(57217),l=r(51474),a=r(93242);let i={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"},o=(0,n.memo)(e=>{let{tagFilter:t}=e;return(0,s.jsxs)("p",{className:i.filterText,children:["Showing posts tagged with:"," ",(0,s.jsx)("span",{className:"font-semibold",children:t})," ",(0,s.jsx)(a.default,{href:"/blog",className:i.clearLink,children:"(clear filter)"})]})}),d=(0,n.memo)(e=>{let{tags:t}=e;return(0,s.jsxs)("div",{className:i.container,children:[(0,s.jsx)("p",{className:i.header,children:"Filter by tag:"}),(0,s.jsx)("div",{className:i.tagList,children:t.sort((e,t)=>t.count-e.count).map(e=>(0,s.jsx)(c,{...e},e.tag))})]})}),c=(0,n.memo)(e=>{let{tag:t,count:r}=e;return(0,s.jsxs)(a.default,{href:"/blog?tag=".concat(t),className:i.tag,children:[t.length>20?"".concat(t.substring(0,20),"..."):t," ","(",r,")"]})});o.displayName="FilterAppliedText",d.displayName="FilterNotAppliedText",c.displayName="TagLink";var m=r(48496);let u=e=>{let{children:t,isMobile:r}=e;return(0,s.jsx)("div",{className:r?"md:hidden":"hidden md:block",children:(0,s.jsx)("div",{className:"".concat("relative border border-gray-400 shadow-lg bg-white rounded-lg"," ").concat(r?"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,s.jsx)("div",{className:"relative",children:t})})})};function h(e){let{posts:t,tags:r,initialTag:a}=e,i=(0,m.useSearchParams)(),[c,h]=(0,n.useState)(t),[x,f]=(0,n.useState)(a);(0,n.useEffect)(()=>{let e=null==i?void 0:i.get("tag");f(e||""),h(e?t.filter(t=>{var r;return null===(r=t.tags)||void 0===r?void 0:r.includes(e)}):t)},[i,t]);let b=x?(0,s.jsx)(o,{tagFilter:x}):(0,s.jsx)(d,{tags:r});return(0,s.jsxs)("div",{className:"relative flex flex-row md:gap-8 justify-between mx-auto",children:[(0,s.jsx)(l.z,{posts:c}),(0,s.jsx)(u,{isMobile:!0,children:b}),(0,s.jsx)(u,{isMobile:!1,children:b})]})}},57102:(e,t,r)=>{"use strict";r.d(t,{default:()=>b});var s=r(28261),n=r(2469),l=r(64356),a=r(95787),i=r(85564),o=r(89127),d=r(57217);let c="text-tiny text-nowrap rounded-md px-1 py-0.5",m=(e,t)=>e>=2?{text:"Most popular",className:"".concat(c," text-rose-600 border border-rose-600")}:e>=1||0===t&&e>0?{text:"Popular",className:"".concat(c," text-orange-500 border border-orange-500")}:0===e&&0===t?{text:"Most recent",className:"".concat(c," text-orange-500 border border-orange-500")}:null,u=(0,d.memo)(e=>{let{stars:t,index:r}=e,n=m(t,r);return n?(0,s.jsx)("span",{className:n.className,children:n.text}):null});u.displayName="BlogpostCardTitle";let h={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"},x=(0,d.memo)(e=>{let{tags:t}=e;return(0,s.jsx)("div",{className:h.tagContainer,children:t.map(e=>(0,s.jsxs)("span",{className:h.tag,children:["#",e]},e))})});x.displayName="Tags";let f=(0,d.memo)(e=>{let{post:t,index:r}=e,{title:d,slug:c,stars:m,description:f,date:b,tags:p}=t;return(0,s.jsx)("div",{className:h.container,children:(0,s.jsxs)(n.Z,{as:l.h,href:"/posts/".concat(c),classNames:{base:h.card},children:[(0,s.jsx)(a.d,{className:h.header,children:(0,s.jsxs)("div",{className:h.headerContent,children:[(0,s.jsx)("span",{className:h.title,children:d}),(0,s.jsx)("div",{className:h.chipContainer,children:(0,s.jsx)(u,{stars:m,index:r})})]})}),(0,s.jsx)(i.U,{className:h.body,children:(0,s.jsx)("span",{className:h.description,children:f})}),(0,s.jsxs)(o.Z,{className:h.footer,children:[(0,s.jsx)("span",{className:h.date,children:b}),(0,s.jsx)(x,{tags:p})]})]})})});f.displayName="BlogpostCard";let b=f}},e=>{var t=t=>e(e.s=t);e.O(0,[8669,9918,7985,5859,4743,9483,7648,6588,8763,3648,7358],()=>t(42593)),_N_E=e.O()}]);