"use strict";const s=require("react/jsx-runtime"),w=require("./password-input-6omRqui-.cjs.js"),e=require("./form-field-MU91QwOC.cjs.js"),q=require("./field-errors-C8G94e3K.cjs.js"),n=({id:t,label:a,description:l,info:o,errors:r,onChange:F,renderError:c,touched:u=!1,isRequired:m=!1,isDisabled:j=!1,isReadOnly:x=!1,isInvalid:p=!1,size:d="md",value:I,placeholder:f,...h})=>{const i=u&&r&&Object.values(r).some(Boolean);return s.jsxs(e.FormField.Root,{id:t,size:d,isRequired:m,isDisabled:j,isReadOnly:x,isInvalid:i||p,children:[s.jsx(e.FormField.Label,{children:a}),s.jsx(e.FormField.Input,{children:s.jsx(w.PasswordInput,{...h,size:d,placeholder:f,onChange:F,value:I})}),l&&s.jsx(e.FormField.Description,{children:l}),i&&s.jsx(e.FormField.Error,{children:s.jsx(q.FieldErrors,{errors:r,renderError:c})}),o&&s.jsx(e.FormField.InfoBox,{children:o})]})};n.displayName="PasswordInputField";exports.PasswordInputField=n;
//# sourceMappingURL=password-input-field-Buevk_ZR.cjs.js.map
