!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="37a9e95d-72b0-56f6-ac38-10ab6feabf9f")}catch(e){}}(); import{j as r}from"./jsx-runtime-D_zvdyIk.js";import{r as N}from"./index-DwaoyV61.js";import{T as a}from"./index-DTm5MY_I.js";const k=N.forwardRef((n,C)=>{const{name:o,defaultValue:d,placeholder:c,label:l,labelColor:i,fontColor:m,helperColor:u,disabled:p,onFocus:x,onBlur:g,onChange:h,onKeyDown:b,helperText:s,errorText:t,type:y="text",required:f=!0,value:w,...j}=n;return r.jsxs("div",{className:"space-y-1",children:[l&&r.jsx("label",{htmlFor:o,className:"block text-sm font-medium text-wt-text-on-background",style:{color:i||"#374151"},children:l}),r.jsxs("div",{className:"mt-1",children:[r.jsx("input",{type:y,name:o,id:o,value:w,required:f,defaultValue:d,placeholder:c,disabled:p,onFocus:e=>x?.(e),onBlur:e=>g?.(e),onChange:e=>h?.(e),onKeyDown:e=>b?.(e),className:"block w-full rounded-wt border-gray-300 bg-transparent text-sm shadow-sm placeholder:text-sm focus:border-wt-primary focus:ring-wt-primary disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400",style:{color:m||"#374151"},...j}),s&&r.jsx(a,{size:"xs",weight:"light",className:"block leading-snug",color:u,children:s}),t&&r.jsx(a,{size:"xs",weight:"light",color:"red",className:"block leading-snug",children:t})]})]})});k.displayName="Input";export{k as I}; //# sourceMappingURL=Input-Rsgz_gtB.js.map //# debugId=37a9e95d-72b0-56f6-ac38-10ab6feabf9f