1import{H as e,W as t,i as n,k as r}from"./chunk-6CSD65Y2-D6zLy3dp.js";import{t as i}from"./jsx-runtime-BGLTrfZy.js";import{t as a}from"./button-DrB63Wrb.js";import{i as o,n as s,r as c}from"./PostRow-CyG6palb.js";import{t as l}from"./time-utils-DcRCMNV5.js";import{t as u}from"./safe-marked-xGcjNsFK.js";import{n as d}from"./use-timezone-BxbxSbxz.js";import{n as f}from"./tts-provider-aX8KnGCy.js";import{t as p}from"./string-utils-Bgl0RdLr.js";import{t as m}from"./text-utils--3CW0i-p.js";var h=i(),g={finance:{color:`emerald`,hex:`#00FF9F`,label:`FINANCE`},fitness:{color:`rose`,hex:`#FF0055`,label:`FITNESS`},freedom:{color:`amber`,hex:`#FFB000`,label:`FREEDOM`},tech:{color:`cyan`,hex:`#00F0FF`,label:`TECH`},media:{color:`violet`,hex:`#BF40FF`,label:`MEDIA`}};function _(e,t){return e?l(e,t,{year:!0}):`â`}function v({posts:e,variant:t,domainColor:r,linkPrefix:i}){let a=f(),o=d();return e.length===0?(0,h.jsx)(`div`,{className:`border border-dashed border-white/20 p-8 text-center`,children:(0,h.jsx)(`p`,{className:`text-gray-500 font-mono text-sm uppercase tracking-wider`,children:`NO_TRANSMISSIONS_FOUND`})}):(0,h.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:e.map(e=>{let s=g[e.pillar??`tech`]||g.tech,c=t===`domain`?r:s.color,l=t===`domain`?r===`emerald`?`#00FF9F`:r===`rose`?`#FF0055`:r===`amber`?`#FFB000`:r===`violet`?`#BF40FF`:`#00F0FF`:s.hex;return(0,h.jsxs)(n,{to:i?`${i}/${e.slug}`:`/${e.pillar??`tech`}/logs/${e.slug}`,className:` 2 group block bg-panel border border-white/10 p-5 3 hover:border-${c}/50 4 transition-all duration-200 5 hover:translate-x-[-2px] hover:translate-y-[-2px] 6 `,style:{"--card-color":l},children:[(0,h.jsxs)(`div`,{className:`flex items-start justify-between gap-3 mb-3`,children:[(0,h.jsx)(`h3`,{className:`font-header font-bold text-white group-hover:text-[var(--card-color)] transition-colors line-clamp-2`,children:e.title}),t===`global`&&(0,h.jsx)(`span`,{className:`shrink-0 px-2 py-0.5 text-[10px] font-mono font-bold uppercase tracking-wider border`,style:{borderColor:s.hex,color:s.hex},children:s.label})]}),e.excerpt&&(0,h.jsx)(`p`,{className:`text-sm text-gray-400 line-clamp-2 mb-4`,children:e.excerpt}),(0,h.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-gray-500 font-mono`,children:[(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,h.jsx)(`span`,{children:_(e.published_at,o)}),a?.isAvailable&&e.excerpt&&(0,h.jsx)(`button`,{type:`button`,onClick:t=>{t.preventDefault(),t.stopPropagation(),a.speak(e.excerpt||``)},className:`text-[#9D4EDD] hover:text-white transition-colors`,"aria-label":`Play excerpt of ${e.title}`,children:`â¶`})]}),(0,h.jsx)(`span`,{className:`group-hover:text-[var(--card-color)] transition-colors`,children:`READ_MORE â`})]})]},e.slug)})})}var y=t(e(),1);function b(e){return e.replace(/'/g,`'`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`).replace(/&/g,`&`)}function x(e){if(!e)return{html:``,toc:[]};let t;try{t=u.parse(e,{async:!1})}catch{return{html:`<p>Error rendering content.</p>`,toc:[]}}t=t.replace(/^\s*<h1[^>]*>[\s\S]*?<\/h1>/,``);let n=[],r=new Set;return t=t.replace(/<h2[^>]*>([\s\S]*?)<\/h2>/g,(e,t)=>{let i=b(t.replace(/<[^>]+>/g,``).trim()),a=p(i)||`section`,o=a,s=2;for(;r.has(o);)o=`${a}-${s++}`;return r.add(o),n.push({id:o,label:i}),`<h2 id="${o}">${t}</h2>`}),{html:t,toc:n}}var S={emerald:{border:`border-emerald`,text:`text-emerald`,accent:`emerald`},rose:{border:`border-rose`,text:`text-rose`,accent:`rose`},amber:{border:`border-amber`,text:`text-amber`,accent:`amber`},cyan:{border:`border-cyan`,text:`text-cyan`,accent:`cyan`},violet:{border:`border-violet`,text:`text-violet`,accent:`violet`},amethyst:{border:`border-amethyst`,text:`text-amethyst`,accent:`amethyst`}};function C({domainColor:e,source:t=`article`}){let n=r(),[i,o]=(0,y.useState)(``),s=S[e]??S.cyan,c=n.state!==`idle`,l=n.data?.success===!0,u=n.data?.error;return l?(0,h.jsxs)(`div`,{className:`bg-black/60 border-2 ${s.border} p-6 md:p-8 my-12`,children:[(0,h.jsx)(`p`,{className:`font-mono font-bold text-lg ${s.text}
6 tracking-wider uppercase`,children:n.data?.alreadySubscribed?`ALREADY_SUBSCRIBED`:`YOU'RE_IN.`}),(0,h.jsx)(`p`,{className:`font-mono text-sm text-gray-400 mt-2`,children:n.data?.alreadySubscribed?`This email is already on the list. Transmissions incoming.`:`First transmission incoming. Watch your inbox.`})]}):(0,h.jsxs)(`div`,{className:`bg-black/60 border-2 ${s.border} p-6 md:p-8 my-12`,children:[(0,h.jsx)(`h3`,{className:`font-mono font-bold text-lg ${s.text} tracking-wider uppercase mb-2`,children:`GET_TRANSMISSIONS`}),(0,h.jsx)(`p`,{className:`font-mono text-sm text-gray-400 mb-4`,children:`Raw signal on finance, freedom, fitness, and tech. No spam. Unsubscribe anytime.`}),(0,h.jsxs)(n.Form,{method:`post`,className:`flex flex-col sm:flex-row gap-3`,children:[(0,h.jsx)(`input`,{type:`hidden`,name:`intent`,value:`subscribe_newsletter`}),(0,h.jsx)(`input`,{type:`hidden`,name:`source`,value:t}),(0,h.jsx)(`input`,{type:`email`,name:`email`,value:i,onChange:e=>o(e.target.value),placeholder:`[email protected]`,required:!0,className:`flex-1 bg-black/80 border-2 border-white/20 text-white font-mono text-sm px-4 py-2.5 placeholder:text-gray-600 focus:border-white/40 focus:outline-none transition-colors`}),(0,h.jsx)(a,{type:`submit`,variant:`brutal`,accent:s.accent,disabled:c||!i,children:c?`SUBSCRIBING...`:`SUBSCRIBE`})]}),u&&(0,h.jsx)(`p`,{className:`font-mono text-sm text-rose mt-3`,children:u})]})}var w={finance:{label:`FINANCE`,hex:`#00FF9F`,rgb:`0,255,159`},freedom:{label:`FREEDOM`,hex:`#FFB000`,rgb:`255,176,0`},tech:{label:`TECH`,hex:`#00F0FF`,rgb:`0,240,255`},media:{label:`MEDIA`,hex:`#BF40FF`,rgb:`191,64,255`},fitness:{label:`FITNESS`,hex:`#FF0055`,rgb:`255,0,85`},platform:{label:`PLATFORM`,hex:`#9D4EDD`,rgb:`157,78,221`}},T=e=>w[e??`platform`]||w.platform,E=`repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px)`,D=e=>String(e).padStart(2,`0`);function O({post:e,readMinutes:t,nextPosts:r=[],isAdmin:i=!1,backPath:a=`/logs`}){let l=T(e.pillar),u=o(e.pillar),d=f(),{html:p,toc:g}=(0,y.useMemo)(()=>x(e.content),[e.content]),[_,v]=(0,y.useState)(0),[b,S]=(0,y.useState)(``),[w,O]=(0,y.useState)(!1);(0,y.useEffect)(()=>{let e=0,t=()=>{e=0;let t=document.documentElement,n=t.scrollHeight-t.clientHeight;v(n>0?Math.min(1,t.scrollTop/n):0)},n=()=>{e===0&&(e=requestAnimationFrame(t))};return t(),window.addEventListener(`scroll`,n,{passive:!0}),()=>{window.removeEventListener(`scroll`,n),e&&cancelAnimationFrame(e)}},[]),(0,y.useEffect)(()=>{if(g.length===0)return;let e=0,t=()=>{e=0;let t=g[0].id;for(let e of g){let n=document.getElementById(e.id);if(n)if(n.getBoundingClientRect().top-96<=0)t=e.id;else break}S(t)},n=()=>{e===0&&(e=requestAnimationFrame(t))};return t(),window.addEventListener(`scroll`,n,{passive:!0}),()=>{window.removeEventListener(`scroll`,n),e&&cancelAnimationFrame(e)}},[g]);let k=e=>{let t=document.getElementById(e);if(!t)return;S(e);let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;window.scrollTo({top:t.getBoundingClientRect().top+window.scrollY-80,behavior:n?`auto`:`smooth`})},A=()=>{navigator.clipboard?.writeText&&navigator.clipboard.writeText(window.location.href).then(()=>{O(!0),setTimeout(()=>O(!1),1600)}).catch(()=>{})},j=s(e.published_at),M=s(e.updated_at??null);return(0,h.jsxs)(`div`,{className:`max-w-5xl mx-auto px-5 sm:px-8 md:px-10`,children:[(0,h.jsx)(`div`,{className:`fixed top-[60px] left-0 right-0 h-[2px] z-[70] pointer-events-none`,children:(0,h.jsx)(`div`,{className:`h-full`,style:{width:`${_*100}%`,background:l.hex,boxShadow:`0 0 10px ${l.hex}`,transition:`width .1s linear`}})}),(0,h.jsx)(`div`,{"aria-hidden":`true`,className:`absolute top-0 left-1/2 -translate-x-1/2 w-[900px] max-w-full h-[540px] rounded-full pointer-events-none z-0`,style:{background:`rgba(${l.rgb},0.07)`,filter:`blur(130px)`}}),(0,h.jsxs)(`nav`,{className:`relative z-10 flex items-center gap-[10px] py-[18px] font-mono text-[10px] tracking-[0.16em] text-zinc-500`,children:[(0,h.jsx)(n,{to:`/`,className:`text-zinc-500 no-underline hover:text-white transition-colors`,children:`// HOME`}),(0,h.jsx)(`span`,{className:`text-zinc-700`,children:`/`}),(0,h.jsx)(n,{to:a,className:`text-zinc-500 no-underline hover:text-white transition-colors`,children:`WRITING`}),(0,h.jsx)(`span`,{className:`text-zinc-700`,children:`/`}),(0,h.jsx)(`span`,{style:{color:l.hex},children:`ARTICLE`})]}),(0,h.jsxs)(`header`,{className:`relative z-10 border-t border-white/[0.07] pt-10`,children:[(0,h.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,h.jsx)(c,{accent:u,children:l.label}),e.excerpt?null:(0,h.jsx)(`span`,{className:`font-mono text-[10px] tracking-[0.16em] text-zinc-500`,children:`FROM THE LOGS`})]}),(0,h.jsx)(`h1`,{className:`font-brand font-bold text-[clamp(34px,5.4vw,68px)] leading-[0.98] tracking-[-0.025em] m-0 text-white`,children:e.title}),e.excerpt&&(0,h.jsx)(`p`,{className:`font-mono text-zinc-500 text-[15.5px] leading-[1.6] mt-[22px] max-w-[56ch]`,children:e.excerpt}),(0,h.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-[18px] gap-y-[14px] mt-7 pb-[26px]`,children:[(0,h.jsxs)(`span`,{className:`flex items-center gap-[11px]`,children:[(0,h.jsx)(`span`,{className:`w-[34px] h-[34px] border border-white/[0.16] grid place-items-center font-brand font-bold text-[14px] text-amethyst`,children:`D`}),(0,h.jsxs)(`span`,{className:`flex flex-col gap-[2px]`,children:[(0,h.jsx)(`span`,{className:`font-header font-semibold text-[13px] text-white`,children:`Dominic Baca`}),(0,h.jsx)(`span`,{className:`font-mono text-[10px] tracking-[0.1em] text-zinc-500`,children:`SOLO ENGINEER · DOMDHI.OS`})]})]}),(0,h.jsx)(`span`,{className:`w-px h-7 bg-white/[0.16]`}),j&&(0,h.jsx)(`span`,{className:`font-mono text-[11px] text-zinc-500`,children:j}),(0,h.jsxs)(`span`,{className:`font-mono text-[11px] text-zinc-500`,children:[t,` MIN READ`]}),(0,h.jsxs)(`span`,{className:`ml-auto flex gap-2`,children:[d?.isAvailable&&e.content&&(0,h.jsx)(`button`,{type:`button`,onClick:()=>d.speak(m(e.content||``)),className:`font-mono text-[11px] tracking-[0.12em] px-3 py-1.5 border border-white/[0.16] text-zinc-400 hover:text-white hover:border-white/30 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-amethyst`,children:d.isPlaying?`⸠PLAYING`:`â¶ LISTEN`}),(0,h.jsx)(`button`,{type:`button`,onClick:A,className:`font-mono text-[11px] tracking-[0.12em] px-3 py-1.5 border border-white/[0.16] text-zinc-400 hover:text-white hover:border-white/30 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-amethyst`,children:w?`COPIED â`:`COPY LINK`}),i&&(0,h.jsx)(n,{to:`/writer?slug=${e.slug}`,className:`font-mono text-[11px] tracking-[0.12em] px-3 py-1.5 border border-amethyst text-amethyst hover:bg-amethyst hover:text-white transition-colors no-u
6nderline`,children:`EDIT â`})]})]})]}),(0,h.jsx)(`div`,{className:`relative z-10`,children:(0,h.jsxs)(`div`,{className:`relative aspect-[16/7] overflow-hidden border border-white/[0.16]`,style:{background:`radial-gradient(circle at 50% 45%, rgba(${l.rgb},0.20), rgba(157,78,221,0.10) 45%, rgba(2,2,2,0.9) 82%)`},children:[e.cover_image?(0,h.jsx)(`img`,{src:`/api/image/stream?key=${encodeURIComponent(e.cover_image)}`,alt:e.title,loading:`lazy`,className:`absolute inset-0 w-full h-full object-cover`}):(0,h.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center font-brand font-bold uppercase pointer-events-none`,style:{fontSize:`clamp(48px,11vw,150px)`,letterSpacing:`-0.04em`,opacity:.09},children:l.label}),(0,h.jsx)(`span`,{className:`absolute top-4 left-4 font-mono text-[10px] tracking-[0.18em]`,style:{color:`rgba(${l.rgb},0.6)`},children:`// FIG.01`}),(0,h.jsx)(`div`,{className:`absolute inset-0 pointer-events-none`,style:{backgroundImage:E}})]})}),(0,h.jsx)(`div`,{className:`relative z-10`,children:(0,h.jsxs)(`div`,{className:`grid grid-cols-1 gap-7 pt-10 pb-5 border-t border-white/[0.07] ${g.length>0?`min-[900px]:grid-cols-[220px_minmax(0,1fr)] min-[900px]:gap-14`:``}`,children:[g.length>0&&(0,h.jsxs)(`aside`,{className:`self-start static min-[900px]:sticky min-[900px]:top-24`,children:[(0,h.jsx)(`span`,{className:`block font-mono text-[10px] tracking-[0.25em]`,style:{color:l.hex},children:`// CONTENTS`}),(0,h.jsx)(`nav`,{className:`mt-4 flex flex-col border-l border-white/[0.07]`,children:g.map((e,t)=>{let n=b===e.id;return(0,h.jsxs)(`a`,{href:`#${e.id}`,onClick:t=>{t.preventDefault(),k(e.id)},className:`grid grid-cols-[24px_1fr] gap-2 px-3 py-[9px] -ml-px no-underline transition-colors`,style:{borderLeft:`2px solid ${n?l.hex:`transparent`}`},children:[(0,h.jsx)(`span`,{className:`font-mono text-[10px]`,style:{color:n?l.hex:`#3f3f46`},children:D(t+1)}),(0,h.jsx)(`span`,{className:`font-mono text-[11.5px] leading-[1.4]`,style:{color:n?`#ededed`:`#71717a`},children:e.label})]},e.id)})}),(0,h.jsx)(`div`,{className:`mt-6 pt-[18px] border-t border-white/[0.07] flex flex-col gap-[10px]`,children:[[`FILED`,j||`â`,!1],...M?[[`UPDATED`,M,!1]]:[],[`STATUS`,`PUBLISHED`,!0]].map(([e,t,n],r)=>(0,h.jsxs)(`span`,{className:`flex justify-between gap-[10px] font-mono text-[10px] tracking-[0.06em] text-zinc-500`,children:[(0,h.jsx)(`span`,{children:e}),(0,h.jsx)(`span`,{style:{color:n?`#00FF9F`:`#c4c4c8`},children:t})]},r))})]}),(0,h.jsx)(`article`,{className:`article-prose min-w-0`,style:{"--art-accent":l.hex,"--art-accent-rgb":l.rgb},dangerouslySetInnerHTML:{__html:p}})]})}),(0,h.jsx)(`div`,{className:`relative z-10 mt-6`,children:(0,h.jsx)(C,{domainColor:u===`white`?`cyan`:u,source:`article:${e.slug}`})}),(0,h.jsx)(`div`,{className:`relative z-10`,children:(0,h.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-7 gap-y-5 p-6 mt-6 bg-panel border border-white/[0.07] border-l-2 border-l-amethyst`,children:[(0,h.jsx)(`span`,{className:`w-[52px] h-[52px] border border-white/[0.16] grid place-items-center font-brand font-bold text-[22px] text-amethyst shrink-0`,children:`D`}),(0,h.jsxs)(`div`,{className:`flex-1 min-w-[240px]`,children:[(0,h.jsx)(`div`,{className:`font-header font-semibold text-[15px] text-white mb-1`,children:`Dominic Baca`}),(0,h.jsx)(`p`,{className:`font-mono text-[12.5px] leading-[1.65] text-zinc-500 m-0 max-w-[52ch]`,children:`One engineer building Domdhi.OS in public â money, freedom, and the occasional 2am migration. Every number live, every commit public.`})]}),(0,h.jsx)(n,{to:a,className:`font-mono text-[11px] tracking-[0.12em] px-4 py-2 border border-amethyst text-amethyst hover:bg-amethyst hover:text-white transition-colors no-underline`,children:`FOLLOW THE LOGS â`})]})}),r.length>0&&(0,h.jsxs)(`section`,{className:`relative z-10 border-t border-white/[0.07] pt-11 pb-2 mt-11`,children:[(0,h.jsx)(`span`,{className:`block font-mono text-[10px] tracking-[0.25em] text-zinc-500`,children:`// NEXT IN THE LOGS`}),(0,h.jsx)(`div`,{className:`grid grid-cols-1 min-[700px]:grid-cols-3 gap-px bg-white/[0.07] border border-white/[0.07] mt-5`,children:r.map(e=>{let t=T(e.pillar);return(0,h.jsxs)(n,{to:`/logs/${e.slug}`,className:`group bg-void p-[22px] flex flex-col gap-3 no-underline text-inherit min-h-[150px] transition-[border-color,box-shadow] duration-200 hover:border-white/[0.16]`,style:{borderTop:`2px solid ${t.hex}`},children:[(0,h.jsx)(`span`,{className:`self-start`,children:(0,h.jsx)(c,{accent:o(e.pillar),children:t.label})}),(0,h.jsx)(`span`,{className:`font-header font-semibold text-[16px] leading-[1.25] text-white flex-1 transition-colors group-hover:text-white`,children:e.title}),(0,h.jsxs)(`span`,{className:`font-mono text-[10px] text-zinc-500`,children:[s(e.published_at),` · `,e.readMinutes,` MIN`]})]},e.slug)})}),(0,h.jsx)(`div`,{className:`py-7`,children:(0,h.jsx)(n,{to:a,className:`font-mono text-[11px] tracking-[0.14em] text-zinc-500 no-underline hover:text-white transition-colors`,children:`â ALL WRITING`})})]})]})}export{v as n,O as t};
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.