import{E as r,F as n,_ as u}from"./index-BE5UxFLM.js";import{h as i,V as m,P as d,H as p}from"./vue-_F-Ug9aV.js";import"./vuetify-9N-iuqjS.js";const g=i({__name:"MagnetHandler",setup(c){const t=m(),s=d(),e=r(),a=n();return p(async()=>{const o=decodeURIComponent(t.params.url);o.startsWith("magnet:")&&(e.isFirstInit=!1,e.pushTorrentToQueue(o),a.createDialog(u)),await s.push({name:"dashboard"})}),()=>{}}});export{g as default};
