import{d}from"./index-OtVJl4GC.js";import"./lodash-ZyeDnt0e.js";import"./vendor-ClLR6ncd.js";function p({accept:o,file:r,path:n}){return new URLSearchParams().append("path",n),d(async()=>{const e=new URL("/download",window.origin);e.searchParams.append("file",r),e.searchParams.append("accept",o);const t=document.createElement("form"),a=document.createElement("input");a.setAttribute("name","path"),a.setAttribute("value",n),t.appendChild(a),t.setAttribute("method","POST"),t.setAttribute("action",e),t.style.display="none",document.body.appendChild(t),t.submit(),document.body.removeChild(t)})}export{p as u};
