PageSourceSearch

https://redditpx.com/client/_slug_.da560323.js

js redditpx.com collected 2026-10-03 23:19:56 UTC 2,392 bytes, 1 lines download raw bytes

1import{S as s,i as t,s as r,e,a,t as o,c as n,b as p,d as f,f as u,g as m,h as i,j as l,k as c,m as g,l as $}from"./client.351d8fc2.js";import{C as d,F as j}from"./ColumnLayout.410213df.js";import{g as y,q as w}from"./startWith.8b322780.js";import{f as h,l as q}from"./_prefs.4956240e.js";import"./Icon.535f639e.js";import"./Settings.97ea63ac.js";import"./faHome.5f8a1c1c.js";import"./faStar.9730d0d5.js";import"./faEye.7cd2d1df.js";import"./_auth.72c3c46a.js";function S(s){let t,r;return t=new d({props:{slugstr:s[3],posts:s[0],res:s[1],after:s[2],params:s[5].query}}),{c(){l(t.$$.fragment)},l(s){c(t.$$.fragment,s)},m(s,e){g(t,s,e),r=!0},p(s,r){const e={};8&r&&(e.slugstr=s[3]),1&r&&(e.posts=s[0]),2&r&&(e.res=s[1]),4&r&&(e.after=s[2]),32&r&&(e.params=s[5].query),t.$set(e)},i(s){r||(p(t.$$.fragment,s),r=!0)},o(s){o(t.$$.fragment,s),r=!1},d(s){$(t,s)}}}function x(s){let t,r;return t=new j({props:{slugstr:s[3],posts:s[0],res:s[1],after:s[2],params:s[5].query}}),{c(){l(t.$$.fragment)},l(s){c(t.$$.fragment,s)},m(s,e){g(t,s,e),r=!0},p(s,r){const e={};8&r&&(e.slugstr=s[3]),1&r&&(e.posts=s[0]),2&r&&(e.res=s[1]),4&r&&(e.after=s[2]),32&r&&(e.params=s[5].query),t.$set(e)},i(s){r||(p(t.$$.fragment,s),r=!0)},o(s){o(t.$$.fragment,s),r=!1},d(s){$(t,s)}}}function C(s){let t,r,u,m;const l=[x,S],c=[];function g(s,t){return 0==s[4]?0:1}return t=g(s),r=c[t]=l[t](s),{c(){r.c(),u=e()},l(s){r.l(s),u=e()},m(s,r){c[t].m(s,r),a(s,u,r),m=!0},p(s,[e]){let a=t;t=g(s),t===a?c[t].p(s,e):(i(),o(c[a],1,1,()=>{c[a]=null}),n(),r=c[t],r?r.p(s,e):(r=c[t]=l[t](s),r.c()),p(r,1),r.m(u.parentNode,u))},i(s){m||(p(r),m=!0)},o(s){o(r),m=!1},d(s){c[t].d(s),s&&f(u)}}}async function L({path:s,params:t,query:r}){if("undefined"==typeof window)return;let e=s.substring(1).replace(/\/$/,""),{posts:a,res:o,after:n}=await y(`https://www.reddit.com/${e}.json?${w(r)}`);return{posts:a,after:n,res:o,slugstr:e}}function b(s,t,r){let e,a,o;u(s,h,s=>r(7,e=s)),u(s,q,s=>r(4,a=s));const{page:n}=m();u(s,n,s=>r(5,o=s)),h.useLocalStorage({}),q.useLocalStorage(0);let{posts:p=[]}=t,{res:f}=t,{after:i}=t,{slugstr:l}=t;for(let s of p)s.favorite=!!e[s.url];return s.$$set=s=>{"posts"in s&&r(0,p=s.posts),"res"in s&&r(1,f=s.res),"after"in s&&r(2,i=s.after),"slugstr"in s&&r(3,l=s.slugstr)},[p,f,i,l,a,o,n]}class E extends s{constructor(s){super(),t(this,s,b,C,r,{posts:0,res:1,after:2,slugstr:3})}}export{E as default,L as preload};

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.