module.exports=[80272,a=>{"use strict";var b=a.i(87924),c=a.i(68114),d=a.i(72131);a.s(["default",0,({className:a,label:e,type:f,placeholder:g,required:h,disabled:i,active:j,handleChange:k,icon:l,...m})=>{let n=(0,d.useId)();return(0,b.jsxs)("div",{className:a,children:[(0,b.jsxs)("label",{htmlFor:n,className:"text-body-sm font-medium text-dark dark:text-white",children:[e,h&&(0,b.jsx)("span",{className:"ml-1 select-none text-red",children:"*"})]}),(0,b.jsxs)("div",{className:(0,c.cn)("relative mt-3 [&_svg]:absolute [&_svg]:top-1/2 [&_svg]:-translate-y-1/2","left"===m.iconPosition?"[&_svg]:left-4.5":"[&_svg]:right-4.5"),children:[(0,b.jsx)("input",{id:n,type:f,name:m.name,placeholder:g,onChange:k,value:m.value,defaultValue:m.defaultValue,className:(0,c.cn)("w-full rounded-lg border-[1.5px] border-stroke bg-transparent outline-none transition focus:border-primary disabled:cursor-default disabled:bg-gray-2 data-[active=true]:border-primary dark:border-dark-3 dark:bg-dark-2 dark:focus:border-primary dark:disabled:bg-dark dark:data-[active=true]:border-primary","file"===f?"style1"===m.fileStyleVariant?"file:mr-5 file:border-collapse file:cursor-pointer file:border-0 file:border-r file:border-solid file:border-stroke file:bg-[#E2E8F0] file:px-6.5 file:py-[13px] file:text-body-sm file:font-medium file:text-dark-5 file:hover:bg-primary file:hover:bg-opacity-10 dark:file:border-dark-3 dark:file:bg-white/30 dark:file:text-white":"file:mr-4 file:rounded file:border-[0.5px] file:border-stroke file:bg-stroke file:px-2.5 file:py-1 file:text-body-xs file:font-medium file:text-dark-5 file:focus:border-primary dark:file:border-dark-3 dark:file:bg-white/30 dark:file:text-white px-3 py-[9px]":"px-5.5 py-3 text-dark placeholder:text-dark-6 dark:text-white","left"===m.iconPosition&&"pl-12.5","sm"===m.height&&"py-2.5"),required:h,disabled:i,"data-active":j}),l]})]})}])},90378,a=>{"use strict";var b=a.i(87924),c=a.i(61277),d=a.i(38246),e=a.i(72131),f=a.i(80272),g=a.i(68114);function h({withIcon:a,label:d,name:f,withBg:i,minimal:j,onChange:k,radius:l}){let m=(0,e.useId)();return(0,b.jsx)("div",{children:(0,b.jsxs)("label",{htmlFor:m,className:(0,g.cn)("flex cursor-pointer select-none items-center",!j&&"text-body-sm font-medium"),children:[(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)("input",{type:"checkbox",onChange:k,name:f,id:m,className:"peer sr-only"}),(0,b.jsxs)("div",{className:(0,g.cn)("mr-2 flex size-5 items-center justify-center rounded border border-dark-5 peer-checked:border-primary dark:border-dark-6 peer-checked:[&>*]:block",i?"peer-checked:bg-primary [&>*]:text-white":"peer-checked:bg-gray-2 dark:peer-checked:bg-transparent",j&&"mr-3 border-stroke dark:border-dark-3","md"===l&&"rounded-md"),children:[!a&&(0,b.jsx)("span",{className:"hidden size-2.5 rounded-sm bg-primary"}),"check"===a&&(0,b.jsx)(c.CheckIcon,{className:"hidden text-primary"}),"x"===a&&(0,b.jsx)(c.XIcon,{className:"hidden text-primary"})]})]}),(0,b.jsx)("span",{children:d})]})})}a.s(["default",0,function(){let[a,g]=(0,e.useState)({email:process.env.NEXT_PUBLIC_DEMO_USER_MAIL||"",password:process.env.NEXT_PUBLIC_DEMO_USER_PASS||"",remember:!1}),[i,j]=(0,e.useState)(!1),k=b=>{g({...a,[b.target.name]:b.target.value})};return(0,b.jsxs)("form",{onSubmit:a=>{a.preventDefault(),j(!0),setTimeout(()=>{j(!1)},1e3)},children:[(0,b.jsx)(f.default,{type:"email",label:"Email",className:"mb-4 [&_input]:py-[15px]",placeholder:"Enter your email",name:"email",handleChange:k,value:a.email,icon:(0,b.jsx)(c.EmailIcon,{})}),(0,b.jsx)(f.default,{type:"password",label:"Password",className:"mb-5 [&_input]:py-[15px]",placeholder:"Enter your password",name:"password",handleChange:k,value:a.password,icon:(0,b.jsx)(c.PasswordIcon,{})}),(0,b.jsxs)("div",{className:"mb-6 flex items-center justify-between gap-2 py-2 font-medium",children:[(0,b.jsx)(h,{label:"Remember me",name:"remember",withIcon:"check",minimal:!0,radius:"md",onChange:b=>g({...a,remember:b.target.checked})}),(0,b.jsx)(d.default,{href:"/admin/auth/forgot-password",className:"hover:text-primary dark:text-white dark:hover:text-primary",children:"Forgot Password?"})]}),(0,b.jsx)("div",{className:"mb-4.5",children:(0,b.jsxs)("button",{type:"submit",className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-primary p-4 font-medium text-white transition hover:bg-opacity-90",children:["Sign In",i&&(0,b.jsx)("span",{className:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-solid border-white border-t-transparent dark:border-primary dark:border-t-transparent"})]})})]})}],90378)}];

//# sourceMappingURL=src_components_1xvsrhh._.js.map