import{r as x,j as e,B as b}from"./index-7c7a558c.js";import{u as j}from"./user_image-87dc2d58.js";function R({title:c,id:s,placeHolder:i,url:r,circle:u=null,imageAlt:o,className:d,InputChange:f,InputField:p=!1,IsImage:h=!0,imageH:n=!1,imageW:t=!1,defaultImg:l=!1,...m}){const a=x.useRef(null);return e.jsxs(e.Fragment,{children:[e.jsx("label",{htmlFor:s,className:"",children:c}),h?e.jsx("img",{src:r?r instanceof Object?URL.createObjectURL(r):`${b}${r}`:l||j,className:`cursor-pointer ${u?"rounded-full h-[50%] w-[50%]":"h-40 w-60"} ${d}`,onClick:()=>a.current.click(),...m,alt:o||"...",height:n||"150",width:t||"150"}):null,e.jsx("input",{ref:a,id:s,name:s,type:"file",className:`${p?"":"hidden"} rounded-none relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-white rounded-b-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm`,placeholder:i,onChange:f})]})}export{R as I};
