import{j as e,o as m}from"./index-CNnTZTc7.js";const $="Enter Address",b=/^[A-Za-z]{1,50}$/i,f="Please enter your first name",p="Please enter a valid first name",F="_container_x0rxt_88",y="_label_x0rxt_92",P="_textField_x0rxt_96",d={container:F,label:y,textField:P},A=({autoFocus:t,defaultValue:a,disablePattern:r=!1,error:s,id:l,labelText:n,register:o,className:i,required:c=!0,noPlaceholder:x=!1})=>e.jsx("div",{className:`${i} ${d.container}`,children:e.jsx(m,{autoFocus:t,defaultValue:a,error:s,errorMessage:f,errorMessagePattern:p,fieldClassName:d.textField,id:l,labelClassName:d.label,labelText:n,pattern:r&&b,placeholder:x?"":$,register:o,required:c,type:"text"})}),h="Enter City",C=/^[A-Za-z]{1,50}$/i,E="Please enter your first name",g="Please enter a valid first name",j="_container_x0rxt_88",v="_label_x0rxt_92",N="_textField_x0rxt_96",_={container:j,label:v,textField:N},M=({autoFocus:t,defaultValue:a,disablePattern:r=!1,error:s,id:l,labelText:n,register:o,className:i,required:c=!0,noPlaceholder:x=!1})=>e.jsx("div",{className:`${i} ${_.container}`,children:e.jsx(m,{autoFocus:t,defaultValue:a,error:s,errorMessage:E,errorMessagePattern:g,fieldClassName:_.textField,id:l,labelClassName:_.label,labelText:n,pattern:r&&C,placeholder:x?"":h,register:o,required:c,type:"text"})});export{A,M as C}; //# sourceMappingURL=index-Dp5bWCmh.js.map