PageSourceSearch

https://cademichael.github.io/_app/immutable/nodes/4.BlEnhbzO.js

js cademichael.github.io collected 2026-10-03 08:45:00 UTC 4,210 bytes, 3 lines download raw bytes

1import{s as ie,n as $,r as ce,b as ee}from"../chunks/CrGyUMwP.js";import{S as de,i as he,d as p,p as ue,y as U,a as ne,b as t,z,A as te,k as l,c as i,e as g,l as ae,g as L,h as c,j as O,s as le,f as Q,t as B}from"../chunks/DGbnm7Gy.js";import{e as se}from"../chunks/D6YF6ztN.js";const fe=async({fetch:a})=>({posts:await(await a("/api/posts")).json()}),ge=Object.freeze(Object.defineProperty({__proto__:null,load:fe},Symbol.toStringTag,{value:"Module"}));function re(a,e,r){const o=a.slice();return o[7]=e[r],o}function oe(a){let e,r,o,d=a[7].meta.title+"",h,y,C,m=a[7].meta.date+"",u,b;return{c(){e=c("li"),r=c("h2"),o=c("a"),h=B(d),C=B(`
2              Published `),u=B(m),b=O(),this.h()},l(f){e=i(f,"LI",{});var _=g(e);r=i(_,"H2",{});var D=g(r);o=i(D,"A",{href:!0});var P=g(o);h=Q(P,d),P.forEach(p),D.forEach(p),C=Q(_,`
3              Published `),u=Q(_,m),b=L(_),_.forEach(p),this.h()},h(){l(o,"href",y=a[7].path)},m(f,_){ne(f,e,_),t(e,r),t(r,o),t(o,h),t(e,C),t(e,u),t(e,b)},p(f,_){_&2&&d!==(d=f[7].meta.title+"")&&le(h,d),_&2&&y!==(y=f[7].path)&&l(o,"href",y),_&2&&m!==(m=f[7].meta.date+"")&&le(u,m)},d(f){f&&p(e)}}}function _e(a){let e,r,o,d,h,y="Search for a Post",C,m,u,b,f,_,D,P,A,k,V,F,G="Search for a Post",N,w,E,R,J,S=se(a[1]),v=[];for(let s=0;s<S.length;s+=1)v[s]=oe(re(a,S,s));return{c(){e=c("div"),r=c("div"),o=c("div"),d=c("div"),h=c("h2"),h.textContent=y,C=O(),m=c("form"),u=c("input"),b=O(),f=c("div"),_=c("div"),D=c("div"),P=c("ul");for(let s=0;s<v.length;s+=1)v[s].c();A=O(),k=c("div"),V=c("div"),F=c("h2"),F.textContent=G,N=O(),w=c("form"),E=c("input"),this.h()},l(s){e=i(s,"DIV",{class:!0});var I=g(e);r=i(I,"DIV",{class:!0});var n=g(r);o=i(n,"DIV",{class:!0});var j=g(o);d=i(j,"DIV",{class:!0});var H=g(d);h=i(H,"H2",{"data-svelte-h":!0}),ae(h)!=="svelte-1aap0hw"&&(h.textContent=y),C=L(H),m=i(H,"FORM",{class:!0,role:!0});var K=g(m);u=i(K,"INPUT",{class:!0,type:!0,placeholder:!0,"aria-label":!0}),K.forEach(p),H.forEach(p),j.forEach(p),n.forEach(p),b=L(I),f=i(I,"DIV",{class:!0});var M=g(f);_=i(M,"DIV",{class:!0});var W=g(_);D=i(W,"DIV",{class:!0});var X=g(D);P=i(X,"UL",{});var Y=g(P);for(let q=0;q<v.length;q+=1)v[q].l(Y);Y.forEach(p),X.forEach(p),W.forEach(p),A=L(M),k=i(M,"DIV",{class:!0});var Z=g(k);V=i(Z,"DIV",{class:!0});var T=g(V);F=i(T,"H2",{"data-svelte-h":!0}),ae(F)!=="svelte-1aap0hw"&&(F.textContent=G),N=L(T),w=i(T,"FORM",{class:!0,role:!0});var x=g(w);E=i(x,"INPUT",{class:!0,type:!0,placeholder:!0,"aria-label":!0}),x.forEach(p),T.forEach(p),Z.forEach(p),M.forEach(p),I.forEach(p),this.h()},h(){l(u,"class","form-control me-2"),l(u,"type","search"),l(u,"placeholder","Filter blog posts..."),l(u,"aria-label","Filter"),l(m,"class","d-flex"),l(m,"role","search"),l(d,"class","blog-search d-block d-lg-none"),l(o,"class","col-12"),l(r,"class","row"),l(D,"class","blog-items"),l(_,"class","col-md-7"),l(E,"class","form-control me-2"),l(E,"type","search"),l(E,"placeholder","Filter blog posts..."),l(E,"aria-label","Filter"),l(w,"class","d-flex"),l(w,"role","search"),l(V,"class","d-none d-lg-block blog-search"),l(k,"class","col-md-5"),l(f,"class","row align-items-start"),l(e,"class","container-fluid blog-page")},m(s,I){ne(s,e,I),t(e,r),t(r,o),t(o,d),t(d,h),t(d,C),t(d,m),t(m,u),U(u,a[0]),t(e,b),t(e,f),t(f,_),t(_,D),t(D,P);for(let n=0;n<v.length;n+=1)v[n]&&v[n].m(P,null);t(f,A),t(f,k),t(k,V),t(V,F),t(V,N),t(V,w),t(w,E),U(E,a[0]),R||(J=[z(u,"input",a[5]),z(m,"submit",te(a[4])),z(E,"input",a[6]),z(w,"submit",te(a[3]))],R=!0)},p(s,[I]){if(I&1&&u.value!==s[0]&&U(u,s[0]),I&2){S=se(s[1]);let n;for(n=0;n<S.length;n+=1){const j=re(s,S,n);v[n]?v[n].p(j,I):(v[n]=oe(j),v[n].c(),v[n].m(P,null))}for(;n<v.length;n+=1)v[n].d(1);v.length=S.length}I&1&&E.value!==s[0]&&U(E,s[0])},i:$,o:$,d(s){s&&p(e),ue(v,s),R=!1,ce(J)}}}function ve(a,e,r){let o,{data:d}=e,h="";function y(b){ee.call(this,a,b)}function C(b){ee.call(this,a,b)}function m(){h=this.value,r(0,h)}function u(){h=this.value,r(0,h)}return a.$$set=b=>{"data"in b&&r(2,d=b.data)},a.$$.update=()=>{a.$$.dirty&5&&r(1,o=d.posts.filter(b=>b.meta.title.toLowerCase().includes(h.toLowerCase())))},[h,o,d,y,C,m,u]}class Ee extends de{constructor(e){super(),he(this,e,ve,_e,ie,{data:2})}}export{Ee as component,ge as universal};

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.