import{E as s,F as n,_ as u}from"./index-D3qiLyzf.js";import{h as m,W as i,Q as d,I as p}from"./vue-CNrckKKA.js";import"./vuetify-CX6A6eCZ.js";const l=m({__name:"MagnetHandler",setup(c){const o=i(),t=d(),a=s(),r=n();return p(async()=>{const e=decodeURIComponent(o.params.url);e.startsWith("magnet:")&&(a.pushTorrentToQueue(e),r.createDialog(u)),await t.push({name:"dashboard"})}),()=>{}}});export{l as default};
