1import{j as s}from"./jsx-runtime-u17CrQMm.js";import{I as f}from"./input-BPlAqiB3.js";import{L as p}from"./label-CiZDLbNW.js";import{u as j}from"./useTranslation-D3viCMEA.js";function b({id:e,name:m,label:o,type:r="text",placeholder:i,value:l,onChange:n,disabled:c=!1,error:t,autoComplete:x,optional:d=!1,hint:a}){const{t:u}=j();return s.jsxs("div",{className:"space-y-2",children:[s.jsxs(p,{htmlFor:e,children:[o,d&&s.jsx("span",{className:"text-muted-foreground ml-1 font-normal",children:u("optional")})]}),s.jsx(f,{id:e,name:m,type:r,placeholder:i,value:l,onChange:n,disabled:c,autoComplete:x,className:t?"border-destructive focus-visible:ring-destructive/20":""}),t&&s.jsx("p",{className:"text-sm text-destructive font-medium",children:t}),a&&!t&&s.jsx("p",{className:"text-xs text-muted-foreground",children:a})]})}export{b as F};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.