import{d as e,m as t,t as n,y as r}from"./hooks.module-5xe-uC6c.js";import{t as i}from"./jsxRuntime.module--xb8gfv5.js";import{t as a}from"./ActionButton-CbWZL7Kr.js";import{a as o}from"./FormList-BjfvxCF_.js";import{t as s}from"./Button-XVZ6KZoL.js";e();function c({inputRef:e,name:n,onChange:r,multiple:a,hidden:o}){return t(()=>{r(null)},[]),i(`label`,{class:`tn-file-input tn-input-field`,style:o?{display:`none`}:void 0,children:i(`input`,{ref:e,name:n,type:`file`,class:`form-control-file`,multiple:a,onChange:e=>r(e.target.files)})})}function l({onChange:e,...t}){let a=n(null);return i(r,{children:[i(s,{...t,onClick:()=>a.current?.click()}),i(c,{inputRef:a,hidden:!0,onChange:e})]})}function u({onChange:e,...t}){let o=n(null);return i(r,{children:[i(a,{...t,onClick:()=>o.current?.click()}),i(c,{inputRef:o,hidden:!0,onChange:e})]})}function d({onChange:e,children:t,...a}){let s=n(null);return i(r,{children:[i(o,{...a,onClick:()=>s.current?.click(),children:t}),i(c,{inputRef:s,hidden:!0,onChange:e})]})}export{d as i,u as n,l as r,c as t};