f7cloud_client/apps/whiteboard/js/file-open-002ab408-CG_xRZ7i.chunk.mjs
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

4 lines
653 B
JavaScript

/*! third party licenses: js/vendor.LICENSE.txt */
const l=async t=>{const a=await t.getFile();return a.handle=t,a};var r=async(t=[{}])=>{Array.isArray(t)||(t=[t]);const a=[];t.forEach((e,c)=>{a[c]={description:e.description||"",accept:{}},e.mimeTypes?e.mimeTypes.map(p=>{a[c].accept[p]=e.extensions||[]}):a[c].accept["*/*"]=e.extensions||[]});const n=await window.showOpenFilePicker({id:t[0].id,startIn:t[0].startIn,types:a,multiple:t[0].multiple||!1,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),i=await Promise.all(n.map(l));return t[0].multiple?i:i[0]};export{r as default};
//# sourceMappingURL=file-open-002ab408-CG_xRZ7i.chunk.mjs.map