PageSourceSearch

https://filter-blocks.netlify.app/_app/pages/token/[tokenid].svelte-c35dd91c.js

js filter-blocks.netlify.app collected 2026-10-03 10:44:10 UTC 4,052 bytes, 1 lines download raw bytes

1import{S as e,i as t,s,e as a,c as r,a as c,d as o,b as n,f as l,G as i,t as f,g,F as h,h as d,k as u,j as p,K as m,n as v,m as j,o as k,v as $,r as w,w as y,L as E,z as _,U as b}from"../../chunks/vendor-01c7f58c.js";import{g as I,P as L}from"../../chunks/project-info-8c1ea70f.js";function D(e){let t;return{c(){t=a("div"),this.h()},l(e){t=r(e,"DIV",{class:!0}),c(t).forEach(o),this.h()},h(){n(t,"class","loader svelte-1nmeqf2")},m(e,s){l(e,t,s)},p:i,i:i,o:i,d(e){e&&o(t)}}}class V extends e{constructor(e){super(),t(this,e,null,D,s,{})}}const{document:x}=b;function F(e,t,s){const a=e.slice();return a[4]=t[s][0],a[5]=t[s][1],a}function B(e){let t,s,i,u,p,m,v,j=e[4]+"",k=e[5]+"";return{c(){t=a("li"),s=a("b"),i=f(j),u=f(": "),p=a("a"),m=f(k),this.h()},l(e){t=r(e,"LI",{class:!0});var a=c(t);s=r(a,"B",{class:!0});var n=c(s);i=g(n,j),u=g(n,": "),n.forEach(o),p=r(a,"A",{href:!0,class:!0});var l=c(p);m=g(l,k),l.forEach(o),a.forEach(o),this.h()},h(){n(s,"class","svelte-fwgc1g"),n(p,"href",v="/project/"+e[2].id+"?"+e[3](e[4],e[5])),n(p,"class","svelte-fwgc1g"),n(t,"class","feature svelte-fwgc1g")},m(e,a){l(e,t,a),h(t,s),h(s,i),h(s,u),h(t,p),h(p,m)},p(e,t){2&t&&j!==(j=e[4]+"")&&d(i,j),2&t&&k!==(k=e[5]+"")&&d(m,k),6&t&&v!==(v="/project/"+e[2].id+"?"+e[3](e[4],e[5]))&&n(p,"href",v)},d(e){e&&o(t)}}}function S(e){let t,s,i,f,g,d,_,b,D,S,U,A;x.title=t="Filter Blocks | "+e[2].name+" #"+I(e[0].tokenid,e[2].id)+" by "+e[2].artist,g=new L({props:{project:e[2],token:e[0].tokenid}});let M=Object.entries(e[1]),O=[];for(let a=0;a<M.length;a+=1)O[a]=B(F(e,M,a));return D=new V({}),{c(){s=u(),i=a("div"),f=a("div"),p(g.$$.fragment),d=a("ul");for(let e=0;e<O.length;e+=1)O[e].c();_=a("div"),b=a("div"),p(D.$$.fragment),S=a("iframe"),this.h()},l(e){m('[data-svelte="svelte-2c29ab"]',x.head).forEach(o),s=v(e),i=r(e,"DIV",{class:!0});var t=c(i);f=r(t,"DIV",{class:!0});var a=c(f);j(g.$$.fragment,a),d=r(a,"UL",{class:!0});var n=c(d);for(let s=0;s<O.length;s+=1)O[s].l(n);n.forEach(o),a.forEach(o),_=r(t,"DIV",{class:!0});var l=c(_);b=r(l,"DIV",{class:!0});var h=c(b);j(D.$$.fragment,h),h.forEach(o),S=r(l,"IFRAME",{class:!0,src:!0}),c(S).forEach(o),l.forEach(o),t.forEach(o),this.h()},h(){n(d,"class","feature__list svelte-fwgc1g"),n(f,"class","gallery-detail__features svelte-fwgc1g"),n(b,"class","loading svelte-fwgc1g"),n(S,"class","gallery-detail__artwork svelte-fwgc1g"),S.src!==(U=e[0].generator||e[0].image)&&n(S,"src",U),n(_,"class","gallery-detail__artwork__container svelte-fwgc1g"),n(i,"class","gallery-detail svelte-fwgc1g")},m(e,t){l(e,s,t),l(e,i,t),h(i,f),k(g,f,null),h(f,d);for(let s=0;s<O.length;s+=1)O[s].m(d,null);h(i,_),h(_,b),k(D,b,null),h(_,S),A=!0},p(e,[s]){(!A||5&s)&&t!==(t="Filter Blocks | "+e[2].name+" #"+I(e[0].tokenid,e[2].id)+" by "+e[2].artist)&&(x.title=t);const a={};if(4&s&&(a.project=e[2]),1&s&&(a.token=e[0].tokenid),g.$set(a),14&s){let t;for(M=Object.entries(e[1]),t=0;t<M.length;t+=1){const a=F(e,M,t);O[t]?O[t].p(a,s):(O[t]=B(a),O[t].c(),O[t].m(d,null))}for(;t<O.length;t+=1)O[t].d(1);O.length=M.length}(!A||1&s&&S.src!==(U=e[0].generator||e[0].image))&&n(S,"src",U)},i(e){A||($(g.$$.fragment,e),$(D.$$.fragment,e),A=!0)},o(e){w(g.$$.fragment,e),w(D.$$.fragment,e),A=!1},d(e){e&&o(s),e&&o(i),y(g),E(O,e),y(D)}}}const U=async({page:e,fetch:t})=>{const{tokenid:s}=e.params,a=Math.floor(s/1e6);try{const e=await t(`/data/projects/${a}/project.json`),r=await t(`/data/projects/${a}/tokens.json`),c=await e.json(),o=await r.json();if(o[s]){const{features:e,generator:t}=o[s];return{props:{project:c,token:{tokenid:s,generator:t},features:e}}}}catch(r){return{status:404,error:r}}};function A(e,t,s){let{token:a}=t,{features:r}=t,{project:c}=t;return _((()=>(document.body.classList.add(c.type),()=>{document.body.classList.remove(c.type)}))),e.$$set=e=>{"token"in e&&s(0,a=e.token),"features"in e&&s(1,r=e.features),"project"in e&&s(2,c=e.project)},[a,r,c,(e,t)=>new URLSearchParams({[e]:t}).toString()]}export default class extends e{constructor(e){super(),t(this,e,A,S,s,{token:0,features:1,project:2})}}export{U as load};

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.