import{R as n,j as t,Q as i,ee as p,b7 as u}from"./app-BgLa5dit.js";import{p as m}from"./_VQbNI_n.chunk.js";const f="userManager.bulkUploadFileSelect";function g(a){const s=n.useRef(null),r=n.useCallback(e=>{e&&(s.current=e)},[]),l=()=>{s.current.value=null,s.current.click()},c=e=>{m.parse(e,{complete:o=>a.onSelectSpreadsheet(o.data)})};return t.jsxs(t.Fragment,{children:[t.jsxs("button",{className:"btn btn-outline-dark w-100 d-flex align-items-center justify-content-center ps-1 w-100",onClick:l,children:[t.jsx(i,{className:"svg-container me-1",svg:p}),t.jsx(u,{namespace:f,phrase:"uploadBtn"})]}),t.jsx("input",{type:"file",className:"file-select d-none",accept:"text/csv",ref:r,onChange:e=>c(e.target.files[0])})]})}export{g as B};
//# sourceMappingURL=CBiQhiW4.chunk.js.map
