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