"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[6930],{56930:function(e,r,t){t.r(r),t.d(r,{default:function(){return u}});var n=t(62822),i=t(10467),u=function(){var e=(0,i.default)((0,n.A)().mark((function e(){var r,t=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:[{}],e.abrupt("return",(Array.isArray(r)||(r=[r]),r[0].recursive=r[0].recursive||!1,new Promise((function(e,t){var n=document.createElement("input");n.type="file",n.webkitdirectory=!0;var i=function(r){"function"==typeof u&&u(),e(r)},u=r[0].legacySetup&&r[0].legacySetup(i,(function(){return u(t)}),n);n.addEventListener("change",(function(){var e=Array.from(n.files);r[0].recursive?r[0].recursive&&r[0].skipDirectory&&(e=e.filter((function(e){return e.webkitRelativePath.split("/").every((function(e){return!r[0].skipDirectory({name:e,kind:"directory"})}))}))):e=e.filter((function(e){return 2===e.webkitRelativePath.split("/").length})),i(e)})),n.click()}))));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}]);