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