"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[196],{80196:function(e,n,t){t.r(n),t.d(n,{default:function(){return c}});var r=t(62822),u=t(60436),a=t(10467),c=function(){var e=(0,a.default)((0,r.A)().mark((function e(){var n,t=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:[{}],e.abrupt("return",(Array.isArray(n)||(n=[n]),new Promise((function(e,t){var r=document.createElement("input");r.type="file";var a=[].concat((0,u.default)(n.map((function(e){return e.mimeTypes||[]}))),(0,u.default)(n.map((function(e){return e.extensions||[]})))).join();r.multiple=n[0].multiple||!1,r.accept=a||"";var c=function(n){"function"==typeof i&&i(),e(n)},i=n[0].legacySetup&&n[0].legacySetup(c,(function(){return i(t)}),r);r.addEventListener("change",(function(){c(r.multiple?Array.from(r.files):r.files[0])})),r.click()}))));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}]);