import{o as r,b as e,d as s,k as n,q as o}from"./app-QjDgb7aF.js";async function d(){const{canceled:a,result:t}=await r({title:e.ts.fileIdOrUrl});a||s("admin/drive/show-file",t.startsWith("http://")||t.startsWith("https://")?{url:t.trim()}:{fileId:t.trim()}).then(i=>{n(`/admin/file/${i.id}`)}).catch(i=>{i.code==="NO_SUCH_FILE"&&o({type:"error",text:e.ts.notFound})})}export{d as l};
//# sourceMappingURL=lookup-file-B8nYR5PV.js.map
