var N=Object.defineProperty;var m=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var d=(r,e,t)=>e in r?N(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,i=(r,e)=>{for(var t in e||(e={}))u.call(e,t)&&d(r,t,e[t]);if(m)for(var t of m(e))x.call(e,t)&&d(r,t,e[t]);return r};var b=(r,e)=>{var t={};for(var a in r)u.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(r!=null&&m)for(var a of m(r))e.indexOf(a)<0&&x.call(r,a)&&(t[a]=r[a]);return t};import{R as p}from"./common-vendor-L1U_8ehK.js";const R=w=>{var c=w,{label:r,value:e,onChange:t,placeholder:a="",rows:f=4,disabled:l=!1,error:s="",helperText:o="",className:g=""}=c,y=b(c,["label","value","onChange","placeholder","rows","disabled","error","helperText","className"]);const n=`textarea-${Math.random().toString(36).substr(2,9)}`;return p.createElement("div",{className:`pr:w-full ${g}`},r&&p.createElement("label",{htmlFor:n,className:"pr:block pr:text-sm pr:font-medium pr:text-gray-700 pr:mb-2"},r),p.createElement("textarea",i({id:n,value:e,onChange:E=>t==null?void 0:t(E.target.value),placeholder:a,rows:f,disabled:l,className:`
          pr:w-full pr:px-4 pr:py-2 pr:border pr:rounded-lg pr:text-sm
          pr:transition-colors pr:duration-200
          pr:focus:outline-hidden pr:focus:ring-2 pr:focus:ring-blue-500 pr:focus:border-transparent
          ${l?"pr:bg-gray-100 pr:cursor-not-allowed pr:text-gray-500":"pr:bg-white"}
          ${s?"pr:border-red-500":"pr:border-gray-300"}
        `},y)),s&&p.createElement("p",{className:"pr:mt-1 pr:text-sm pr:text-red-600"},s),o&&!s&&p.createElement("p",{className:"pr:mt-1 pr:text-sm pr:text-gray-500"},o))};export{R as T};
