1import{f as ce,a as G,_ as Q}from"./BbLGlGHl.js";import{_ as q}from"./DJfxYoRO.js";import{I as b}from"./1QJxrLIk.js";import{d as O,y as a,z as m,H as f,J as M,G as e,S as A,o as P,T as E,c as J,A as t,C as _,am as K,av as X,au as Y,U as V,F as S,D,M as R,N as Z,B as F,g as k,n as ue,W as pe,x as de,k as me}from"./DwfuDiFU.js";import{_ as _e}from"./BV4pHEx2.js";import{u as ee}from"./BwXDPHz4.js";import{a as fe,b as ve}from"./Dohrv2kd.js";import{_ as te}from"./DlAUqK2U.js";import{u as he}from"./BKEilU7S.js";import"./BIUSErqY.js";import"./Dh1f-Eqc.js";import"./CrP-Qisf.js";const ge={class:"platform"},ye={key:0,class:"auto"},we={key:3,src:ce,alt:"pump.fun",width:"20",height:"20"},ke=O({__name:"PlatformIcon",props:{item:{}},setup(I){const l=I;return(v,o)=>(a(),m("div",ge,[l.item.auto_generated?(a(),m("span",ye)):f("",!0),l.item.platform==="X"||l.item.auto_generated?(a(),M(e(b),{key:1,icon:"simple-icons:x",width:"16",height:"16",color:"white"})):f("",!0),l.item.platform==="TG"||!l.item.platform&&!l.item.auto_generated?(a(),M(e(b),{key:2,icon:"simple-icons:telegram",width:"20",height:"20",color:"#24A1DE"})):f("",!0),l.item.platform=="PF"?(a(),m("img",we)):f("",!0)]))}}),oe=Object.assign(ke,{__name:"PlatformIcon"});function Ce(I,l=0,v=!0){let o;if(o=Array.from(document.querySelectorAll(I)),o.length===0)return-1;const h=window.innerHeight/2+l;for(let r=0;r<o.length;r++){const c=o[r]?.getBoundingClientRect();if(c&&c.height!==0&&h>=c.top&&h<=c.bottom)return r}if(v){let r=-1,c=1/0;for(let p=0;p<o.length;p++){const y=o[p]?.getBoundingClientRect();if(!y||y.height===0)continue;const d=(y.top+y.bottom)/2,g=Math.abs(d-h);g<c&&(c=g,r=p)}return r}return-1}const xe={class:"inner"},be={class:"search-wrapper"},$e={class:"input-wrapper"},Ie={class:"tab-buttons"},Se={class:"main-menu"},Ve=["onClick"],Me={class:"video-box"},Te={class:"mask"},Le={key:0,autoplay:"",muted:"",playsinline:""},Be=["src"],De={class:"text"},Oe={class:"user"},Ue={key:0},je=O({__name:"ClipIndexPortrait",setup(I){const l=A("searchInput"),v=A("clipsWrapper"),o=k(null),h=k(!1),r=k(null),c=k([]),p=k(!1),y=k(0),d=k(!1),{items:g,filter:$,fetchInitial:C,search:i,applySearch:L,clearSearch:T,disconnect:U}=ee({root:o,initial:10,more:8,fetchTrigger:3});function j(){s()||(T(),s())}function s(){return i.value?!1:(p.value=!1,!0)}function B(){p.value=!p.value,p.value&&l.value?.focus()}function se(x){return(x?.clips?.portrait||"").replace(/\.mp4$/,".jpg")}function ne(x,n){r.value=x,c.value=g.value.slice(n+1),E(()=>{h.value=!0})}function ie(x){const n=new Set(g.value.map(w=>w._id));for(const w of x)n.has(w._id)||g.value.push(w)}function ae(x){if(!o.value)return;const n=g.value.findIndex(W=>W._id===x._id);if(n<0)return;const w=o.value.querySelectorAll(".clips-wrapper .item")[n];if(!w)return;const N=w.offsetTop-o.value.clientHeight/2+w.clientHeight/2;o.value.scrollTo({top:N,behavior:"smooth"})}const H=fe(()=>{y.value=Ce(".clips-wrapper .item",30)},80);return P(async()=>{await C(),await E(),o.value&&o.value.addEventListener("scroll",H,{passive:!0}),window.addEventListener("resize",H),v.value?.addEventListener("click",s)}),J(()=>{U()}),(x,n)=>{const w=G,N=q,W=Q,re=oe,le=_e;return a(),m("main",{ref_key:"root",ref:o,class:S({"scroll-root clip-list":!0,"menu-overlay":e(d)})},[t("div",{class:S({topbar:!0,"search-active":e(p)})},[t("div",xe,[t("div",be,[t("div",{class:"icon-wrapper",onClick:B},[_(e(b),{icon:"lucide:search",width:"20",height:"20"})]),t("div",$e,[K(t("input",{ref_key:"searchInput",ref:l,"onUpdate:modelValue":n[0]||(n[0]=u=>V(i)?i.value=u:null),onKeyup:[n[1]||(n[1]=Y((...u)=>e(T)&&e(T)(...u),["esc"])),n[2]||(n[2]=(...u)=>e(L)&&e(L)(...u))]},null,544),[[X,e(i)]]),_(e(b),{icon:"lucide:x",width:"20",height:"20",onClick:j})])]),t("div",Ie,[t("button",{class:S({active:e($)==="user_generated"}),onClick:n[3]||(n[3]=()=>{$.value="user_generated",e(C)()})}," Users ",2),t("button",{class:S({active:e($)==="auto_generated"}),onClick:n[4]||(n[4]=()=>{$.value="auto_generated",e(C)()})}," Auto ",2)]),_(N,{modelValue:e(d),"onUpdate:modelValue":n[6]||(n[6]=u=>V(d)?d.value=u:null),"content-class":"main-menu-content","close-on-content-click":!1},{"items-override":D(()=>[_(w,{modelValue:e(d),"onUpdate:modelValue":n[5]||(n[5]=u=>V(d)?d.value=u:null),current:"Clips",exclude:["clips","wallet-guide"]},null,8,["modelValue"])]),default:D(()=>[t("div",Se,[_(e(b),{icon:"lucide:menu",width:"20",height:"20"})])]),_:1},8,["modelValue"])])],2),t("div",{ref_key:"clipsWrapper",ref:v,id:"clips-wrapper",class:"clips-wrapper"},[(a(!0),m(R,null,Z(e(g),(u,z)=>(a(),m("div",{key:u._id,class:"item",onClick:lt=>ne(u,z)},[t("div",Me,[t("div",Te,[e(y)===z?(a(),m("video",Le,[t("source",{src:u.clips.portrait},null,8,Be)])):f("",!0),_(W,{src:se(u),width:"420",format:"webp",fit:"cover"},null,8,["src"])])]),t("div",De,[t("div",Oe,[u.username?(a(),m("span",Ue," @"+F(u.username.replace(/^@+/,"")),1)):f("",!0),_(re,{item:u},null,8,["item"])])])],8,Ve))),128))],512),e(r)?(a(),M(le,{key:0,source:"/clips",open:e(h),initial:e(r),cache:e(c),filters:e($),onClose:n[7]||(n[7]=()=>h.value=!1),onFetch:ie,onLoad:ae},null,8,["open","initial","cache","filters"])):f("",!0)],2)}}}),Ne=Object.assign(te(je,[["__scopeId","data-v-193e067d"]]),{__name:"ClipIndexPortrait"}),We={class:"topbar"},Ae={class:"inner"},Fe={class:"left"},Pe={class:"search-wrapper"},Re={class:"input-wrapper"},He={class:"clear-wrapper"},ze={class:"right"},Ee={class:"tab-buttons"},Ge={class:"main-menu"},Qe={id:"clips-wrapper",class:"clips-wrapper"},qe=["onMouseenter","onClick"],Je={class:"video-box"},Ke={class:"mask"},Xe={key:0,autoplay:"",muted:"",playsinline:""},Ye=["src"],Ze={class:"text"},et={key:0,class:"topic"},tt={class:"user"},ot={key:0},st=O({__name:"ClipIndexLandscape",setup(I){const l=A("root"),v=k(-1),o=k(!1),{items:h,filter:r,fetchInitial:c,search:p,applySearch:y,clearSearch:d,disconnect:g}=ee({root:l});function $(C){return(C?.clips?.landscape||"").replace(/\.mp4$/,".jpg")}return P(async()=>{await c()}),J(()=>{g()}),(C,i)=>{const L=G,T=q,U=Q,j=oe;return a(),m("div",{ref_key:"root",ref:l,class:"clip-list"},[t("div",We,[t("div",Ae,[t("div",Fe,[t("div",Pe,[_(e(b),{icon:"lucide:search",width:"20",height:"20"}),t("div",Re,[K(t("input",{ref:"searchInput","onUpdate:modelValue":i[0]||(i[0]=s=>V(p)?p.value=s:null),onKeyup:[i[1]||(i[1]=Y((...s)=>e(d)&&e(d)(...s),["esc"])),i[2]||(i[2]=(...s)=>e(y)&&e(y)(...s))],placeholder:"Search topics"},null,544),[[X,e(p)]])]),t("div",He,[e(p)?(a(),M(e(b),{key:0,icon:"lucide:x",width:"20",height:"20",class:"cursor-pointer",onClick:e(d)},null,8,["onClick"])):f("",!0)])])]),t("div",ze,[t("div",Ee,[t("button",{class:S({active:e(r)==="user_generated"}),onClick:i[3]||(i[3]=()=>{r.value="user_generated",e(c)()})}," Users ",2),t("button",{class:S({active:e(r)==="auto_generated"}),onClick:i[4]||(i[4]=()=>{r.value="auto_generated",e(c)()})}," Auto ",2)]),_(T,{modelValue:e(o),"onUpdate:modelValue":i[6]||(i[6]=s=>V(o)?o.value=s:null),"content-class":"main-menu-content","close-on-content-click":!1},{"items-override":D(()=>[_(L,{modelValue:e(o),"onUpdate:modelValue":i[5]||(i[5]=s=>V(o)?o.value=s:null),current:"Clips",exclude:["clips","wallet-guide"]},null,8,["modelValue"])]),default:D(()=>[t("div",Ge,[_(e(b),{icon:"lucide:menu",width:"30",height:"30"})])]),_:1},8,["modelValue"])])])]),t("div",Qe,[(a(!0),m(R,null,Z(e(h),(s,B)=>(a(),m("div",{key:s._id,class:"item",onMouseenter:()=>v.value=B,onMouseleave:i[7]||(i[7]=()=>v.value=-1),onClick:async()=>await("navigateTo"in C?C.navigateTo:e(ue))(`/clips/${s._id}`)},[t("div",Je,[t("div",Ke,[e(v)===B?(a(),m("video",Xe,[t("source",{src:s.clips.landscape},null,8,Ye)])):f("",!0),_(U,{src:$(s),width:"420",format:"webp",fit:"cover",sizes:"420px"}
1,null,8,["src"])])]),t("div",Ze,[s.topic?(a(),m("div",et,F(s.topic),1)):f("",!0),t("div",tt,[s.username?(a(),m("span",ot," @"+F(s.username.replace(/^@+/,"")),1)):f("",!0),_(j,{item:s},null,8,["item"])])])],40,qe))),128))])],512)}}}),nt=Object.assign(te(st,[["__scopeId","data-v-933614a0"]]),{__name:"ClipIndexLandscape"}),it="degen, degenerative, sitcom, $sitcom, crypto, token, stream, telegram, x, solana",at="summary_large_image",rt="@degen_sitcom",kt=O({__name:"index",setup(I){const l=he(),v=`${l.origin}${l.pathname}`,{width:o}=ve(),h=k(!1),r=me(()=>h.value?o.value>=768?"landscape":"portrait":""),c=`${v}/sitcom-lake.jpeg`;return pe({title:"Clips - Degenerative Sitcom",ogTitle:"Clips - Degenerative Sitcom",description:"Welcome to the clips library of the world's first community driven sitcom",ogDescription:"Welcome to the clips library of the world's first community driven sitcom",keywords:it,ogImage:c,twitterCard:at,twitterSite:rt,twitterDescription:"Welcome to the clips library of the world's first community driven sitcom",twitterImage:c}),de({link:[{rel:"canonical",href:v},{key:"gf-preconnect-1",rel:"preconnect",href:"https://fonts.googleapis.com"},{key:"gf-preconnect-2",rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:""},{key:"gf-preload",rel:"preload",as:"style",href:"https://fonts.googleapis.com/css2?family=Comic+Neue&family=Tilt+Warp&display=swap"},{key:"gf-css",rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Comic+Neue&family=Tilt+Warp&display=swap"}],script:[{key:"gtag-src",src:"https://www.googletagmanager.com/gtag/js?id=G-J3QBB2XZNQ",async:!0},{key:"gtag-init",innerHTML:` 2
vendor: 153 bytes, lines 2-5
2window.dataLayer = window.dataLayer || []; 3 function gtag(){ dataLayer.push(arguments); } 4 gtag('js', new Date()); 5 gtag('config', '
5G-J3QBB2XZNQ
vendor: 10 bytes, lines 5-6
5'); 6
6`,tagPosition:"bodyClose"},{key:"jupiter-plugin",src:"https://plugin.jup.ag/plugin-v1.js",defer:!0,"data-preload":""}]}),P(()=>{h.value=!0}),(p,y)=>{const d=Ne,g=nt;return a(),m(R,null,[e(r)==="portrait"?(a(),M(d,{key:0})):f("",!0),e(r)==="landscape"?(a(),M(g,{key:1})):f("",!0)],64)}}});export{kt as default};
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.