%PDF- %PDF-
Direktori : /home/opti/www/startup-life/assets/ |
Current File : /home/opti/www/startup-life/assets/index-fbb310b5.js |
import{P as e,a3 as y,j as r,R as j}from"./index-5492fbe1.js";import{F as L,a as b,M as x,C as F}from"./index.esm-1be9f6a3.js";import{C as s}from"./index-2c4b8b3c.js";import{j as C}from"./joinClasses-adfcc520.js";import{T as I}from"./Menu-c26e62ae.js";const P={color:"var(--gray-3, #828282)",fontFamily:"Raleway",fontSize:"1.125rem",fontStyle:"normal",fontWeight:400,lineHeight:"normal"},t={"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#A8CF45"},color:"var(--gray-1, #333)",fontFamily:"Raleway",fontSize:"1.125rem",fontStyle:"normal",fontWeight:500,lineHeight:"1rem",letterSpacing:"-0.045rem"},T=({name:u,control:h,rules:g,label:c,labelSize:d,value:a,textArea:i,type:l,...o})=>r.jsx(r.Fragment,{children:r.jsxs(L,{sx:{width:"100%"},children:[r.jsx(b,{sx:{...P,fontSize:d??".75rem"},className:"mb-2",children:c}),a?r.jsx(x,{variant:"outlined",fullWidth:!0,sx:{...t},minLength:0,maxLength:255,type:l,value:a,InputProps:{inputProps:{minLength:0,maxLength:255}},...o}):r.jsx(F,{name:u,control:h,rules:g,render:({field:m,fieldState:n})=>{var p;return r.jsxs(j.Fragment,{children:[r.jsx(s,{appear:!i,children:r.jsx("div",{children:r.jsx(x,{...m,variant:"outlined",fullWidth:!0,type:l,minLength:0,maxLength:255,sx:t,error:!!n.error,InputProps:{inputProps:{minLength:0,maxLength:255}},helperText:n.error?n.error.message:null,...o})})}),r.jsxs(s,{appear:!!i,children:[r.jsx(I,{...m,variant:"outlined",fullWidth:!0,minLength:0,maxLength:255,sx:t,InputProps:{inputProps:{minLength:0,maxLength:255}},className:C("!resize-none outline-none bg-transparent border !h-[200px] !px-3 !py-1 rounded-lg",n.error?"!border-red-500":"!border-black/20"),minRows:5,...o}),r.jsx(s,{appear:!!(n!=null&&n.error),children:r.jsx("p",{className:"text-red-500 text-sm mt-2 !ml-3",children:(p=n==null?void 0:n.error)==null?void 0:p.message})})]})]})}})]})});T.propTypes={name:e.string,rules:e.any,control:e.any,label:e.string,rest:e.any,labelSize:e.string,value:e.any,textArea:y.bool};export{T as I};