import{j as t,o as _,c6 as p}from"./index-BbiZcFRx.js";const F="",$=/^[A-Za-z]{1,50}$/i,f="Please enter your age",u="age must be between 45 to 85",h="_container_x0rxt_88",j="_label_x0rxt_92",A="_textField_x0rxt_96",e={container:h,label:j,textField:A},E=({autoFocus:a,defaultValue:s,disablePattern:l=!1,error:r,id:n,labelText:o,register:i,className:x,noPlaceholder:c=!1,disabled:d=!1,required:b=!0,fieldClassName:m="",patternInvalidError:g=`age must be between ${p()} to 85`})=>t.jsx("div",{className:`${x} ${e.container}`,children:t.jsx(_,{autoFocus:a,defaultValue:s,error:r,disabled:d,errorMessage:f,errorMessagePattern:g||u,fieldClassName:`${e.textField} ${m}`,id:n,labelClassName:e.label,labelText:o,pattern:l&&$,placeholder:c?"":F,register:i,required:b,type:"text"})});export{E as A};
//# sourceMappingURL=index-CnHtI9Ei.js.map