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