1import{w as f}from"./openLink-Bn0xs7K2.js";import{c,j as n}from"./compiler-runtime-Az1Ni4yv.js";import{L as p}from"./LuffyDancing-CPuxMumY.js";import{$ as d}from"./Heading-mPGt--3L.js";import{$ as y,c as x}from"./utils-CzxjmytB.js";import{a as u}from"./index-CXHzp5bW.js";import{i as h,B as b}from"./isNonNullEdge-AWNy3-L_.js";import{P}from"./PageMeta-NstS6mOu.js";import{u as k}from"./remix-relay-Bdju6aft.js";import"./index-C64wFEK_.js";import"./index-Q79ZV4cS.js";import"./responseCache-B7G7Biz2.js";const m={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"IndexLatestPublications",selections:[{kind:"RequiredField",field:{alias:null,args:[{kind:"Literal",name:"first",value:10}],concreteType:"QueryBlogPostsConnection",kind:"LinkedField",name:"blogPosts",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"QueryBlogPostsConnectionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"BlogPost",kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BlogPostListItemFragment"}],storageKey:null}],storageKey:null},action:"THROW",path:"blogPosts.edges"}],storageKey:"blogPosts(first:10)"},action:"THROW",path:"blogPosts"}],type:"Query",abstractKey:null};m.hash="4fab1243626f5301f9e7764e58b99c57";const g={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"IndexQuery",selections:[{args:null,kind:"FragmentSpread",name:"IndexLatestPublications"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"IndexQuery",selections:[{alias:null,args:[{kind:"Literal",name:"first",value:10}],concreteType:"QueryBlogPostsConnection",kind:"LinkedField",name:"blogPosts",plural:!1,selections:[{alias:null,args:null,concreteType:"QueryBlogPostsConnectionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"BlogPost",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:"blogPosts(first:10)"}]},params:{cacheID:"ab4ff947e9cac3c6f433d52155a0ee71",id:null,metadata:{},name:"IndexQuery",operationKind:"query",text:`query IndexQuery { 2 ...IndexLatestPublications 3} 4 5fragment BlogPostListItemFragment on BlogPost { 6 id 7 title 8 slug 9 publishedAt 10} 11 12fragment IndexLatestPublications on Query { 13 blogPosts(first: 10) { 14 edges { 15 cursor 16 node { 17 ...BlogPostListItemFragment 18 id 19 } 20 } 21 } 22} 23`}};g.hash="8de6a4f159f8801b5b8e560735570b6c";const C=f(function(){const e=c.c(5),a=k();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=g,e[0]=s):s=e[0];const i=u.usePreloadedQuery(s,a);let o,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(P,{title:"Horus Lugo",titleTemplate:"%s",description:"I'm a developer who loves crafting web experiences and sharing my thoughts. I write about coding, random stuff, and my obsession with One Piece.",url:"https://horus.dev"}),l=n.jsx(F,{}),e[1]=o,e[2]=l):(o=e[1],l=e[2]);let r;return e[3]!==i?(r=n.jsxs(n.Fragment,{children:[o,l,n.jsx(j,{fragmentRef:i})]}),e[3]=i,e[4]=r):r=e[4],r});function F(){const t=c.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsxs("div",{children:[n.jsx(d,{level:1,className:"font-serif text-5xl font-semibold",children:"Hi, I'm Horus!"}),n.jsxs("p",{className:"text-accent-100 whitespace-pre-line pt-4 font-serif text-xl font-medium leading-[1.8] md:text-2xl",children:["I'm a developer who loves crafting web experiences and sharing my thoughts. I write about coding, random stuff, and my obsession with One Piece.",` 24`,"Stick around for insights, reflections, and a touch of adventure!"]})]}),t[0]=e):e=t[0];let a;return t[1]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(n.Fragment,{children:n.jsx("div",{className:"container py-6 md:py-16",children:n.jsxs("div",{className:"flex flex-col-reverse gap-8 md:flex-row md:gap-16",children:[e,n.jsx("div",{className:"text-accent-400 w-32 shrink-0 md:w-48","aria-hidden":"true",children:n.jsx(p,{})})]})})}),t[1]=a):a=t[1],a}function j(t){const e=c.c(6),{fragmentRef:a}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=m,e[0]=s):s=e[0];const i=u.useFragment(s,a);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx(d,{level:2,className:"font-serif text-4xl font-semibold",children:"Posts"}),n.jsx(y,{href:"/blog",className:_,children:"View all"})]}),e[1]=o):o=e[1];let l;e[2]!==i.blogPosts.edges?(l=i.blogPosts.edges.filter(h).map(L),e[2]=i.blogPosts.edges,e[3]=l):l=e[3];let r;return e[4]!==l?(r=n.jsxs("section",{className:"container py-6 md:py-16",children:[o,n.jsx("ol",{className:"pt-4",children:l})]}),e[4]=l,e[5]=r):r=e[5],r}
24function L(t){return n.jsx(b,{fragmentRef:t.node,getHref:I},t.cursor)}function I(t){const{slug:e}=t;return`/blog/${e}`}function _(t){const{isPressed:e,isHovered:a,isFocusVisible:s,isFocused:i}=t;return x("text-accent-50 inset-shadow-accent-50/[0.08] inset-shadow-[0_0_2px_1px] bg-accent-50/5 inline-block rounded-md px-6 py-2 font-bold outline-none transition-all duration-150",e&&"pressed",a&&"bg-accent-50/10",i&&s&&"ring")}export{C as default};
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.