PageSourceSearch

https://odysee.com/public/assets/buildHomepage-yN2Ty8eO.js

js odysee.com collected 2026-10-09 22:42:24 UTC 7,094 bytes, 2 lines download raw bytes

1import{t as e}from"./i18n-BTiDkSlz.js";import{s as t}from"./asserts-Doeoh-uG.js";import{Qn as n,Un as r}from"./icons-WQbxlx7M.js";import{Ls as i,es as a,gs as o,oc as s}from"./claims-FR-UlCrs.js";import{Bn as c,Gn as l,Wn as u,cr as d,hr as f,wr as p}from"./app-5r5pIz90.js";import{r as m}from"./string-yFuGPIQw.js";function h(e,t){return t?1:e<250?e<150?3:2:1}function g(e,t,n){let r=new Date;return t===`day`||t===`days`?r.setDate(r.getDate()-e):t===`month`||t===`months`?r.setMonth(r.getMonth()-e):(t===`year`||t===`years`)&&r.setFullYear(r.getFullYear()-e),n===`hour`?r.setMinutes(0,0,0):(r.setHours(0,0,0,0),n===`week`&&r.setDate(r.getDate()-r.getDay())),Math.floor(r.getTime()/1e3)}var _=(e,t)=>{let n;switch(t.order){case`trending`:n=p;break;case`top`:n=`top`;break;case`new`:n=`new`;break;default:n=p}let r=new URLSearchParams;t.claimType&&r.set(l,t.claimType);let i=t.channelIds;i&&r.set(c,i.join(`,`));let a=t.claimType&&t.claimType===`channel`,s;if(typeof t.channelLimit==`string`&&t.channelIds&&t.channelIds.length){if(t.channelLimit===`auto`)s=h(t.channelIds.length,a);else if(t.channelLimit){let e=Number(t.channelLimit);e===e&&e!==0&&(s=Math.floor(e))}}else if(typeof t.channelLimit==`string`&&t.channelLimit){let e=Number(t.channelLimit);e===e&&e!==0&&(s=Math.floor(e))}return{id:e,link:`/$/${o}?${r.toString()}`,route:t.name?`/$/${t.name}`:void 0,icon:t.icon||``,title:t.label,pinnedUrls:t.pinnedUrls,pinnedClaimIds:t.pinnedClaimIds,hideByDefault:t.hideByDefault,hideSort:t.hideSort,options:{claimType:t.claimType||[`stream`,`repost`],channelIds:i,excludedChannelIds:t.excludedChannelIds,orderBy:n,pageSize:t.pageSize||void 0,limitClaimsPerChannel:s,searchLanguages:t.searchLanguages,duration:t.duration||void 0,excludeShorts:t.exclude_shorts?!0:void 0,releaseTime:`>${g(t.daysOfContent||30,`days`,`hour`)}`}}};function v(p,h,v,y,b,x,S,C,w,T,E,D){function O(e,t){return t?y?3/2*e:v?8:h?6:e:y?3/2*e:e}let k=[],A=[];if(b&&S&&w){let t={id:`FOLLOWING`,title:e(`Recent From Following`),link:`/$/${a}`,icon:r,hideSort:!1,options:{orderBy:`new`,releaseTime:w.length>20?`>${g(9,`months`,`week`)}`:`>${g(1,`year`,`week`)}`,pageSize:O(w.length>3?w.length>6?12:8:4,!0),streamTypes:null,channelIds:w}};k.push(t)}if(b&&x){let t={id:`WATCH_LATER`,title:e(`Watch Later`),link:`/$/${i}/watchlater`,icon:n,hideSort:!1,hideByDefault:!0,options:{pageSize:O(8)}};k.push(t)}let j=`fb364ef587872515f545a5b4b3182b58073f230f.589276465a23c589801d874f484cc39f307d7ec7.ba79c80788a9e1751e49ad401f5692d86f73a2db.b6e207c5f8c58e7c8362cd05a1501bf2f5b694f2.c5724e280283cd985186af9a62494aae377daabd.243b6f18093ff97c861d0568c7d3379606201a4b.5b7c7a202201033d99e1be2930d290c127c0f4fe.c9da929d12afe6066acc89eb044b552f0d63782a.89985db232ec2a9a31dbd985196de817da223fe6.187bf3616318b4bfb85223fc40724c307696f0c6.aa3db8d2145340e26597b88fbb6d0e7ff09786be.a9d289718f3f14e3d1fa8da7a7fcfdb6f40ae2d7.9a5dfcb1a4b29c3a1598392d039744b9938b5a26.0b998b98a2b9a88d9519739f99f2c74c95e3fc22.46be492ee0f56db11e005991c537c867a8682f77.c5cd9b63e2ba0abc191feae48238f464baecb147.4b602d7a3e268abb45951f623a109d2a131ab0ba.d25ae97a1516f5700fc717152b885f33da47f12b.8f4fecfc836ea33798ee3e5cef56926fa54e2cf9.8671dfd2f34302c1a4dcb4dd7361568a0bb23eba.b9288432bd089c6f332145aab08a56eec155f307.87b13b074936b1f42a7c6758c7c2995f58c602e7.25f384bd95e218f6ac37fcaca99ed40f36760d8c.02c020b2fab7dd1fbd175c3b22947688c0a219e5.57dbc8fdc4d062e2824d8550861b380203539099.4e17d248adc0128afe969c2e1327e10afd9cb921.760da3ba3dd85830a843beaaed543a89b7a367e7.5a1b164d0a2e7adf1db08d7363ea1cb06c30cd74.c9da929d12afe6066acc89eb044b552f0d63782a.113515e893b8186595595e594ecc410bae50c026.5fbfcf517d3df749bd032a44c1946b2baa738ecb.74333143a3dcc001a5602aa524583fc75a013d75.0d4e104ffc0ff0a6c8701e67cf13760f4e0335a8.b924ac36b7499591f7929d9c4903de79b07b1cb9.13edd7e7e2fbaf845699cf2f8f0b1c095bacb05f.7b1c72ba903af4aecdc2595397a9cb91bb7f188d.6c0bf1fed2705d675da950a94e4af004ec975a06.f33657a2fcbab2dc3ce555d5d6728f8758af7bc7.26c9b54d7e47dc8f7dc847821b26fce3009ee1a0.1516361918bfd02ddd460489f438e153c918521c.d468989b4668bce7452fc3434a6dc7ba7d799378.a1c8f84670da9a3371bc5832e86c8d32826b2f2e.70e56234217f30317c0e67fd0eede6e82b74aea0.7a88e0eabf60af5ac61240fe60f8f08fa3e48ab4.2f229d3ac26aa655c5123c29f1f7352403279ca3.7ea92a937f5755b40ac3d99ed37c53b40359b0a2.96ede5667bc4533ace8cfcbde4f33aa9fe1ae5f5.5097b175c4c58c431424ce3b60901de6ae650127.32de523ba228dd3f3159eb5a6cc07b6fd51f4dc0.cdb6fe516afe08618b91a754f92412e7f98a8a62.1e9f582c2df798228e8583fe1101fee551487d4b.b032695b52a78e0f5251b8d7f2f32183a5985d19.c042155dfcb5c813345248bff18a62d0f585718e.294f5c164da5ac9735658b2d58d8fee6745dfc45.07e4546674268fc0222b2ca22d31d0549dc217ee.1487afc813124abbeb0629d2172be0f01ccec3bf.ac471128a5ed05b80365170b29997d860afa33b7.c101bac49ec048acca169fd6090e70f7488645b1.c9282bbb89d3f9f5f1d972a02f96a5f0f0f40df8.9576be30de21b3b755828314d6ccbbaa3334f43a.b12e255e9f84d8b4ed86343b27676dccbc8b6d8b.50ebba2b06908f93d7963b1c6826cc0fd6104477.84342ae85d216d5ffc0ef149a123aae649d5c253.80f78c4b8591390758b9e6303eaf9087180444ad.086d2bacf441cef45ff15b5afe163d0b03a9f7ea.5af39f818f668d8c00943c9326c5201c4fe3c423.057053dfb657aaa98553e2c544b06e1a2371557e.fd1aee1d4858ec2ef6ccc3e60504c76e9d774386.930fc43ca7bae20d4706543e97175d1872b0671f.e715c457b4a3e51214b62f49f05303bba4ee5be9.ebf5bc6842638cefcf66904522ac96231ea7a9d8.1f9bb08bfa2259629f4aaa9ed40f97e9a41b6fa1.ac415179241e0cd8a14ed71175b759254d381137.8e098d2042ad9b9074f52cc06b89d6d4db5231dd.149c4686ff0792b8d68dac1f17b6273a85628d34.199eba05b6ecccab919e26a0cb7dacd544f25700.6569758308f12a66001e28f5e6056cb84334e69c.e50f82e2236274c54af762a9c2b897646477ef62.7e1a7afadc8734b33a3e219f5668470715fb063d.ff80e24f41a2d706c70df9779542cba4715216c9.e8f68563d242f6ac9784dcbc41dd86c28a9391d6`.split(`.`),M={title:e(`CableTube Escape Artists`),link:`/$/${o}?${l}=${u}&${c}=${j.join(`,`)}
1`,hideSort:!1,options:{claimType:[`stream`],orderBy:`new`,pageSize:O(12),channelIds:j,limitClaimsPerChannel:1,releaseTime:`>${g(1,`month`,`week`)}`}},N={title:e(`Top Content from Today`),link:`/$/${o}?${f}=top&${d}=day`,hideSort:!1,options:{pageSize:O(S||C?4:8),orderBy:`top`,claimType:[`stream`],limitClaimsPerChannel:2,releaseTime:`>${g(1,`day`,`day`)}`}},P={title:e(`Top Channels On LBRY`),link:`/$/${o}?claim_type=channel&${f}=top&${d}=all`,options:{orderBy:`top`,claimType:[`channel`]}},F={title:e(`Latest From @lbry`),link:`/@lbry:3f`,options:{orderBy:`new`,pageSize:O(4),channelIds:[`3fda836a92faaceedfe398225fb9b2ee2ed1f01a`]}};if(b&&!t&&T){let t={title:e(`Trending For Your Tags`),link:`/$/${s}`,icon:`Tag`,hideSort:!1,options:{pageSize:O(4),orderBy:`new`,tags:T.map(e=>e.name),claimType:[`stream`],limitClaimsPerChannel:2}};T.forEach(t=>{let n=`#${m(t.name)}`;A.push({id:n,title:e(`Trending for %tagName%`,{tagName:n}),link:`/$/${o}?t=${t.name}`,options:{pageSize:4,tags:[t.name],claimType:[`stream`]}})}),C&&!E&&k.push(t),C&&E&&A.forEach(e=>{k.push(e)})}t||(x||k.push(M),k.push(N),k.push(F),S||k.push(P));let{categories:I}=p,L=Object.entries(I||[]);for(let e=0;e<L.length;++e){let t=L[e][0],n=L[e][1];k.push(_(t,n))}return k}export{v as t};
2//# sourceMappingURL=buildHomepage-yN2Ty8eO.js.map

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.