"use strict";exports.id=1358,exports.ids=[1358],exports.modules={11358:(r,e,t)=>{t.d(e,{Z:()=>i});var s=t(20997),a=t(16689),o=t(59003),l=t.n(o);let EyeIcon=r=>(0,s.jsxs)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...r,children:[s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}),EyeCloseIcon=r=>s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...r,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})});var n=t(11377);let d=(0,a.forwardRef)(({label:r,error:e,className:t,inputClassName:o="bg-transparent",...d},i)=>{let{t:c}=(0,n.useTranslation)("common"),[x,p]=(0,a.useState)(!1);return(0,s.jsxs)("div",{className:t,children:[(0,s.jsxs)("label",{className:"block text-13px",children:[r&&s.jsx("span",{className:"block cursor-pointer pb-2.5 font-normal text-dark/70 rtl:text-right dark:text-light/70",children:c(r)}),(0,s.jsxs)("span",{className:"relative block",children:[s.jsx("input",{type:x?"text":"password",ref:i,...d,className:l()("h-11 w-full appearance-none rounded border border-light-500 bg-transparent py-2 text-13px text-dark ring-[0.5px] ring-light-500 focus:border-brand focus:ring-[0.5px] focus:ring-brand ltr:pl-4 ltr:pr-12 rtl:pr-4 rtl:pl-12 dark:border-dark-600 dark:text-light dark:ring-dark-600 dark:focus:border-brand dark:focus:ring-brand md:h-12 lg:pr-12 lg:pl-5 xl:h-[50px]",o)}),s.jsx("span",{onClick:()=>p(!x),className:" absolute top-0 flex h-full w-[34px] cursor-pointer items-center justify-start text-dark-900 hover:text-dark-700 ltr:right-0 rtl:left-0 dark:text-dark-800 hover:dark:text-light-900 lg:w-9",children:x?s.jsx(EyeCloseIcon,{className:"h-auto w-5"}):s.jsx(EyeIcon,{className:"h-auto w-5"})})]})]}),e&&s.jsx("span",{role:"alert",className:"block pt-2 text-xs text-warning",children:e})]})});d.displayName="Password";let i=d}};