UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

16 lines (15 loc) 357 B
const i = (t) => { const s = /* @__PURE__ */ new Set(); if (t != null && t.items) for (const n of t.items) { if (n.kind !== "file") continue; const f = n.getAsFile(); f && s.add(f); } return Array.from( s.size === 0 ? new Set((t == null ? void 0 : t.files) ?? s) : s ); }; export { i as getUploadedFilesFromSource };