"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[8431],{48431:function(e,t,n){n.r(t),n.d(t,{default:function(){return a}});var r=n(62822),u=n(10467),c=function(){var e=(0,u.default)((0,r.A)().mark((function e(t){var n;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFile();case 2:return n=e.sent,e.abrupt("return",(n.handle=t,n));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=(0,u.default)((0,r.A)().mark((function e(){var t,n,u,a,i=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:[{}],Array.isArray(t)||(t=[t]),n=[],t.forEach((function(e,t){n[t]={description:e.description||"",accept:{}},e.mimeTypes?e.mimeTypes.map((function(r){n[t].accept[r]=e.extensions||[]})):n[t].accept["*/*"]=e.extensions||[]})),e.next=6,window.showOpenFilePicker({id:t[0].id,startIn:t[0].startIn,types:n,multiple:t[0].multiple||!1,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});case 6:return u=e.sent,e.next=9,Promise.all(u.map(c));case 9:return a=e.sent,e.abrupt("return",t[0].multiple?a:a[0]);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}]);