(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91829,e=>{"use strict";var r=e.i(43476),a=e.i(75157),t=e.i(71645);e.s(["default",0,({className:e,label:i,type:d,placeholder:s,required:l,disabled:o,active:n,handleChange:m,icon:c,...p})=>{let b=(0,t.useId)();return(0,r.jsxs)("div",{className:e,children:[(0,r.jsxs)("label",{htmlFor:b,className:"text-body-sm font-medium text-dark dark:text-white",children:[i,l&&(0,r.jsx)("span",{className:"ml-1 select-none text-red",children:"*"})]}),(0,r.jsxs)("div",{className:(0,a.cn)("relative mt-3 [&_svg]:absolute [&_svg]:top-1/2 [&_svg]:-translate-y-1/2","left"===p.iconPosition?"[&_svg]:left-4.5":"[&_svg]:right-4.5"),children:[(0,r.jsx)("input",{id:b,type:d,name:p.name,placeholder:s,onChange:m,value:p.value,defaultValue:p.defaultValue,className:(0,a.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"===d?"style1"===p.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"===p.iconPosition&&"pl-12.5","sm"===p.height&&"py-2.5"),required:l,disabled:o,"data-active":n}),c]})]})}])},36173,e=>{"use strict";var r=e.i(47167),a=e.i(43476),t=e.i(72670),i=e.i(22016),d=e.i(71645),s=e.i(91829),l=e.i(75157);function o({withIcon:e,label:r,name:i,withBg:s,minimal:n,onChange:m,radius:c}){let p=(0,d.useId)();return(0,a.jsx)("div",{children:(0,a.jsxs)("label",{htmlFor:p,className:(0,l.cn)("flex cursor-pointer select-none items-center",!n&&"text-body-sm font-medium"),children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:"checkbox",onChange:m,name:i,id:p,className:"peer sr-only"}),(0,a.jsxs)("div",{className:(0,l.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",s?"peer-checked:bg-primary [&>*]:text-white":"peer-checked:bg-gray-2 dark:peer-checked:bg-transparent",n&&"mr-3 border-stroke dark:border-dark-3","md"===c&&"rounded-md"),children:[!e&&(0,a.jsx)("span",{className:"hidden size-2.5 rounded-sm bg-primary"}),"check"===e&&(0,a.jsx)(t.CheckIcon,{className:"hidden text-primary"}),"x"===e&&(0,a.jsx)(t.XIcon,{className:"hidden text-primary"})]})]}),(0,a.jsx)("span",{children:r})]})})}e.s(["default",0,function(){let[e,l]=(0,d.useState)({email:r.default.env.NEXT_PUBLIC_DEMO_USER_MAIL||"",password:r.default.env.NEXT_PUBLIC_DEMO_USER_PASS||"",remember:!1}),[n,m]=(0,d.useState)(!1),c=r=>{l({...e,[r.target.name]:r.target.value})};return(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),m(!0),setTimeout(()=>{m(!1)},1e3)},children:[(0,a.jsx)(s.default,{type:"email",label:"Email",className:"mb-4 [&_input]:py-[15px]",placeholder:"Enter your email",name:"email",handleChange:c,value:e.email,icon:(0,a.jsx)(t.EmailIcon,{})}),(0,a.jsx)(s.default,{type:"password",label:"Password",className:"mb-5 [&_input]:py-[15px]",placeholder:"Enter your password",name:"password",handleChange:c,value:e.password,icon:(0,a.jsx)(t.PasswordIcon,{})}),(0,a.jsxs)("div",{className:"mb-6 flex items-center justify-between gap-2 py-2 font-medium",children:[(0,a.jsx)(o,{label:"Remember me",name:"remember",withIcon:"check",minimal:!0,radius:"md",onChange:r=>l({...e,remember:r.target.checked})}),(0,a.jsx)(i.default,{href:"/admin/auth/forgot-password",className:"hover:text-primary dark:text-white dark:hover:text-primary",children:"Forgot Password?"})]}),(0,a.jsx)("div",{className:"mb-4.5",children:(0,a.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",n&&(0,a.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"})]})})]})}],36173)}]);