PageSourceSearch

https://inference.club/_nuxt/DD-WSJGX.js

js inference.club collected 2026-10-01 15:50:48 UTC 8,772 bytes, 1 lines download raw bytes

1import{_ as Q}from"./0U2laMoF.js";import{_ as X}from"./C8KajN8m.js";import{_ as Y}from"./BTR0J1Vf.js";import{_ as Z}from"./DkTFzEMZ.js";import{_ as ee}from"./CQAi4flD.js";import{f as te,v as oe,C as se,i as ae,p as _,l as v,j as ie,u as le,c as l,b as d,g as u,w as k,t as a,a as e,n as E,h as r,d as $,A as ne,E as L,F as re,r as ue,N as de,K as ce,o as i}from"./DdRirg_F.js";import{u as me}from"./lWbYcCAY.js";import{u as pe}from"./DNz9wx8t.js";import{f as ve}from"./DCH35lFC.js";import{A as fe}from"./uhfcwIAP.js";import{C as _e}from"./BdGJu2WF.js";import{C as ge}from"./CUxyLFc9.js";import{C as P}from"./BT13vD65.js";import{S as xe}from"./Dz0oePQ6.js";import{S as he}from"./Cbz1u67l.js";import"./IxzeBQ90.js";import"./DmoN1mff.js";import"./BiXMX3Yw.js";import"./DjqsqOe8.js";import"./DznoOI6y.js";import"./Barf_tMS.js";import"./rt51KvPn.js";import"./Bn9k2nIS.js";import"./DpG9jOH_.js";import"./BSDIl-Rg.js";import"./DXg8-ZlZ.js";import"./BMDl7Sj0.js";import"./B5rxJs06.js";import"./DvQgtGW_.js";import"./BWs3BJH8.js";import"./73p8XI3L.js";import"./DWhfCyNK.js";import"./B2FaPVb1.js";import"./DeoOIwLt.js";import"./k5uAJCCz.js";import"./CDmyDGRD.js";import"./DZvMGAf-.js";import"./BPUnTXX5.js";import"./BsGF8U89.js";import"./BEgGWmFC.js";import"./p-_TJbnF.js";import"./BUqQZikn.js";import"./BJbQoxVr.js";import"./BM2Ctgyn.js";import"./RwU7KO_b.js";import"./DaZIvxSr.js";import"./BbHVlsie.js";import"./C1X33mSG.js";import"./DteCZysK.js";import"./BX6EN_dQ.js";import"./DxeTatjr.js";import"./DT7vFZbP.js";import"./l8922Ki5.js";import"./DnwgGaPl.js";import"./DUPOcbgG.js";import"./IVqhOkfq.js";import"./CJORjO_i.js";import"./BumK2SxH.js";import"./FEGUqaMO.js";import"./9wHj6yGH.js";import"./CQcqXkxB.js";const ye={class:"mx-auto w-full max-w-7xl px-3 sm:px-6 py-6"},be={key:0,class:"aspect-video w-full animate-pulse rounded-xl bg-muted"},we={key:1,class:"py-16 text-center text-muted-foreground"},ke={key:2,class:"grid gap-6 lg:grid-cols-[1fr_360px]"},Ce={class:"min-w-0"},ze=["src","poster"],Se={class:"mt-4"},qe={class:"break-words text-lg font-semibold leading-snug"},je={class:"mt-2 flex flex-wrap items-center gap-3"},Ne={key:0,class:"text-sm text-muted-foreground"},$e={class:"text-sm text-muted-foreground"},Ve={class:"ml-auto"},Re={class:"grid gap-x-6 gap-y-2 sm:grid-cols-2"},Ae={key:0,class:"flex justify-between gap-3"},Be={class:"break-all font-mono text-xs"},Ie={key:1,class:"flex justify-between gap-3"},Te={key:2,class:"flex justify-between gap-3"},De={key:3,class:"flex justify-between gap-3"},Fe={key:4,class:"flex justify-between gap-3"},Me={class:"font-mono text-xs"},Ee={key:5,class:"flex justify-between gap-3"},Le={key:0,class:"min-w-0"},Pe={class:"mb-3 flex items-center justify-between gap-2"},Ue={class:"flex min-w-0 items-center gap-2 text-sm font-semibold"},We={class:"truncate"},He={key:0,class:"shrink-0 text-xs text-muted-foreground"},Ke={class:"flex shrink-0 items-center gap-1"},Oe={class:"mb-3 flex items-center gap-2 text-sm text-muted-foreground"},Ge={class:"space-y-2"},Je=["data-testid","onClick"],Qe={class:"w-5 shrink-0 text-center text-xs tabular-nums text-muted-foreground"},Xe={class:"relative aspect-video w-28 shrink-0 overflow-hidden rounded-md border bg-black"},Ye=["src"],Ze={key:1,class:"flex size-full items-center justify-center"},et={class:"min-w-0"},tt={class:"line-clamp-2 text-sm"},ot={class:"mt-0.5 truncate text-xs text-muted-foreground"},mo=te({__name:"[id]",setup(st){const{t:c}=oe(),V=ce(),{getInferenceRequest:U}=me(),{getCollection:W}=pe(),{isAuthenticated:H}=se(),K=_(()=>H.value?"/dashboard/inference/requests":"/dashboard/watch"),g=_(()=>String(V.params.id)),m=_(()=>{const o=V.query.list;return typeof o=="string"&&o?o:null}),t=v(null),f=v(null),C=v(!0),x=v(null),z=v(!0),b=v(!1),w=v(!1),h=_(()=>{var o;return(((o=f.value)==null?void 0:o.items)??[]).filter(s=>s.video_url)}),S=_(()=>h.value.findIndex(o=>String(o.id)===g.value)),q=_(()=>{var p;const o=t.value;if(!o)return"";const s=typeof((p=o.payload)==null?void 0:p.prompt)=="string"?o.payload.prompt:"";return o.prompt_preview||s||""}),R=async()=>{var o;C.value=!0,x.value=null;try{t.value=await U(g.value),(o=t.value)!=null&&o.video_url||(x.value=c("media.notAVideo"))}catch{x.value=c("media.videoNotFound")}finally{C.value=!1}};ae(async()=>
1{if(await R(),m.value)try{f.value=await W(m.value)}catch{f.value=null}}),ie(g,R);const A=o=>{de({path:`/dashboard/watch/${o.id}`,query:m.value?{list:m.value}:{}})},B=()=>{const o=h.value;if(!o.length)return null;if(b.value){const p=o.filter(j=>String(j.id)!==g.value);return p.length?p[Math.floor(Math.random()*p.length)]:null}const s=S.value;return s>=0&&s<o.length-1?o[s+1]:null},I=()=>{const o=B();o&&A(o)},O=()=>{z.value&&m.value&&I()};return le(()=>({title:q.value?`${q.value.slice(0,60)} · Watch`:"Watch"})),(o,s)=>{var D;const p=Q,j=X,G=Y,T=Z,J=ee;return i(),l("div",ye,[d(p,{to:m.value?`/dashboard/inference/collections/${m.value}`:K.value,class:"mb-4 inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground"},{default:k(()=>[d(r(fe),{class:"size-4"}),$(" "+a(m.value&&f.value?f.value.name:r(c)("media.backToRequests")),1)]),_:1},8,["to"]),C.value?(i(),l("div",be)):x.value?(i(),l("div",we,a(x.value),1)):t.value?(i(),l("div",ke,[e("div",Ce,[(i(),l("video",{key:t.value.id,src:t.value.video_url??void 0,poster:t.value.input_image_url??void 0,controls:"",autoplay:"",playsinline:"",class:"aspect-video w-full rounded-xl border bg-black object-contain","data-testid":"watch-video",onEnded:O},null,40,ze)),e("div",Se,[e("h1",qe,a(q.value||r(c)("media.untitledVideo")),1),e("div",je,[t.value.github_login||t.value.owner?(i(),l("span",Ne,a(t.value.github_login||t.value.owner),1)):u("",!0),e("span",$e,a(r(ve)(t.value.created_on)),1),e("div",Ve,[d(j,{request:t.value},null,8,["request"])])]),e("button",{class:"mt-3 inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",onClick:s[0]||(s[0]=n=>w.value=!w.value)},[(i(),E(ne(w.value?r(_e):r(ge)),{class:"size-4"})),$(" "+a(r(c)("media.generationDetails")),1)]),w.value?(i(),E(G,{key:0,class:"mt-2 p-4 text-sm"},{default:k(()=>{var n,y,N,F,M;return[e("dl",Re,[t.value.model_name?(i(),l("div",Ae,[s[3]||(s[3]=e("dt",{class:"text-muted-foreground"},"Model",-1)),e("dd",Be,a(t.value.model_name),1)])):u("",!0),(n=t.value.video)!=null&&n.width&&((y=t.value.video)!=null&&y.height)?(i(),l("div",Ie,[s[4]||(s[4]=e("dt",{class:"text-muted-foreground"},"Resolution",-1)),e("dd",null,a(t.value.video.width)+"×"+a(t.value.video.height),1)])):u("",!0),(N=t.value.video)!=null&&N.fps?(i(),l("div",Te,[s[5]||(s[5]=e("dt",{class:"text-muted-foreground"},"FPS",-1)),e("dd",null,a(t.value.video.fps),1)])):u("",!0),(F=t.value.video)!=null&&F.seconds?(i(),l("div",De,[s[6]||(s[6]=e("dt",{class:"text-muted-foreground"},"Duration",-1)),e("dd",null,a(t.value.video.seconds)+"s",1)])):u("",!0),((M=t.value.video)==null?void 0:M.seed)!=null?(i(),l("div",Fe,[s[7]||(s[7]=e("dt",{class:"text-muted-foreground"},"Seed",-1)),e("dd",Me,a(t.value.video.seed),1)])):u("",!0),t.value.provider?(i(),l("div",Ee,[s[8]||(s[8]=e("dt",{class:"text-muted-foreground"},"Provider",-1)),e("dd",null,a(t.value.provider.name),1)])):u("",!0)])]}),_:1})):u("",!0)])]),m.value&&h.value.length?(i(),l("aside",Le,[e("div",Pe,[e("h2",Ue,[d(r(P),{class:"size-4 shrink-0"}),e("span",We,a(((D=f.value)==null?void 0:D.name)||r(c)("media.upNext")),1),S.value>=0?(i(),l("span",He,a(S.value+1)+"/"+a(h.value.length),1)):u("",!0)]),e("div",Ke,[d(T,{variant:"ghost",size:"icon",class:L(["size-8",b.value?"text-primary":"text-muted-foreground"]),title:r(c)("media.shuffle"),onClick:s[1]||(s[1]=n=>b.value=!b.value)},{default:k(()=>[d(r(xe),{class:"size-4"})]),_:1},8,["class","title"]),d(T,{variant:"ghost",size:"icon",class:"size-8 text-muted-foreground",title:r(c)("media.next"),disabled:!B(),"data-testid":"watch-next",onClick:I},{default:k(()=>[d(r(he),{class:"size-4"})]),_:1},8,["title","disabled"])])]),e("label",Oe,[d(J,{modelValue:z.value,"onUpdate:modelValue":s[2]||(s[2]=n=>z.value=n)},null,8,["modelValue"]),$(" "+a(r(c)("media.autoplayNext")),1)]),e("div",Ge,[(i(!0),l(re,null,ue(h.value,(n,y)=>(i(),l("button",{key:n.id,type:"button",class:L(["flex w-full items-center gap-3 rounded-lg border p-2 text-left transition-colors hover:bg-accent/50",String(n.id)===g.value?"border-primary/50 bg-accent/40":""]),"data-testid":`up-next-${y}`,onClick:N=>A(n)},[e("span",Qe,a(y+1),1),e("div",Xe,[n.input_image_url?(i(),l("img",{key:0,src:n.input_image_url,class:"size-full object-cover",loading:"lazy",alt:""},null,8,Ye)):(i(),l("div",Ze,[d(r(P),{class:"size-5 text-muted-foreground"})]))]),e("div",et,[e("p",tt,a(n.prompt_preview||"—"),1),e("p",ot,a(n.github_login||n.owner),1)])],10,Je))),128))])])):u("",!0)])):u("",!0)])}}});
1export{mo 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.