(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[8],{775:function(e,t,i){"use strict";i.r(t);var n=i(657),c=i(1),r=i(644),a=i.n(r),l=i(639),s=i(638),o=i(18);t.default=function(e){var t=Object(c.useState)(null),i=Object(n.a)(t,2),r=i[0],j=i[1];return Object(o.jsx)("div",{children:Object(o.jsxs)(l.f,{children:[Object(o.jsx)(l.j,{children:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9"}),Object(o.jsxs)(l.g,{children:[Object(o.jsxs)(l.t,{row:!0,children:[Object(o.jsx)(l.k,{md:"3",children:Object(o.jsx)(l.H,{htmlFor:"date-input",children:" \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044 "})}),Object(o.jsx)(l.k,{xs:"12",md:"9",children:Object(o.jsx)(l.C,{type:"file",onChange:function(e){j(e.target.files[0])},id:"file-input",name:"file-input"})})]}),Object(o.jsx)(l.h,{children:Object(o.jsxs)(l.e,{type:"submit",onClick:function(t){var i=new FormData;i.append("file",r);var n=r.name.trim(),c=new Intl.Collator("ja"),l=c.compare("ini_\u5de5\u7a0b\u5185\u691c\u67fb\u7968.xlsx",n),s=c.compare("ini_\u30c7\u30fc\u30bf\u5165\u529b\u30b7\u30fc\u30c8.xlsx",n);0===l||0===s?a.a.post("http://localhost:8000/upload?email="+e.email,{body:i,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){"OK"==e.statusText&&alert("\u6b63\u5e38\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3057\u305f")})):alert("\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u540d"+r.name+"\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059\u3002ini_\u5de5\u7a0b\u5185\u691c\u67fb\u8868.xlsx \u307e\u305f\u306f ini_\u30c7\u30fc\u30bf\u5165\u529b\u30b7\u30fc\u30c8.xlsx \u306e\u3069\u3061\u3089\u304b\u306b\u540d\u524d\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002")},size:"sm",color:"primary",children:[" ",Object(o.jsx)(s.a,{name:"cil-scrubber"})," \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 "]})})]})]})})}}}]); //# sourceMappingURL=8.50678df5.chunk.js.map