import{u as rt,n as oe,l as ae,f as _e,g as ce,h as Ye,i as ke,j as Te,a as te,k as A,m as be,y as he,aE as K,J,D as Ve,c as Q,d as W,aw as ze,V as le,b as it,aF as st,v as Ue,ai as Je,aj as ut,r as S,e as Fe,aG as dt,aH as X,aI as Z,q as I,a2 as pe,K as ee,ax as Ne,z as de,_ as Ce,A as ct,B as mt,T as ft,aJ as vt,aK as pt,aL as _t,aM as gt,aN as yt,a3 as Ie,aO as ht,aP as Ae,af as Qe,a7 as Xe,aQ as Ge,a0 as Ke,aq as wt,C as Dt,ar as $t,as as se,at as ue}from"./index-135ae4c1.js";import{d as V,a as kt,J as Tt,g as j,K as ne,r as Be,M as Se,A as ge,a1 as u,a2 as F,a3 as t,m as e,W as y,Z as l,u as o,Y as Oe,a8 as x,ao as Ze,D as bt,ab as c,n as ye,a6 as $,a7 as R,F as U,ae as Vt,a0 as Nt,c as E,w as me,x as Le,a4 as je,au as Ft,I as Re,a5 as xe,aa as Ct,$ as St,q as Ot}from"./vue-d2584a6d.js";import"./faker-c43f92d4.js";import{_ as Pt}from"./dayjs-f7aba705.js";import{d as He}from"./dayjs.min-1969f9c6.js";import{an as At}from"./vuetify-e547ef1b.js";var $e=(w=>(w[w.MISSING=0]="MISSING",w[w.DOWNLOADING=1]="DOWNLOADING",w[w.DOWNLOADED=2]="DOWNLOADED",w))($e||{}),Y=(w=>(w[w.DISABLED=0]="DISABLED",w[w.NOT_YET_CONTACTED=1]="NOT_YET_CONTACTED",w[w.WORKING=2]="WORKING",w[w.UPDATING=3]="UPDATING",w[w.NOT_WORKING=4]="NOT_WORKING",w))(Y||{});const It={pdf:"mdi-file-pdf-box",png:"mdi-file-image",jpg:"mdi-file-image",jpeg:"mdi-file-image",tiff:"mdi-file-image",doc:"mdi-file-document",docx:"mdi-file-document",txt:"mdi-file-document",nfo:"mdi-information-variant-box",mp3:"mdi-music",wav:"mdi-music",flac:"mdi-music",avi:"mdi-movie",mp4:"mdi-movie",mkv:"mdi-movie",mov:"mdi-movie",wmv:"mdi-movie",srt:"mdi-subtitles",idx:"mdi-subtitles",sub:"mdi-subtitles",rar:"mdi-folder-zip",zip:"mdi-folder-zip",gz:"mdi-folder-zip","7z":"mdi-folder-zip",exe:"mdi-application",msi:"mdi-application",dmg:"mdi-application",deb:"mdi-application",iso:"mdi-application",jar:"mdi-application"};function xt(w){const a=w.split(".").pop()?.toLowerCase()||"";return It[a]||"mdi-file"}function qe(){return{type:"root",name:"",fullName:"",id:"",children:[]}}function zt(w){const a=V(qe());return kt(()=>{const d=qe(),r=Tt(w)??[];for(const m of r){let h=d;m.name.replace("\\","/").split("/").reduce((p,s)=>{const i=p===""?s:p+"/"+s;if(m.name.replace("\\","/").split("/").pop()===s){const b={type:"file",name:s,fullName:i,id:m.index,availability:m.availability,index:m.index,is_seed:m.is_seed,priority:m.priority,progress:m.progress,size:m.size};h.children.push(b)}else{const b=h.children.find(T=>T.name===s);if(b)h=b;else{const T={type:"folder",name:s,fullName:i,id:i,children:[]};h.children.push(T),h=T}}return i},"")}a.value=d}),{tree:a}}const et=j({__name:"MoveTorrentFileDialog",props:{guid:{},hash:{},isFolder:{type:Boolean},oldName:{}},setup(w){const a=w,{isOpened:d}=rt(a.guid),{t:r}=ne(),m=oe(),h=V(),p=V(),s=V(!1),i=Be({newName:""}),b=[g=>!!g||r("dialogs.moveTorrent.required")];async function T(){await h.value?.validate(),s.value&&(a.isFolder?await m.renameTorrentFolder(a.hash,a.oldName,i.newName):await m.renameTorrentFile(a.hash,a.oldName,i.newName),P())}const P=()=>{d.value=!1};return Se(()=>{if(i.newName=a.oldName,a.isFolder)ge(()=>p.value?.select());else{const g=i.newName.lastIndexOf("/"),N=i.newName.lastIndexOf(".");ge(()=>{p.value?.setSelectionRange(g+1,N==-1?i.newName.length:N)})}}),(g,N)=>(u(),F(be,{modelValue:o(d),"onUpdate:modelValue":N[3]||(N[3]=O=>bt(d)?d.value=O:null)},{default:t(()=>[e(ae,null,{default:t(()=>[e(_e,null,{default:t(()=>[y(l(o(r)("dialogs.moveTorrentFile.title",1+Number(g.isFolder))),1)]),_:1}),e(ce,null,{default:t(()=>[e(o(Ye),{modelValue:s.value,"onUpdate:modelValue":N[1]||(N[1]=O=>s.value=O),ref_key:"form",ref:h,onSubmit:N[2]||(N[2]=Oe(()=>{},["prevent"]))},{default:t(()=>[g.oldName?(u(),F(ke,{key:0,"model-value":g.oldName,disabled:"",label:g.$t("dialogs.moveTorrentFile.oldName")},null,8,["model-value","label"])):x("",!0),e(ke,{modelValue:i.newName,"onUpdate:modelValue":N[0]||(N[0]=O=>i.newName=O),ref_key:"input",ref:p,rules:b,autofocus:"",label:g.$t("dialogs.moveTorrent.newPath"),onKeydown:Ze(T,["enter"])},null,8,["modelValue","label"])]),_:1},8,["modelValue"])]),_:1}),e(Te,null,{default:t(()=>[e(te),e(A,{color:"error",onClick:P},{default:t(()=>[y(l(g.$t("common.cancel")),1)]),_:1}),e(A,{color:"accent",disabled:!s.value,onClick:T},{default:t(()=>[y(l(g.$t("common.save")),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),Ut={class:"mr-2"},Bt={class:"mr-2"},Lt={class:"mr-4"},Rt={class:"ml-2"},Et=j({__name:"FileNode",props:{node:{}},emits:["renameFile","setFilePriority"],setup(w){const{t:a}=ne(),d=he(),r=[{name:a("constants.file_priority.max"),icon:"mdi-priority-high",value:K.MAXIMAL},{name:a("constants.file_priority.high"),icon:"mdi-arrow-up",value:K.HIGH},{name:a("constants.file_priority.normal"),icon:"mdi-arrow-down",value:K.NORMAL},{name:a("constants.file_priority.unwanted"),icon:"mdi-priority-low",value:K.DO_NOT_DOWNLOAD}];function m(h){return r.find(p=>p.value===h.priority)?.name||""}return(h,p)=>(u(),F(W,{title:h.node.name,value:h.node.index,"prepend-icon":o(xt)(h.node.name)},{append:t(()=>[c("span",Ut,"[ "+l(o(J)(h.node.size,o(d).useBinarySize))+" ]",1),c("span",Bt,l(o(Ve)(h.node.progress)),1),c("span",Lt,"[ "+l(m(h.node))+" ]",1),e(it,{"open-on-hover":"","open-on-click":"","open-delay":"0","close-delay":"0"},{activator:t(({props:s})=>[e(A,ye(s,{class:"mr-2",color:"accent",size:"x-small",icon:"mdi-trending-up"}),null,16)]),default:t(()=>[e(Q,null,{default:t(()=>[(u(),$(U,null,R(r,s=>e(W,{onClick:i=>h.$emit("setFilePriority",h.node,s.value)},{default:t(()=>[e(ze,null,{default:t(()=>[e(le,null,{default:t(()=>[y(l(s.icon),1)]),_:2},1024),c("span",Rt,l(s.name),1)]),_:2},1024)]),_:2},1032,["onClick"])),64))]),_:1})]),_:1}),e(A,{color:"accent",size:"x-small",icon:"mdi-pencil",onClick:p[0]||(p[0]=Oe(s=>h.$emit("renameFile",h.node),["stop"]))})]),_:1},8,["title","value","prepend-icon"]))}}),Wt={class:"mr-2"},Mt=j({__name:"FolderNode",props:{node:{}},emits:["renameFolder","renameFile","setFilePriority"],setup(w){const{t:a}=ne();function d(r){let m=0,h=0;for(const s of r.children)s.type==="file"?m++:s.type==="folder"&&h++;const p=[];return m>0&&p.push(a("torrentDetail.content.fileInfo",m)),h>0&&p.push(a("torrentDetail.content.folderInfo",h)),p.join(", ")}return(r,m)=>{const h=Vt("FolderNode",!0);return u(),F(st,{value:r.node.type==="root"?"(root)":r.node.fullName},{activator:t(({props:p})=>[e(W,ye(p,{"prepend-icon":r.node.type==="root"?"mdi-file-tree":"mdi-folder",title:r.node.type==="root"?r.$t("torrentDetail.content.rootNode"):r.node.name,value:r.node.type==="root"?"(root)":r.node.fullName}),{append:t(({isActive:s})=>[c("span",Wt,l(d(r.node)),1),r.node.type==="folder"?(u(),F(A,{key:0,color:"accent",size:"x-small",icon:"mdi-pencil",onClick:m[0]||(m[0]=Oe(i=>r.$emit("renameFolder",r.node),["stop"]))})):x("",!0),e(le,{icon:s?"mdi-chevron-up":"mdi-chevron-down"},null,8,["icon"])]),_:2},1040,["prepend-icon","title","value"])]),default:t(()=>[(u(!0),$(U,null,R(r.node.children,p=>(u(),$(U,null,[p.type==="folder"?(u(),F(h,{key:0,node:p,onRenameFolder:m[1]||(m[1]=s=>r.$emit("renameFolder",s)),onRenameFile:m[2]||(m[2]=s=>r.$emit("renameFile",s)),onSetFilePriority:m[3]||(m[3]=(s,i)=>r.$emit("setFilePriority",s,i))},null,8,["node"])):x("",!0),p.type==="file"?(u(),F(Et,{key:1,node:p,onRenameFile:m[4]||(m[4]=s=>r.$emit("renameFile",s)),onSetFilePriority:m[5]||(m[5]=(s,i)=>r.$emit("setFilePriority",s,i))},null,8,["node"])):x("",!0)],64))),256))]),_:1},8,["value"])}}}),Gt=j({__name:"RootNode",props:{root:{}},emits:["renameFolder","renameFile","setFilePriority"],setup(w){return(a,d)=>(u(),F(Q,{density:"compact","select-strategy":"classic"},{default:t(()=>[e(Mt,{node:a.root,onRenameFolder:d[0]||(d[0]=r=>a.$emit("renameFolder",r)),onRenameFile:d[1]||(d[1]=r=>a.$emit("renameFile",r)),onSetFilePriority:d[2]||(d[2]=(r,m)=>a.$emit("setFilePriority",r,m))},null,8,["node"])]),_:1}))}}),Kt=j({__name:"Content",props:{torrent:{},isActive:{type:Boolean}},setup(w){const a=w,d=Ue(),r=oe(),{fileContentInterval:m}=Nt(he()),{pause:h,resume:p}=Je(_,m,{immediate:!1,immediateCallback:!0}),s=V(!1),i=V(!1),b=V([]),{tree:T}=zt(b),P=V(["(root)"]),g=V(""),N=Be({hash:"",isFolder:!1,oldName:""}),O=E({get:()=>b.value.filter(f=>f.priority!==K.DO_NOT_DOWNLOAD).map(f=>f.index),async set(f){const L=b.value.filter(D=>D.priority!==K.DO_NOT_DOWNLOAD).map(D=>D.index),M=L.filter(D=>!f.includes(D)).map(D=>b.value.find(C=>C.index===D)).filter(D=>D&&D.priority!==K.DO_NOT_DOWNLOAD).map(D=>D.index),k=f.filter(D=>!L.includes(D)).map(D=>b.value.find(C=>C.index===D)).filter(D=>D&&D.priority===K.DO_NOT_DOWNLOAD).map(D=>D.index);M.length&&await r.setTorrentFilePriority(a.torrent.hash,M,K.DO_NOT_DOWNLOAD),k.length&&await r.setTorrentFilePriority(a.torrent.hash,k,K.NORMAL),await _()}});async function z(f){N.hash=a.torrent.hash,N.isFolder=f.type==="folder",N.oldName=f.fullName,g.value=d.createDialog(et,N)}async function v(f,L){await r.setTorrentFilePriority(a.torrent.hash,[f.index],L),await _()}async function _(){s.value||(s.value=!0,i.value=!0,await ge(),b.value=await r.fetchFiles(a.torrent.hash),i.value=!1,s.value=!1,await ge())}return me(()=>a.isActive,f=>{f?(p(),_()):h()}),me(()=>d.isDialogOpened(g.value),f=>{f||_()}),Le(()=>{p()}),(f,L)=>(u(),F(ae,{loading:i.value,flat:""},{default:t(()=>[e(Gt,{opened:P.value,"onUpdate:opened":L[0]||(L[0]=M=>P.value=M),selected:O.value,"onUpdate:selected":L[1]||(L[1]=M=>O.value=M),root:o(T),onRenameFolder:z,onRenameFile:z,onSetFilePriority:v},null,8,["opened","selected","root"])]),_:1},8,["loading"]))}}),jt={class:"pl-4"},Ht={class:"pr-4"},q=j({__name:"InfoBase",props:{compact:{type:Boolean}},setup(w){return(a,d)=>(u(),F(S,{cols:"12",sm:"6",lg:"3"},{default:t(()=>[e(ut,{rounded:"xl",class:"d-flex align-center py-2 border"},{default:t(()=>[c("div",jt,[je(a.$slots,"title")]),e(te),c("div",Ht,[je(a.$slots,"text")])]),_:3})]),_:3}))}}),qt={key:0,class:"d-flex gap"},Yt=j({__name:"Info",props:{torrent:{},isActive:{type:Boolean}},setup(w){const a=w,d=oe(),r=Fe(),m=he(),h=E({get:()=>a.torrent.auto_tmm,set:v=>d.toggleAutoTmm([a.torrent.hash],v)}),p=E({get:()=>a.torrent.f_l_piece_prio,set:()=>d.toggleFLPiecePrio([a.torrent.hash])}),s=E({get:()=>a.torrent.forced,set:v=>{v?r.forceResumeTorrents([a.torrent.hash]):r.resumeTorrents([a.torrent.hash])}}),i=E({get:()=>a.torrent.seq_dl,set:()=>d.toggleSeqDl([a.torrent.hash])}),b=E({get:()=>a.torrent.super_seeding,set:v=>d.setSuperSeeding([a.torrent.hash],v)}),T=[{title:"added_on",text:"added_on"},{title:"completed_on",text:"completed_on"},{title:"last_activity",text:"last_activity"},{title:"seen_complete",text:"seen_complete"}],P=[{title:"ratio_time_limit",text:"ratio_time_limit"},{title:"seeding_time",text:"seeding_time"},{title:"time_active",text:"time_active"}],g=[{title:"downloaded",text:"downloaded"},{title:"downloaded_session",text:"downloaded_session"},{title:"uploaded",text:"uploaded"},{title:"uploaded_session",text:"uploaded_session"},{title:"size",text:"size"},{title:"total_size",text:"total_size"},{title:"amount_left",text:"amount_left"},{title:"global_volume",text:"globalVolume"}],N=[{title:"download_limit",text:"dl_limit"},{title:"download_speed",text:"dlspeed"},{title:"upload_limit",text:"up_limit"},{title:"upload_speed",text:"upspeed"},{title:"avg_download_speed",text:"avgDownloadSpeed"},{title:"avg_upload_speed",text:"avgUploadSpeed"},{title:"global_speed",text:"globalSpeed"}],O=[{title:"available_peers",text:"available_peers"},{title:"available_seeds",text:"available_seeds"},{title:"num_leechs",text:"num_leechs"},{title:"num_seeds",text:"num_seeds"},{title:"ratio",text:"ratio"},{title:"ratio_limit",text:"ratio_limit"},{title:"availability",text:"availability"},{title:"eta",text:"eta"},{title:"category",text:"category"},{title:"state",text:"stateString"},{title:"trackers_count",text:"trackers_count"},{title:"priority",text:"priority"}],z=[{title:"content_path",text:"content_path"},{title:"download_path",text:"download_path"},{title:"hash",text:"hash"},{title:"infohash_v1",text:"infohash_v1"},{title:"infohash_v2",text:"infohash_v2"},{title:"magnet",text:"magnet"},{title:"name",text:"name"},{title:"save_path",text:"savePath"},{title:"tracker",text:"tracker"}];return(v,_)=>(u(),F(Q,null,{default:t(()=>[e(W,null,{default:t(()=>[e(dt,null,{default:t(()=>[e(X,{title:v.$t("torrentDetail.info.datetime_values")},{default:t(()=>[e(Z,null,{default:t(()=>[e(I,null,{default:t(()=>[(u(),$(U,null,R(T,f=>e(q,null,Ft({title:t(()=>[y(l(v.$t(`torrent.properties.${f.title}`)),1)]),_:2},[v.torrent[f.text]>0?{name:"text",fn:t(()=>[y(l(o(He)(v.torrent[f.text]*1e3).format(o(m).dateFormat??"DD/MM/YYYY, HH:mm:ss")),1)]),key:"0"}:{name:"text",fn:t(()=>[y(l(v.$t("common.NA")),1)]),key:"1"}]),1024)),64))]),_:1})]),_:1})]),_:1},8,["title"]),e(X,{title:v.$t("torrentDetail.info.duration_values")},{default:t(()=>[e(Z,null,{default:t(()=>[e(I,null,{default:t(()=>[(u(),$(U,null,R(P,f=>e(q,null,{title:t(()=>[y(l(v.$t(`torrent.properties.${f.title}`)),1)]),text:t(()=>[y(l(o(He).duration(v.torrent[f.text],"s").humanize()),1)]),_:2},1024)),64))]),_:1})]),_:1})]),_:1},8,["title"]),e(X,{title:v.$t("torrentDetail.info.boolean_values")},{default:t(()=>[e(Z,null,{default:t(()=>[e(I,null,{default:t(()=>[e(q,null,{title:t(()=>[e(pe,{modelValue:h.value,"onUpdate:modelValue":_[0]||(_[0]=f=>h.value=f),"hide-details":"",density:"compact",label:v.$t("torrent.properties.auto_tmm")},null,8,["modelValue","label"])]),_:1}),e(q,null,{title:t(()=>[e(pe,{modelValue:p.value,"onUpdate:modelValue":_[1]||(_[1]=f=>p.value=f),"hide-details":"",density:"compact",label:v.$t("torrent.properties.f_l_piece_prio")},null,8,["modelValue","label"])]),_:1}),e(q,null,{title:t(()=>[e(pe,{modelValue:s.value,"onUpdate:modelValue":_[2]||(_[2]=f=>s.value=f),"hide-details":"",density:"compact",label:v.$t("torrent.properties.forced")},null,8,["modelValue","label"])]),_:1}),e(q,null,{title:t(()=>[e(pe,{modelValue:i.value,"onUpdate:modelValue":_[3]||(_[3]=f=>i.value=f),"hide-details":"",density:"compact",label:v.$t("torrent.properties.seq_dl")},null,8,["modelValue","label"])]),_:1}),e(q,null,{title:t(()=>[e(pe,{modelValue:b.value,"onUpdate:modelValue":_[4]||(_[4]=f=>b.value=f),"hide-details":"",density:"compact",label:v.$t("torrent.properties.super_seeding")},null,8,["modelValue","label"])]),_:1})]),_:1})]),_:1})]),_:1},8,["title"]),e(X,{title:v.$t("torrentDetail.info.data_values")},{default:t(()=>[e(Z,null,{default:t(()=>[e(I,null,{default:t(()=>[(u(),$(U,null,R(g,f=>e(q,null,{title:t(()=>[y(l(v.$t(`torrent.properties.${f.title}`)),1)]),text:t(()=>[y(l(o(J)(v.torrent[f.text],o(m).useBinarySize)),1)]),_:2},1024)),64))]),_:1})]),_:1})]),_:1},8,["title"]),e(X,{title:v.$t("torrentDetail.info.speed_values")},{default:t(()=>[e(Z,null,{default:t(()=>[e(I,null,{default:t(()=>[(u(),$(U,null,R(N,f=>e(q,null,{title:t(()=>[y(l(v.$t(`torrent.properties.${f.title}`)),1)]),text:t(()=>[y(l(o(ee)(v.torrent[f.text],o(m).useBitSpeed)),1)]),_:2},1024)),64))]),_:1})]),_:1})]),_:1},8,["title"]),e(X,{title:v.$t("torrentDetail.info.text_values")},{default:t(()=>[e(Z,null,{default:t(()=>[e(I,null,{default:t(()=>[(u(),$(U,null,R(O,f=>e(q,null,{title:t(()=>[y(l(v.$t(`torrent.properties.${f.title}`)),1)]),text:t(()=>[y(l(v.torrent[f.text]),1)]),_:2},1024)),64))]),_:1})]),_:1})]),_:1},8,["title"]),e(X,{title:v.$t("torrentDetail.info.long_text_values")},{default:t(()=>[e(Z,null,{default:t(()=>[e(Q,null,{default:t(()=>[(u(),$(U,null,R(z,f=>e(W,{title:v.$t(`torrent.properties.${f.title}`)},{default:t(()=>[e(Ne,null,{default:t(()=>[y(l(v.torrent[f.text]),1)]),_:2},1024)]),_:2},1032,["title"])),64)),e(W,{title:v.$t("torrent.properties.tags")},{default:t(()=>[v.torrent.tags?.length?(u(),$("div",qt,[(u(!0),$(U,null,R(v.torrent.tags,f=>(u(),F(de,{variant:"flat",color:"tag"},{default:t(()=>[y(l(f),1)]),_:2},1024))),256))])):(u(),F(Ne,{key:1},{default:t(()=>[y(l(v.$t("torrent.properties.empty_tags")),1)]),_:1}))]),_:1},8,["title"])]),_:1})]),_:1})]),_:1},8,["title"])]),_:1})]),_:1})]),_:1}))}});const Jt=Ce(Yt,[["__scopeId","data-v-bb1329d2"]]),Qt=["href"],Xt={key:1},Zt={class:"my-1"},el={class:"mr-2"},tl={key:0},ll={key:2},al={key:0},ol={key:1},nl={key:2},rl={key:3},il={key:4},sl={key:0},ul=j({__name:"Overview",props:{torrent:{},isActive:{type:Boolean}},setup(w){const a=w,{t:d}=ne(),r=At(),m=Ue(),h=oe(),p=Fe(),s=he(),i=V(),b=V(""),T=V(0),P=V([]),g=V(0),N=V(0),O=V(""),z=V(0),v=V(0),_=V(0),f=V(0),L=E(()=>`torrent-${a.torrent.state}`),M=E(()=>`${parseInt(ct(z.value,!0))} ${mt(z.value,!0)}`),k=E(()=>a.torrent.state===ft.META_DL),D=E(()=>!k.value&&_.value>0&&_.valueD.value&&_.valueG.priority!==K.DO_NOT_DOWNLOAD);g.value=n.length,g.value===1&&(O.value=n[0].name)}async function Ee(){if(!i.value)return;const n=await h.fetchPieceState(a.torrent.hash);i.value.width=n.length||-1;const G=i.value.getContext("2d");G.clearRect(0,0,i.value.width,i.value.height);let B="",re=1;for(let ie=0;ieve.priority!==K.DO_NOT_DOWNLOAD).map(ve=>ve.piece_range);for(const[ve,nt]of ot)if(ie>ve&&ie{await H(),C.value&&await Ee()},s.fileContentInterval,{immediate:!0,immediateCallback:!0});me(()=>a.isActive,n=>{n?lt():at()}),me(()=>a.torrent,async()=>{await we()});function Me(n){if(m.hasActiveDialog)return!1;if(n.key==="d")return n.preventDefault(),De("dl"),!0;if(n.key==="s")return n.preventDefault(),De("save"),!0;if(n.key==="f"&&g.value===1)return n.preventDefault(),We(),!0}return Le(()=>{document.addEventListener("keydown",Me)}),Re(()=>{document.removeEventListener("keydown",Me)}),(n,G)=>n.torrent?(u(),F(ae,{key:0},{default:t(()=>[e(_e,{class:"text-wrap"},{default:t(()=>[y(l(n.torrent.name),1)]),_:1}),e(_t,null,{default:t(()=>[c("div",null,[(u(!0),$(U,null,R(o(pt)(b.value),B=>(u(),$("span",null,[o(vt)(B)?(u(),$("a",{key:0,target:"_blank",href:B},l(B),9,Qt)):(u(),$("span",Xt,l(B),1))]))),256))]),c("div",Zt,[c("span",el,l(n.torrent.hash),1),e(A,{variant:"outlined",rounded:"",onClick:tt},{default:t(()=>[y(l(n.$t("torrentDetail.overview.copy_hash")),1)]),_:1})])]),_:1}),e(ce,null,{default:t(()=>[e(I,null,{default:t(()=>[e(S,{cols:"12",md:"6"},{default:t(()=>[e(I,null,{default:t(()=>[e(S,{cols:"4"},{default:t(()=>[e(gt,{color:L.value,indeterminate:k.value,size:100,"model-value":n.torrent?.progress*100,width:15},{default:t(()=>[k.value?(u(),$("span",tl,l(n.$t("torrentDetail.overview.fetchingMetadata")),1)):n.torrent.progress===1?(u(),F(le,{key:1,icon:"mdi-check",size:"x-large"})):(u(),$("span",ll,l(o(Ve)(n.torrent.progress)),1))]),_:1},8,["color","indeterminate","model-value"])]),_:1}),e(S,{cols:"8",class:"d-flex flex-column align-center justify-center"},{default:t(()=>[k.value?(u(),$("div",al,[c("span",null,l(n.$t("torrentDetail.overview.waitingForMetadata")),1)])):D.value?(u(),$("div",ol,[c("canvas",{ref_key:"canvas",ref:i,width:"0",height:"10"},null,512)])):x("",!0),!k.value&&!D.value?(u(),$("div",nl,[c("span",null,l(n.$t("torrentDetail.overview.canvasRenderDisabled")),1)])):!k.value&&!C.value?(u(),$("div",rl,[c("span",null,l(n.$t("torrentDetail.overview.canvasRefreshDisabled")),1)])):x("",!0),_.value>0?(u(),$("div",il,[c("span",null,l(o(d)("torrentDetail.overview.pieceCount",{owned:v.value,total:_.value,pieceSize:M.value})),1)])):x("",!0),c("div",null,[e(le,{icon:"mdi-arrow-down"}),y(" "+l(o(ee)(n.torrent.dlspeed,o(s).useBitSpeed))+" ",1),e(le,{icon:"mdi-arrow-up"}),y(" "+l(o(ee)(n.torrent.upspeed,o(s).useBitSpeed)),1)])]),_:1})]),_:1}),e(I,null,{default:t(()=>[e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrent.properties.download_path"))+":",1),c("div",null,l(n.torrent.download_path),1),e(A,{icon:"mdi-pencil",color:"accent",size:"x-small",onClick:G[0]||(G[0]=B=>De("dl"))})]),_:1}),e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrentDetail.overview.fileCount"))+":",1),c("div",null,l(g.value)+" / "+l(N.value),1),g.value===1?(u(),$("div",sl,l(O.value),1)):x("",!0),g.value===1?(u(),F(A,{key:1,icon:"mdi-pencil",color:"accent",size:"x-small",onClick:We})):x("",!0)]),_:1})]),_:1}),e(I,null,{default:t(()=>[e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrent.properties.save_path"))+":",1),c("div",null,l(n.torrent.savePath),1),e(A,{icon:"mdi-pencil",color:"accent",size:"x-small",onClick:G[1]||(G[1]=B=>De("save"))})]),_:1}),e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrent.properties.content_path"))+":",1),c("div",null,l(n.torrent.content_path),1)]),_:1})]),_:1})]),_:1}),e(S,{cols:"12",md:"6"},{default:t(()=>[e(I,null,{default:t(()=>[e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrent.properties.state"))+":",1),e(de,{variant:"flat",color:L.value},{default:t(()=>[y(l(n.$t(`torrent.state.${n.torrent.state}`)),1)]),_:1},8,["color"])]),_:1}),e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrent.properties.category"))+":",1),e(de,{variant:"flat",color:"category"},{default:t(()=>[y(l(n.torrent.category.length?n.torrent.category:n.$t("navbar.side.filters.uncategorized")),1)]),_:1})]),_:1})]),_:1}),e(I,null,{default:t(()=>[e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrent.properties.tracker"))+":",1),e(de,{variant:"flat",color:"tracker"},{default:t(()=>[y(l(n.torrent.tracker?o(yt)(n.torrent.tracker):n.$t("navbar.side.filters.untracked")),1)]),_:1})]),_:1}),e(S,{cols:"6",class:"d-flex flex-wrap chipgap"},{default:t(()=>[c("div",null,l(n.$t("torrent.properties.tags"))+":",1),n.torrent.tags?(u(!0),$(U,{key:0},R(n.torrent.tags,B=>(u(),F(de,{key:B,variant:"flat",color:"tag"},{default:t(()=>[y(l(B),1)]),_:2},1024))),128)):x("",!0),!n.torrent.tags||n.torrent.tags.length===0?(u(),F(de,{key:1,variant:"flat",color:"tag"},{default:t(()=>[y(l(n.$t("navbar.side.filters.untagged")),1)]),_:1})):x("",!0)]),_:1})]),_:1}),e(I,null,{default:t(()=>[e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrentDetail.overview.selectedFileSize"))+":",1),c("div",null,l(o(J)(n.torrent.size,o(s).useBinarySize))+" / "+l(o(J)(n.torrent.total_size,o(s).useBinarySize)),1)]),_:1}),e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrentDetail.overview.ratio"))+":",1),c("div",null,l(n.torrent.ratio),1)]),_:1})]),_:1}),e(I,null,{default:t(()=>[e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrentDetail.overview.downloaded"))+":",1),c("div",null,l(o(J)(n.torrent.downloaded,o(s).useBinarySize)),1)]),_:1}),e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrentDetail.overview.uploaded"))+":",1),c("div",null,l(o(J)(n.torrent.uploaded,o(s).useBinarySize)),1)]),_:1})]),_:1}),e(I,null,{default:t(()=>[e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrentDetail.overview.dlSpeedAverage"))+":",1),c("div",null,l(o(ee)(T.value,o(s).useBitSpeed)),1)]),_:1}),e(S,{cols:"6"},{default:t(()=>[c("div",null,l(n.$t("torrentDetail.overview.upSpeedAverage"))+":",1),c("div",null,l(o(ee)(f.value,o(s).useBitSpeed)),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})):x("",!0)}});const dl=Ce(ul,[["__scopeId","data-v-0d43f850"]]),cl={class:"d-flex"},ml={key:0},fl=["alt","src","title"],vl=["title"],pl={class:"text-subtitle-2 text-grey"},_l=["title"],gl={class:"d-flex flex-column"},yl={class:"text-h5"},hl=j({__name:"Peers",props:{torrent:{},isActive:{type:Boolean}},setup(w){const a=w,{t:d}=ne(),r=oe(),m=he(),h=V(!1),p=V([]),s=V(""),i=V(null),b=V(!1);async function T(){h.value=!0,p.value=Object.entries((await r.getTorrentPeers(a.torrent.hash)).peers).map(([z,v])=>({...v,host:z})),h.value=!1}async function P(){s.value.length&&(await r.addTorrentPeers(a.torrent.hash,s.value.split(` `)),await T(),g())}function g(){b.value=!1,s.value=""}async function N(z){await r.banPeers([z.host]),await T()}async function O(z){z??a.isActive?(await T(),i.value=setInterval(T,5e3)):(clearInterval(i.value),i.value=null)}return Se(O),Re(()=>O(!1)),me(()=>a.isActive,O),(z,v)=>(u(),F(Q,null,{default:t(()=>[(u(!0),$(U,null,R(p.value,(_,f)=>(u(),$(U,null,[f>0?(u(),F(Ie,{key:0,color:"white"})):x("",!0),e(W,null,{default:t(()=>[c("div",cl,[c("div",null,[e(ze,{class:"overflow-visible text-select"},{default:t(()=>[_.country_code?(u(),$("span",ml,[o(ht)?(u(),$("img",{key:0,alt:o(Ae)(_.country_code).char,src:o(Ae)(_.country_code).url,title:_.country,style:{"max-width":"32px"}},null,8,fl)):(u(),$("span",{key:1,title:_.country},l(o(Ae)(_.country_code).char),9,vl))])):x("",!0),c("span",null,l(_.ip),1),c("span",pl," :"+l(_.port),1)]),_:2},1024),e(Ne,{class:"d-block"},{default:t(()=>[c("div",null,[y(" Flags: "),c("span",{class:"cursor-help",title:_.flags_desc},l(_.flags),9,_l)]),c("div",null,"Progress: "+l(o(Ve)(_.progress)),1),c("div",null,[e(le,{icon:"mdi-arrow-down",color:"download"}),y(" "+l(o(ee)(_.dl_speed,o(m).useBitSpeed))+" ",1),e(le,{icon:"mdi-arrow-up",color:"upload"}),y(" "+l(o(ee)(_.up_speed,o(m).useBitSpeed)),1)]),c("div",null,l(o(J)(_.downloaded,o(m).useBinarySize))+" | "+l(o(J)(_.uploaded,o(m).useBinarySize)),1),c("div",null,"Relevance: "+l(o(Ve)(_.relevance)),1)]),_:2},1024)]),e(te),c("div",gl,[e(A,{color:"red",icon:"mdi-cancel",variant:"text",onClick:L=>N(_)},null,8,["onClick"])])])]),_:2},1024)],64))),256)),p.value.length===0?(u(),F(W,{key:0},{default:t(()=>[y(l(z.$t("torrentDetail.peers.emptyList")),1)]),_:1})):x("",!0),e(W,null,{default:t(()=>[c("div",{class:xe(["d-flex gap py-5",z.$vuetify.display.mobile?"flex-column":"justify-space-evenly"])},[e(be,{modelValue:b.value,"onUpdate:modelValue":v[1]||(v[1]=_=>b.value=_),"max-width":"750px"},{activator:t(({props:_})=>[e(A,ye(_,{variant:"flat",text:o(d)("torrentDetail.peers.addPeers.title"),color:"accent"}),null,16,["text"])]),default:t(()=>[e(ae,null,{default:t(()=>[e(_e,null,{default:t(()=>[c("span",yl,l(o(d)("torrentDetail.peers.addPeers.title")),1)]),_:1}),e(ce,null,{default:t(()=>[e(Qe,null,{default:t(()=>[e(I,null,{default:t(()=>[e(S,{cols:"12"},{default:t(()=>[e(Xe,{modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=_=>s.value=_),label:o(d)("torrentDetail.peers.addPeers.newPeers"),placeholder:o(d)("torrentDetail.peers.addPeers.newPeersPlaceholder"),hint:o(d)("torrentDetail.peers.addPeers.newPeersHint")},null,8,["modelValue","label","placeholder","hint"])]),_:1})]),_:1})]),_:1})]),_:1}),e(Te,null,{default:t(()=>[e(te),e(A,{color:"error",onClick:g},{default:t(()=>[y(l(o(d)("common.cancel")),1)]),_:1}),e(A,{color:"accent",onClick:P},{default:t(()=>[y(l(o(d)("common.ok")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],2)]),_:1})]),_:1}))}});const wl=Ce(hl,[["__scopeId","data-v-04aee0ca"]]),Dl=j({__name:"TagsAndCategories",props:{torrent:{},isActive:{type:Boolean}},setup(w){const a=w,d=oe(),r=Fe(),m=E(()=>d.categories.map(i=>i.name).indexOf(a.torrent.category)),h=E(()=>d.tags.filter(i=>a.torrent.tags?.includes(i)));async function p(i){a.torrent.category===i?await r.setTorrentCategory([a.torrent.hash],""):await r.setTorrentCategory([a.torrent.hash],i)}async function s(i){a.torrent.tags?.includes(i)?await r.removeTorrentTags([a.torrent.hash],[i]):await r.addTorrentTags([a.torrent.hash],[i])}return Se(async()=>{await d.fetchCategories(),await d.fetchTags()}),(i,b)=>(u(),F(ae,null,{default:t(()=>[e(ce,null,{default:t(()=>[e(I,null,{default:t(()=>[e(S,{cols:"12",md:"6"},{default:t(()=>[e(Ge,{"model-value":h.value,multiple:""},{default:t(()=>[e(Q,null,{default:t(()=>[e(Ke,null,{default:t(()=>[y(l(i.$t("torrentDetail.tagsAndCategories.tags")),1)]),_:1}),(u(!0),$(U,null,R(o(d).tags,T=>(u(),F(W,{title:T,variant:i.torrent.tags?.includes(T)?"tonal":void 0,"base-color":i.torrent.tags?.includes(T)?"accent":void 0,onClick:P=>s(T)},null,8,["title","variant","base-color","onClick"]))),256))]),_:1})]),_:1},8,["model-value"])]),_:1}),e(S,{cols:"12",md:"6"},{default:t(()=>[e(Ge,{"model-value":m.value},{default:t(()=>[e(Q,null,{default:t(()=>[e(Ke,null,{default:t(()=>[y(l(i.$t("torrentDetail.tagsAndCategories.categories")),1)]),_:1}),(u(!0),$(U,null,R(o(d).categories,T=>(u(),F(W,{title:T.name,variant:T.name===a.torrent.category?"tonal":void 0,"base-color":T.name===a.torrent.category?"accent":void 0,onClick:P=>p(T.name)},null,8,["title","variant","base-color","onClick"]))),256))]),_:1})]),_:1},8,["model-value"])]),_:1})]),_:1})]),_:1})]),_:1}))}}),$l={class:"d-flex"},kl={key:0},Tl={key:1},bl={key:2},Vl={key:3},Nl={key:0,class:"d-flex flex-column"},Fl={class:"text-h5"},Cl={class:"text-h5"},Sl=j({__name:"Trackers",props:{torrent:{},isActive:{type:Boolean}},setup(w){const a=w,{t:d}=ne(),r=oe();function m(k){switch(k){case Y.DISABLED:return d("constants.trackerStatus.disabled");case Y.NOT_YET_CONTACTED:return d("constants.trackerStatus.not_yet_contacted");case Y.WORKING:return d("constants.trackerStatus.working");case Y.UPDATING:return d("constants.trackerStatus.updating");case Y.NOT_WORKING:return d("constants.trackerStatus.not_working");default:return""}}function h(k){return typeof k=="number"?k===-1?"N/A":k.valueOf():!k||k.num_peers===-1||k?.num_seeds===-1||k?.num_leeches===-1?"N/A":d("torrentDetail.trackers.peersValue",{peers:k.num_peers,seeds:k.num_seeds,leeches:k.num_leeches})}const p=V(!1),s=V([]),i=V(""),b=V(null),T=V(!1),P=[k=>!!k||d("torrentDetail.trackers.editTracker.newUrlRequired")],g=Be({isVisible:!1,isFormValid:!1,oldUrl:"",newUrl:""});function N(k){g.isVisible=!0,g.oldUrl=k.url,g.newUrl=k.url,ge(()=>{document.getElementById("input")?.select()})}async function O(){p.value=!0,s.value=(await r.getTorrentTrackers(a.torrent.hash)).map(k=>({...k,isSelectable:k.tier!==-1})),p.value=!1}async function z(){i.value.length&&(await r.addTorrentTrackers(a.torrent.hash,i.value),await O(),v())}function v(){T.value=!1,i.value=""}async function _(){g.isFormValid&&(await r.editTorrentTracker(a.torrent.hash,g.oldUrl,g.newUrl),g.isVisible=!1,await O())}async function f(k){await r.removeTorrentTrackers(a.torrent.hash,[k.url]),await O()}async function L(){await r.reannounceTorrents([a.torrent.hash])}async function M(k){k??a.isActive?(await O(),b.value=setInterval(O,5e3)):(clearInterval(b.value),b.value=null)}return Se(M),Re(()=>M(!1)),me(()=>a.isActive,M),(k,D)=>(u(),F(Q,null,{default:t(()=>[(u(!0),$(U,null,R(s.value,(C,we)=>(u(),$(U,null,[we===3?(u(),F(Ie,{key:0,color:"white",thickness:"5"})):we>0?(u(),F(Ie,{key:1,class:"mx-5",color:"white"})):x("",!0),e(W,null,{default:t(()=>[c("div",$l,[c("div",{class:xe(`tracker-${o(Y)[C.status].toLowerCase()}`)},[e(ze,{class:"text-break text-wrap"},{default:t(()=>[y(l(C.url),1)]),_:2},1024),e(Ne,{class:"d-block"},{default:t(()=>[C.msg?(u(),$("div",kl,l(C.msg),1)):(u(),$("div",Tl,l(m(C.status)),1)),C.tier>=0?(u(),$("div",bl,l(o(d)("torrentDetail.trackers.tier",C.tier)),1)):x("",!0),C.status!==o(Y).NOT_WORKING?(u(),$("div",Vl,[c("div",null,l(h(C)),1),c("div",null,"Downloads: "+l(h(C.num_downloaded)),1)])):x("",!0)]),_:2},1024)],2),e(te),C.tier>=0?(u(),$("div",Nl,[e(be,{modelValue:g.isVisible,"onUpdate:modelValue":D[4]||(D[4]=H=>g.isVisible=H),"max-width":"750px"},{activator:t(({props:H})=>[e(A,ye(H,{icon:"mdi-pencil",variant:"text",onClick:Ee=>N(C)}),null,16,["onClick"])]),default:t(()=>[e(ae,null,{default:t(()=>[e(_e,null,{default:t(()=>[c("span",Fl,l(o(d)("torrentDetail.trackers.editTracker.title")),1)]),_:1}),e(ce,null,{default:t(()=>[e(o(Ye),{modelValue:g.isFormValid,"onUpdate:modelValue":D[1]||(D[1]=H=>g.isFormValid=H),onSubmit:D[2]||(D[2]=Oe(()=>{},["prevent"]))},{default:t(()=>[e(o(ke),{"model-value":g.oldUrl,disabled:"",label:k.$t("torrentDetail.trackers.editTracker.oldUrl")},null,8,["model-value","label"]),e(o(ke),{modelValue:g.newUrl,"onUpdate:modelValue":D[0]||(D[0]=H=>g.newUrl=H),id:"input",rules:P,label:k.$t("torrentDetail.trackers.editTracker.newUrl"),autofocus:"",onKeydown:Ze(_,["enter"])},null,8,["modelValue","label"])]),_:1},8,["modelValue"])]),_:1}),e(Te,null,{default:t(()=>[e(te),e(A,{color:"error",disabled:!g.isFormValid,onClick:D[3]||(D[3]=H=>g.isVisible=!1)},{default:t(()=>[y(l(o(d)("common.cancel")),1)]),_:1},8,["disabled"]),e(A,{color:"accent",onClick:_},{default:t(()=>[y(l(o(d)("common.ok")),1)]),_:1})]),_:1})]),_:1})]),_:2},1032,["modelValue"]),e(A,{color:"red",icon:"mdi-delete",variant:"text",onClick:H=>f(C)},null,8,["onClick"])])):x("",!0)])]),_:2},1024)],64))),256)),e(W,null,{default:t(()=>[c("div",{class:xe(["d-flex gap py-5",k.$vuetify.display.mobile?"flex-column":"justify-space-evenly"])},[e(be,{modelValue:T.value,"onUpdate:modelValue":D[6]||(D[6]=C=>T.value=C),"max-width":"750px"},{activator:t(({props:C})=>[e(A,ye(C,{variant:"flat",text:o(d)("torrentDetail.trackers.addTrackers.title"),color:"accent"}),null,16,["text"])]),default:t(()=>[e(ae,null,{default:t(()=>[e(_e,null,{default:t(()=>[c("span",Cl,l(o(d)("torrentDetail.trackers.addTrackers.title")),1)]),_:1}),e(ce,null,{default:t(()=>[e(Qe,null,{default:t(()=>[e(I,null,{default:t(()=>[e(S,{cols:"12"},{default:t(()=>[e(Xe,{modelValue:i.value,"onUpdate:modelValue":D[5]||(D[5]=C=>i.value=C),label:o(d)("torrentDetail.trackers.addTrackers.newTrackers"),hint:o(d)("torrentDetail.trackers.addTrackers.newTrackersHint")},null,8,["modelValue","label","hint"])]),_:1})]),_:1})]),_:1})]),_:1}),e(Te,null,{default:t(()=>[e(te),e(A,{color:"error",onClick:v},{default:t(()=>[y(l(o(d)("common.cancel")),1)]),_:1}),e(A,{color:"accent",onClick:z},{default:t(()=>[y(l(o(d)("common.ok")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e(A,{variant:"flat",disabled:s.value.length===3,text:o(d)("torrentDetail.trackers.reannounce"),color:"primary",onClick:L},null,8,["disabled","text"])],2)]),_:1})]),_:1}))}});const Ol=Ce(Sl,[["__scopeId","data-v-ed947913"]]),Pl={class:"pa-3"},Al={style:{"font-size":"1.6em !important"},class:"subtitle-1 ml-2"},Il={class:"d-flex justify-end"},El=j({__name:"TorrentDetail",setup(w){const a=Ct(),d=St(),{t:r}=ne(),m=Ue(),h=Fe(),p=V("overview"),s=E(()=>a.params.hash),i=E(()=>h.getTorrentByHash(s.value)),b=()=>{d.push({name:"dashboard"})};function T(P){if(m.hasActiveDialog)return!1;if(P.key==="Delete")return m.createDialog(Dt,{hashes:[s.value]}),P.preventDefault(),!0;P.key==="Escape"&&b()}return Le(()=>{document.addEventListener("keydown",T)}),Ot(()=>{document.removeEventListener("keydown",T)}),(P,g)=>(u(),$("div",Pl,[e(I,{"no-gutters":"",align:"center",justify:"center"},{default:t(()=>[e(S,null,{default:t(()=>[c("h1",Al,l(o(r)("torrentDetail.title")),1)]),_:1}),e(S,null,{default:t(()=>[c("div",Il,[e(A,{icon:"mdi-close",variant:"plain",onClick:b})])]),_:1})]),_:1}),e(I,{class:"ma-0 pa-0"},{default:t(()=>[e($t,{modelValue:p.value,"onUpdate:modelValue":g[0]||(g[0]=N=>p.value=N),"bg-color":"primary",grow:"","show-arrows":""},{default:t(()=>[e(se,{value:"overview"},{default:t(()=>[y(l(o(r)("torrentDetail.tabs.overview")),1)]),_:1}),e(se,{value:"info"},{default:t(()=>[y(l(o(r)("torrentDetail.tabs.info")),1)]),_:1}),e(se,{value:"trackers"},{default:t(()=>[y(l(o(r)("torrentDetail.tabs.trackers")),1)]),_:1}),e(se,{value:"peers"},{default:t(()=>[y(l(o(r)("torrentDetail.tabs.peers")),1)]),_:1}),e(se,{value:"content"},{default:t(()=>[y(l(o(r)("torrentDetail.tabs.content")),1)]),_:1}),e(se,{value:"tagsAndCategories"},{default:t(()=>[y(l(o(r)("torrentDetail.tabs.tagsAndCategories")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1}),i.value?(u(),F(wt,{key:0,modelValue:p.value,"onUpdate:modelValue":g[1]||(g[1]=N=>p.value=N),touch:!1},{default:t(()=>[e(ue,{value:"overview"},{default:t(()=>[e(dl,{torrent:i.value,"is-active":p.value==="overview"},null,8,["torrent","is-active"])]),_:1}),e(ue,{value:"info"},{default:t(()=>[e(Jt,{torrent:i.value,"is-active":p.value==="info"},null,8,["torrent","is-active"])]),_:1}),e(ue,{value:"trackers"},{default:t(()=>[e(Ol,{torrent:i.value,"is-active":p.value==="trackers"},null,8,["torrent","is-active"])]),_:1}),e(ue,{value:"peers"},{default:t(()=>[e(wl,{torrent:i.value,"is-active":p.value==="peers"},null,8,["torrent","is-active"])]),_:1}),e(ue,{value:"content"},{default:t(()=>[e(Kt,{torrent:i.value,"is-active":p.value==="content"},null,8,["torrent","is-active"])]),_:1}),e(ue,{value:"tagsAndCategories"},{default:t(()=>[e(Dl,{torrent:i.value,"is-active":p.value==="tagsAndCategories"},null,8,["torrent","is-active"])]),_:1})]),_:1},8,["modelValue"])):x("",!0)]))}});export{El as default};