import{f as s,$ as n,X as u,Q as m}from"./vue-fWJEtAed.js";import{Q as i,R as d,S as p}from"./index-D68FyEHD.js";import"./vuetify-C7MH3EJQ.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};
