import{E as r,F as n,_ as u}from"./index-BhWmfNB5.js";import{h as i,V as m,P as d,H as p}from"./vue-DFryKk-1.js";import"./vuetify-XtA0Y0Oj.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};
