"use strict";const e=require("react/jsx-runtime"),f=require("./money-input-C9eVmgeL.cjs.js"),r=require("./form-field-FdRNl2bZ.cjs.js"),h=require("./field-errors-aqrV93vp.cjs.js"),t=({id:l,label:F,description:n,info:o,errors:s,renderError:c,touched:u=!1,isRequired:a=!1,isDisabled:m=!1,isReadOnly:j=!1,isInvalid:x=!1,size:i="md",...I})=>{const d=u&&s&&Object.values(s).some(Boolean);return e.jsxs(r.FormField.Root,{id:l,size:i,isInvalid:d||x,isRequired:a,isDisabled:m,isReadOnly:j,children:[e.jsx(r.FormField.Label,{children:F}),e.jsx(r.FormField.Input,{children:e.jsx(f.MoneyInput,{size:i,...I})}),n&&e.jsx(r.FormField.Description,{children:n}),o&&e.jsx(r.FormField.InfoBox,{children:o}),d&&e.jsx(r.FormField.Error,{children:e.jsx(h.FieldErrors,{id:`${l}-errors`,errors:s,renderError:c})})]})};t.displayName="MoneyInputField";exports.MoneyInputField=t;
//# sourceMappingURL=money-input-field-BGZ_9HKh.cjs.js.map
