PageSourceSearch

https://calebevans.me/_app/immutable/chunks/C8oW4-2J.js

js calebevans.me collected 2026-09-24 09:13:44 UTC 6,495 bytes, 1 lines download raw bytes

1import{$ as e,B as t,D as n,E as r,F as i,G as a,J as o,K as s,M as c,N as l,O as u,P as d,Q as f,S as p,T as m,W as h,X as g,Y as _,_ as v,a as y,b,d as x,et as S,it as C,j as w,k as T,l as E,n as D,o as O,p as k,q as A,r as j,rt as M,tt as N,u as P,w as F,x as I}from"./BVD-n0Ka.js";import"./xihTtKlq.js";import{t as L}from"./s350eh56.js";import{a as ee,c as te,i as ne,n as R,o as z,r as B,t as V}from"./wCGr5vgT.js";import{t as H}from"./Be_UB0iT.js";function U(e,t){let n={};for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);Object.hasOwn(n,a)||(n[a]=[]),n[a].push(i)}return n}var W={categoriesByColumn:[[{id:`games`,title:`Games`,topProjects:[`connect-four`,`inflection-point`]},{id:`fun`,title:`Fun`,topProjects:[`flip-book`,`unscrambler`,`painter`],bottomProjects:[`until`,`atom`,`colorful-chips`]},{id:`math`,title:`Math`,bottomProjects:[`sequencer`,`flashmath`]},{id:`tools`,title:`Tools / Productivity`,topProjects:[`faith-dashboard`,`workday-time-calculator`,`bg-generator`],bottomProjects:[`html-selector`,`js-console`]}],[{id:`programs`,title:`CLI Programs`,topProjects:[`imessage-conversation-analyzer`,`cache-simulator`,`dotfiles`],bottomProjects:[`three-of-a-crime`]},{id:`javascript-libraries`,title:`JavaScript Libraries`,topProjects:[`jcanvas`,`youversion-suggest-api`,`calc`]},{id:`alfred`,title:`Alfred Workflows`,topProjects:[`youversion-suggest-alfred`,`play-song`,`open-conference-url`,`jira-for-alfred`],bottomProjects:[`alfred-workflow-packager`]},{id:`chrome`,title:`Chrome Extensions`},{id:`raycast`,title:`Raycast Extensions`},{id:`computer-science`,title:`Computer Science`,topProjects:[`automata`],bottomProjects:[`data-structure-visualizer`]},{id:`rollup-plugins`,title:`Rollup Plugins`},{id:`vscode`,title:`VS Code Extensions`},{id:`wordpress`,title:`WordPress`}]]},G=``+new URL(`../assets/clear-search.Dx-7uDHT.svg`,import.meta.url).href,K=new Set([`$$slots`,`$$events`,`$$legacy`,`value`]),q=u(`<div class="search-input-container"><input/> <button type="button" title="Clear Search Query"><img alt="Clear Search Query"/></button></div>`);function J(n,i){S(i,!0);let a=y(i,`value`,15),o=O(i,K);function l(e){e.preventDefault(),a(``)}var u=q(),d=h(u);P(d,()=>({type:`search`,...o}),void 0,void 0,void 0,void 0,!0);var f=s(d,2);let p;var m=h(f);C(f),C(u),t(()=>{p=k(f,1,`search-input-clear-button`,null,p,{hidden:a()===``}),x(m,`src`,G)}),E(d,a),c(`pointerdown`,f,e=>e.preventDefault()),c(`pointerup`,f,l),c(`keyup`,f,e=>{e.key===`Enter`&&l(e)}),r(n,u),e()}w([`pointerdown`,`pointerup`,`keyup`]);var Y=`projectOptions`;function X(e){N(Y,e)}function Z(){return f(Y)}var re=u(`<img alt="" loading="lazy"/>`),Q=u(`<!> <!>`,1);function ie(i,o){S(o,!0);let c=Z();ee(i,{type:`project`,get id(){return o.project.id},transition:e=>c.transition(e),children:(e,i)=>{var c=Q(),l=a(c);ne(l,{get href(){return o.project.direct_url},hiddenFromAccessibility:!0,children:(e,n)=>{var i=re();x(i,`width`,80),x(i,`height`,80),t(()=>x(i,`src`,o.project.iconUrl)),r(e,i)},$$slots:{default:!0}}),B(s(l,2),{children:(e,i)=>{var c=Q(),l=a(c);R(l,{get href(){return o.project.direct_url},type:`h4`,children:(e,n)=>{M();var i=T();t(()=>m(i,o.project.title)),r(e,i)},$$slots:{default:!0}});var u=s(l,2),d=e=>{H(e,{children:(e,t)=>{var i=n();b(a(i),()=>o.project.description),r(e,i)},$$slots:{default:!0}})};F(u,e=>{o.project.description&&e(d)}),r(e,c)},$$slots:{default:!0}}),r(e,c)},$$slots:{default:!0}}),e()}var ae=u(`<section class="entry-list project-category"><h3 class="entry-list-category-title"> </h3> <!></section>`);function oe(o,c){S(c,!0);let l=_(()=>new Set(c.category.topProjects)),u=_(()=>new Set(c.category.bottomProjects)),d=_(()=>V(c.projects,e=>e.id)),f=_(()=>[...(c.category.topProjects||[]).map(e=>i(d)[e]).filter(Boolean),...c.projects.filter(e=>!i(l).has(e.id)&&!i(u).has(e.id)),...(c.category.bottomProjects||[]).map(e=>i(d)[e]).filter(Boolean)]),p=Z(),g=e=>p.transition(e);var y=n(),b=a(y),x=e=>{var n=ae(),a=h(n),o=h(a,!0);C(a),I(s(a,2),17,()=>i(f),e=>e.id,(e,t)=>{ie(e,{get project(){return i(t)}})}),C(n),t(()=>m(o,c.category.title)),v(3,a,()=>g),r(e,n)};F(b,e=>{i(f).length&&e(x)}),r(o,y),e()}var se=class{#e;#t;constructor(e,t){this.#e=e,this.#t=g(t)}get current(){return this.#t(),this.#e()}},$=/\(.+\)/,ce=new Set([`all`,`print`,`screen`,`and`,`or`,`not`,`only`]),le=new class extends se{constructor(e,t){let n=$.test(e)||e.split(/[\s,]+/).some(e=>ce.has(e.trim()))?e:`(${e})`,r=window.matchMedia(n);super(()=>r.matches,e=>d(r,`change`,e))}}(`(prefers-reduced-motion: reduce)`),ue=class{#e=o(!1);constructor(){j(()=>{A(this.#e,!0)}),D(()=>{A(this.#e,!1)})}get current(){return i(this.#e)}},de=u(`<div class="project-search-result-count" aria-live="polite" aria-atomic="true"><!></div>
1`),fe=u(`<div class="project-search-no-results" aria-live="polite" aria-atomic="true">No Matching Projects</div>`),pe=u(`<div class="project-category-column"></div>`),me=u(`<article class="project-archive"><div class="project-search-container"><form class="project-search-container-form"><!></form> <!></div> <div class="project-category-columns" aria-live="polite" aria-atomic="true"></div></article>`);function he(n,a){S(a,!0);let c=W.categoriesByColumn.reduce((e,t)=>(Object.assign(e,t.reduce((e,t)=>({...e,[t.id]:t}),{})),e),{});function u(e,t){return t.trim()===``?e:e.filter(e=>{let n=[...e.title.toLowerCase().split(` `),c[e.category.toLowerCase()].title.toLowerCase(),...e.description.toLowerCase().replace(/<(.+?)>/,``).split(` `)];return t.trim().toLowerCase().split(` `).every(e=>n.some(t=>t.includes(e)))})}let d=o(``),{projects:f}=L.data,g=_(()=>u(f,i(d))),y=_(()=>U(i(g),e=>e.category)),b=new ue,x=e=>b.current&&!le.current?te(e):z(e);X({transition:x});var w=me(),E=h(w),D=h(E);J(h(D),{name:`search`,id:`project-search-input`,placeholder:`Search for a project`,"aria-label":`Search for a project; results will update as you type`,get value(){return i(d)},set value(e){A(d,e,!0)}}),C(D);var O=s(D,2),k=e=>{var n=de(),a=h(n),o=e=>{r(e,T(`Showing 1 project`))},s=e=>{var n=T();t(()=>m(n,`Showing ${i(g).length??``} projects`)),r(e,n)};F(a,e=>{i(g).length===1?e(o):e(s,-1)}),C(n),v(3,n,()=>x),r(e,n)},j=e=>{var t=fe();v(3,t,()=>x),r(e,t)};F(O,e=>{i(g).length?e(k):e(j,-1)}),C(E);var M=s(E,2);I(M,21,()=>W.categoriesByColumn,p,(e,t)=>{var n=pe();I(n,21,()=>i(t),e=>e.id,(e,t)=>{{let n=_(()=>i(y)[i(t).id]??[]);oe(e,{get category(){return i(t)},get projects(){return i(n)}})}}),C(n),r(e,n)}),C(M),C(w),l(`submit`,D,e=>e.preventDefault()),r(n,w),e()}export{he 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.